aboutsummaryrefslogtreecommitdiff
path: root/contrib/depends/Makefile
diff options
context:
space:
mode:
authorDusan Klinec <dusan.klinec@gmail.com>2019-04-09 19:23:28 +0200
committerDusan Klinec <dusan.klinec@gmail.com>2019-04-10 15:43:52 +0200
commitf29fecd517cae20e6fb86e3a8460f47063df158b (patch)
tree9ab77c42c5312b5570d5011346ba831c64d4dba5 /contrib/depends/Makefile
parentMerge pull request #5364 (diff)
downloadmonero-f29fecd517cae20e6fb86e3a8460f47063df158b.tar.xz
build: debug and test builds via contrib
Diffstat (limited to '')
-rw-r--r--contrib/depends/Makefile13
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)|'\