despair
8a27e3972d
we need XPG7 on netbsd
5 years ago
Jason Rhinelander
7ab6220a41
Older cmake workaround
5 years ago
Jason Rhinelander
5a4700d868
Use ExternalProject to build downloaded libsodium
5 years ago
Jason Rhinelander
73239f4c39
Use glob to find sodium source files
...
Manually changing the list every time we want to change the libsodium
version is painful.
I tested this glob against libsodium 1.0.17 and verified it produces the
same set of files (aside from the generated version.h), and that in
1.0.18 it produces the same set modulo upstream files removed/added.
5 years ago
Jason Rhinelander
b72a4296b7
Fix libsodium 1.0.18 URL
5 years ago
Jason Rhinelander
2b93ccb393
Bump libsodium required version to 1.0.18
...
We use crypto_core_ed25519_scalar_mul which is only exported by
libsodium >= 1.0.18.
5 years ago
Jeff Becker
da5eb913e9
use proper cmake call
5 years ago
Jeff Becker
fde0ca374f
i hate curl
5 years ago
Jeff Becker
336a748695
make it build in normal mode too
5 years ago
Jeff Becker
80cbddde7b
fixups for review
5 years ago
Jeff Becker
2ce592e4af
static link with docs
5 years ago
Ryan Tharp
20ce679c3a
macos release needs the include path
5 years ago
Ryan Tharp
b21b0b49d0
support LIBCURL_ROOT, disable LIBUV includes
5 years ago
Ryan Tharp
6001215a23
bring in all updates from STATIC_RUNTIME
5 years ago
Rick V
a62a75d640
nit
5 years ago
Rick V
9fa9209114
don't be aggressive
...
remove libcurl packaging rules. We still build it, but ship only the curl.exe
5 years ago
Rick V
d1b9b89812
add note
...
add libuv build
add its dependent libraries to the final link line
5 years ago
Rick V
6d49ffd60b
include all platform dependencies transitively
5 years ago
Jeff Becker
ab183665ab
freebsd fix
5 years ago
Stephen Shelton
332f33b049
Remove FS_LIB conditionals
5 years ago
Stephen Shelton
5ce260fce1
Use vendored fs::filesystem on all platforms
5 years ago
Jason Rhinelander
638fb25b47
Put version info into a compiled file
...
This rewrites the version info using lokid's approach of compiling it
into a .cpp file that gets generated as part of the build (*not* during
the configure stage).
Among other things, this means that changing the version no longer
invalidates ccache or cmake dependencies, and because it depends on
`.git/index` git commits will cause the version to be regenerated,
making the commit tag more reliable (currently if you rebuild without
running cmake your git commit tag doesn't update).
5 years ago
Jeff Becker
abf9544ddc
make libuv on win32 work
5 years ago
Jason Rhinelander
8d2c22fc72
Replace cppbackport with ghc-filesystem
...
From https://github.com/gulrak/filesystem which is more up-to-date and
looks better maintained than cppbackport.
5 years ago
Jeff Becker
8bac293dc7
fix patching command
5 years ago
Jeff Becker
01dbd329bd
add forgotten file
5 years ago
Jeff Becker
25c820f166
add compile time override for libsodium tarball url using -DSODIUM_TARBALL_URL= https://whatever/tarball.tar.gz
5 years ago
Rick V
c63d0b5be2
add cmake rule to patch libsodium on windows
...
# Conflicts:
# crypto/CMakeLists.txt
5 years ago
Jason Rhinelander
ac3cd441ac
Fix download hash verification & version string
...
Fix hash verification in downloaded libsodium package.
Fix @VERSION@ expansion in sodium/version.h (but don't set it globally
because VERSION is far too generic a variable to be leaving set).
5 years ago
Jason Rhinelander
57ccb1fd5c
Move sodium download into separate cmake include
5 years ago
Rick V
9b9ea6e6d0
make that a universal rule
5 years ago
Rick V
b473f17231
lto not supported for cross compile targets
5 years ago
Rick V
c00b083be7
grab everything and the kitchen sink at build time instead
...
will finish testing this once the new release is stable
5 years ago
Rick V
b2c23f2c71
a. GCC LTO requires specifiying CXXFLAGS in LDFLAGS
...
b. not my fault your machine doesn't link pthread properly
5 years ago
Jason Rhinelander
0774213e87
Fix cmake sodium version check
5 years ago
Jeff Becker
e0a9059d8c
use PACKAGE_FIND_VERFSION
5 years ago
Jeff Becker
7fbb8e25bb
set version in FindLibsodium.cmake
5 years ago
Jeff Becker
f38240f945
devendor libsodium by default except for android
5 years ago
Stephen Shelton
961c8dbddf
Prevent in-source-builds with cmake macro
5 years ago
Michael
77b4efd78b
fixup ios
5 years ago
Jeff
8f46a62aa6
Merge pull request #847 from michael-loki/ios_wip
...
Distinct ios build
5 years ago
Jeff
0aab04d1b2
Merge pull request #843 from michael-loki/fix_static_link
...
Fix static link with gcc
5 years ago
Michael
fadedb4a7b
Distinct ios build
5 years ago
Michael
a5858c770f
Fix static link with gcc
5 years ago
Rick V
94e9305d54
fix static build
5 years ago
Jeff
35230adbe5
Merge pull request #833 from majestrate/gut-utp-2019-09-19
...
remove libutp and all such code related to utp
5 years ago
jeff
1853b28590
remove libutp and all such code related to utp
5 years ago
Michael
6719a1790c
Statically link releases
5 years ago
Rick V
5ecc76a332
if cppbackport is built, make that consistent too
5 years ago
Rick V
89f92d3aed
new cmake module
5 years ago
Rick V
4246caf8a1
add build option for constrained node ops and make sure everything is now target-optimised in all configurations (allows debugging on the target using the debug build config)
...
link libatomic if we're targeting 486
link libatomic.a if we're targeting windows
idk what the hell MSVC does for -arch:IA32
we already set the c++14 flag early on
strip target selection flags from MSVC builds and clang-cl
c++14 does not propagate to compile tests
5 years ago
Rick V
b3a975ff8e
sun fix
...
fix testing on sun
5 years ago
Jeff
e7796a7ba4
Merge pull request #784 from michael-loki/shadow_fixes
...
Partial fixes for shadow
5 years ago
Michael
7d39f84ef3
Partial fixes for shadow
5 years ago
Rick V
3f6f636bbf
reeeee
5 years ago
Jeff
d8e4f5e6fc
Merge pull request #779 from michael-loki/find_libatomic
...
Find libatomic via cmake magics
5 years ago
Michael
e7c48e57e9
Fix on compilers which aren't C++11 by default
5 years ago
Michael
7dfbb41e0d
Find libatomic fix cmake magics
5 years ago
Michael
429284aedc
Fix static linking on macOS
5 years ago
Michael
6e5cab971f
make windows fixes
5 years ago
Michael
16cdfbd5f0
clang-tidy modernize pass
5 years ago
Rick V
c5aaefa7e7
this is getting hairy
5 years ago
Rick V
54d4932d74
why isn't cmake picking this up
5 years ago
Rick V
609a9a1c31
fix netbsd
5 years ago
Rick V
3782479276
fix sun
5 years ago
Rick V
b7ffe37ffb
add make windows config command line
5 years ago
Michael
614b669fd5
Abandon debian
5 years ago
Michael
df498c7bf8
try to make some windows
5 years ago
Jeff Becker
43cb62af16
fix android compile, have makefile pull in libuv for cmake on android
5 years ago
Michael
82958de2d7
Tidy up cmake files
5 years ago
Michael
65af2c4266
Normalise build
5 years ago
Michael
4806e52f62
Try to silence some warnings to reduce noise
5 years ago
Michael
2cc180b6a4
Add FindLibUV and migrate
5 years ago
Michael
2acb163083
Fix llvm 8 build
5 years ago
Michael
a2326efa37
Revert "Merge pull request #679 from tewinget/revert-config-refactor"
...
This reverts commit 2996a7f29c
, reversing
changes made to 10df3bd4b3
.
5 years ago
Thomas Winget
d044d60101
Reverts #678 #677 and #669 with hashes:
...
10df3bd
766ece8
979f095
See those commits for further details
5 years ago
Michael
bd78471dae
Move ini parser as well
5 years ago
Michael
80d1e4aef9
Add in-source version of std::filesystem::permissions
5 years ago
Michael
59e8a7316f
Revert "Merge pull request #668 from michael-loki/remove_cppbackport"
...
This reverts commit 33142d5005
, reversing
changes made to 408a652a01
.
5 years ago
Michael
07377b8d5f
Find libuv for Ryan
5 years ago
Michael
1639c58cb6
Remove cppbackport from vendor dir
5 years ago
Jeff Becker
c63dbe7e48
fix freebsd build
5 years ago
Jeff Becker
e265661adb
try fixing issue number 17 (not done)
5 years ago
Rick V
68862cc830
we libuv now
5 years ago
Rick V
271cfcb64e
remove all disused platform-specific event loops
...
(cherry picked from commit 94d00a169ba7934ef719cc38fe0ca1eff8e1b675)
5 years ago
Rick V
7788d6ec3c
fix windows
...
lto stuff remains for now
since native builds work
(cherry picked from commit 37814472af5e7c35d514bae16d19b08050765d52)
i'm not porting the UNIX-tier cppfs thing
(cherry picked from commit d6edbd789534d4fd0bce6c8c2418347cd80bebdb)
none of this had to be specified directly ffs
(cherry picked from commit 5dbefa7131a6fe0b2006c90ecdba7e466fdd1ecc)
stop breaking shit reee
(cherry picked from commit 14be89902ccc75a7fc21863593da393ca976d0d4)
5 years ago
Michael
8c570653ee
Refactor top level cmake file into multiple components
6 years ago
Michael
0b4d787042
More work on router docker image
...
- Multi-stage docker build (final image only 15MB!)
- Build in release mode
- Fix bug with release mode
- Fix compiler being dumb AF
- Disable FORTIFY for now
- Enable LTO when making a staticly linked release
- Fix some gcc specific warnings
- Refactor cmake stuff into multiple files
6 years ago
Michael
4143472a17
Add cmake module to target a library as 'system', and fix a few warnings
6 years ago
Jeff Becker
edc477b071
update build files again
6 years ago
Jeff Becker
812bb6e0c0
update build files
6 years ago
Jeff Becker
63150549fc
start moving to cmake
6 years ago