diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-05-07 17:26:31 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-05-07 17:26:32 +0200 |
commit | 123df0eaf7bc1db5a4001381d8f6ac8a3c8e0f05 (patch) | |
tree | 426683b13e00d59d40eb5999465c98f69b01d5f5 /contrib/depends/Makefile | |
parent | Merge pull request #5497 (diff) | |
parent | build: debug and test builds via contrib (diff) | |
download | monero-123df0eaf7bc1db5a4001381d8f6ac8a3c8e0f05.tar.xz |
Merge pull request #5419
f29fecd5 build: debug and test builds via contrib (Dusan Klinec)
Diffstat (limited to 'contrib/depends/Makefile')
-rw-r--r-- | contrib/depends/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/contrib/depends/Makefile b/contrib/depends/Makefile index afa61b93b..6ab602ac0 100644 --- a/contrib/depends/Makefile +++ b/contrib/depends/Makefile @@ -22,9 +22,16 @@ host_toolchain:=$(HOST)- endif ifneq ($(DEBUG),) -release_type=debug +release_type=Debug else -release_type=release +release_type=Release +endif + +ifneq ($(TESTS),) +build_tests=ON +release_type=Debug +else +build_tests=OFF endif base_build_dir=$(BASEDIR)/work/build @@ -164,6 +171,8 @@ $(host_prefix)/share/toolchain.cmake : toolchain.cmake.in $(host_prefix)/.stamp_ -e 's|@LDFLAGS@|$(strip $(host_LDFLAGS) $(host_$(release_type)_LDFLAGS))|' \ -e 's|@allow_host_packages@|$(ALLOW_HOST_PACKAGES)|' \ -e 's|@debug@|$(DEBUG)|' \ + -e 's|@release_type@|$(release_type)|' \ + -e 's|@build_tests@|$(build_tests)|' \ -e 's|@depends@|$(host_cmake)|' \ -e 's|@prefix@|$($(host_arch)_$(host_os)_prefix)|'\ -e 's|@sdk@|$(SDK_PATH)|'\ |