Commit Graph

68 Commits

Author SHA1 Message Date
Martchus 606a9f053d Update libsyncthing to v1.13.1
It seems that the tags v1.13.0 and v1.13.1 are identical, though. Both tags
point to commit f6fac3e949c882771b4b02ce3f586dd09b7555da.
2021-02-03 18:21:33 +01:00
Martchus 8f3653b7ca Update libsyncthing to v1.13.0 2021-02-03 00:01:57 +01:00
Martchus ea442ed569 Update libsyncthing to v1.12.1 2021-01-06 17:29:35 +01:00
Martchus 1bf58bf38d Apply cmake-format and clang-format 2020-12-17 17:52:02 +01:00
Martchus 41372ccf0a Update libsyncthing to v1.12.0 2020-12-01 15:18:24 +01:00
Martchus 3fe2fb9761 Update libsyncthing to v1.11.1 2020-11-03 18:28:50 +01:00
Martchus 7cea7509ba Use C/C++/linker flags for Go compilation from environment consistently
* Use flags from CMake's variables (initialized from environment variables)
  including build type specific variables
* Consider LDFLAGS as well; there's actually linking going on¹

¹Otherwise Go's build system wouldn't run into this error

```
# github.com/DataDog/zstd
/usr/lib/gcc/i686-w64-mingw32/10.2.0/../../../../i686-w64-mingw32/bin/ld: $WORK/b259/_x008.o:entropy_common.c:(.text+0xaa): undefined reference to `__memcpy_chk'
/usr/lib/gcc/i686-w64-mingw32/10.2.0/../../../../i686-w64-mingw32/bin/ld: $WORK/b259/_x033.o:zstd_v01.c:(.text+0x1b84): undefined reference to `__memcpy_chk'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
```

which is caused by LDFLAGS being inconsistent with CFLAGS.
2020-11-02 23:17:37 +01:00
Martchus 0348c78e98 Improve passing flags to Go build system
* Pass C/C++ flags from CMake to CGo
* Allow overriding flags passed via "-ldflags"
* Add default GOFLAGS and add CMake variable to override GOFLAGS
    * `-trimpath`: Prevent embedding full paths
    * `-modcacherw`: Ensure that go modules creates a write-able path
    * `-mod=readonly`: Ensure the module files are not updated in any go actions
2020-10-31 21:50:24 +01:00
Martchus 4ec3b1ef4b Update libsyncthing to v1.10.0 2020-10-06 13:46:22 +02:00
Martchus b4ea431b7a Update libsyncthing to 1.9.0 2020-09-08 12:45:07 +02:00
Martchus 1d0888a621 Reformat CMakeLists.txt with cmake-format 0.6.11 2020-08-11 23:15:41 +02:00
Martchus 095974218f Update libsyncthing to v1.8.0 2020-08-11 14:18:23 +02:00
Martchus 1131a2915b Update libsyncthing to v1.7.1 2020-07-14 09:17:15 +02:00
Martchus 2b4906d9ed Update libsyncthing to v1.7.0 2020-07-07 10:59:49 +02:00
Martchus 72b37f6253 Update libsyncthing to v1.6.1 2020-06-02 13:12:29 +02:00
Martchus 567ba28553 Update libsyncthing to v1.6.0 2020-06-02 13:11:19 +02:00
Martchus 28a8391f2b Update libsyncthing to v1.5.0, support setting data directory 2020-05-05 19:01:05 +02:00
Martchus 159255441e Update libsyncthing to v1.4.2 2020-04-08 10:16:50 +02:00
Martchus 6b5ab74fe5 Update libsyncthing to v1.4.1 2020-04-07 11:32:46 +02:00
Martchus 8cd75e9f2d Update libsyncthing to v1.4.0 2020-03-17 11:20:00 +01:00
Martchus c152152b67 Improve comments in build scripts 2020-03-05 19:04:55 +01:00
Martchus 033745f734 Update libsyncthing to v1.3.4 2020-02-04 11:02:00 +01:00
Martchus a9abeea8e3 Apply cmake-format 0.6.8 2020-02-02 19:50:35 +01:00
Martchus 133dbacb5d Use consistent order for visibility attribute 2020-01-29 18:51:10 +01:00
Martchus 287ec5542b Allow setting log level when using libsyncthing 2020-01-20 22:30:42 +01:00
Martchus e99c3f4ef7 Update libsyncthing to v1.3.3 2020-01-07 14:44:10 +01:00
Martchus f94db6703b Update libsyncthing to v1.3.2 2019-12-03 13:34:31 +01:00
Martchus 4b5a8efa3e Apply cmake-format v0.6.0 2019-11-30 18:24:19 +01:00
Martchus e5286cb218 Update libsyncthing to v1.3.1 2019-11-07 18:55:37 +01:00
Martchus 19ee6cb691 libsyncthing: Create config dir if it does not exist 2019-10-13 19:37:32 +02:00
Martchus 6497f74046 Use override in test fixtures 2019-10-13 18:28:32 +02:00
Martchus d50e78be29 Update libsyncthing to v1.3.0 2019-10-01 13:55:40 +02:00
Martchus d9cf64fd91 Add script to rebase libsyncthing against latest Syncthing release 2019-09-20 18:12:44 +02:00
Martchus 3b607f467a Update libsyncthing to Syncthing v1.2.2 2019-09-08 18:08:13 +02:00
Martchus bd345dfe12 Apply cmake-format 2019-08-08 21:34:24 +02:00
Martchus 584afb52d9 Update libsyncthing 2019-08-07 18:42:41 +02:00
Martchus 971e2dca6a Fix including BasicConfig in libsyncthing 2019-08-06 10:57:42 +02:00
Martchus be0be08997 Apply cmake-format 2019-08-06 00:13:15 +02:00
Martchus e2037aebc1 Fix further configuration issues with libsyncthing
* Can not use BUNDLED_TARGETS because syncthinginternal is only an
  imported target
* Use INSTALL_INTERFACE generator expression to specify path of
  libsyncthinginternal.a for installation (imported target can not
  be exported apparently)
2019-08-06 00:12:58 +02:00
Martchus 495140cdf9 Use imported target for libsyncthinginternal
This way the pkg-config file can be generated correctly.
2019-08-05 19:10:57 +02:00
Martchus 0a2eae6542 Improve libsyncthing
* Update Syncthing version
* Use utilities from https://github.com/syncthing/syncthing/pull/5871
* Remove useless use_standard_filesystem()
2019-08-03 16:31:23 +02:00
Martchus 13cc4b8775 Set Go linker flags for libsyncthing 2019-07-29 18:00:42 +02:00
Martchus fbd0174086 Update libsyncthing 2019-07-29 17:59:58 +02:00
Martchus 6fcc2e2208 Apply clang-format 2019-07-20 20:32:34 +02:00
Martchus 61958c5046 Polish libsyncthing
* Adapt tests
* Remove duplicated code
* Stop Syncthing from a different thread since
  it blocks until Syncthing has stopped
2019-07-18 17:21:53 +02:00
Martchus 038225936e Base libsyncthing on official library refactoring 2019-07-17 17:53:36 +02:00
Martchus 4cabaf0c4b Use Go modules for building libsyncthing
Requires Go 1.11 or later
2019-07-07 12:11:16 +02:00
Martchus 2f081bd28b Rebase libsyncthing against latest master 2019-07-03 20:42:18 +02:00
Martchus 3c9ab47e2a Fix compiling libsyncthing tests 2019-06-22 16:38:59 +02:00
Martchus 56e1e98493 Apply cmake-format 2019-06-16 16:58:52 +02:00