diff options
author | wsnipex <wsnipex@a1.net> | 2016-11-22 14:17:02 +0100 |
---|---|---|
committer | wsnipex <wsnipex@a1.net> | 2016-11-23 11:09:06 +0100 |
commit | d0f3d6a322f4d5c596ed696b4bd8b4a7150a055c (patch) | |
tree | 8908305ccd1ed9646e1bb5e379e11eb1b52ffa18 | |
parent | 5adc1e9798036bc9943bb120853d93f3f24def75 (diff) |
[depends] pass build type (debug|release) to targets
-rw-r--r-- | tools/depends/Makefile.include.in | 1 | ||||
-rw-r--r-- | tools/depends/configure.ac | 1 | ||||
-rw-r--r-- | tools/depends/target/cmakebuildsys/Makefile | 7 |
3 files changed, 9 insertions, 0 deletions
diff --git a/tools/depends/Makefile.include.in b/tools/depends/Makefile.include.in index a6e419fe8a..a714daec11 100644 --- a/tools/depends/Makefile.include.in +++ b/tools/depends/Makefile.include.in @@ -1,5 +1,6 @@ abs_top_srcdir=@abs_top_srcdir@ +DEBUG_BUILD=@use_debug@ TOOLCHAIN=@use_toolchain@ NDKROOT=@use_ndk@ SDKROOT=@use_sdk_path@ diff --git a/tools/depends/configure.ac b/tools/depends/configure.ac index f438e5d830..3626ea5204 100644 --- a/tools/depends/configure.ac +++ b/tools/depends/configure.ac @@ -597,6 +597,7 @@ echo -e AC_SUBST(build_tools_path) fi +AC_SUBST(use_debug) AC_SUBST(use_host) AC_SUBST(deps_dir) AC_SUBST(tool_dir) diff --git a/tools/depends/target/cmakebuildsys/Makefile b/tools/depends/target/cmakebuildsys/Makefile index 8004712be2..b2b472f3ce 100644 --- a/tools/depends/target/cmakebuildsys/Makefile +++ b/tools/depends/target/cmakebuildsys/Makefile @@ -3,6 +3,13 @@ VERSION.TXT := $(CORE_SOURCE_DIR)/version.txt APP_NAME=$(shell awk '/APP_NAME/ {print tolower($$2)}' $(VERSION.TXT)) +ifeq ($(Configuration),) + Configuration = Release + ifeq ($(DEBUG_BUILD),yes) + Configuration = Debug + endif +endif + all: mkdir -p $(CORE_SOURCE_DIR)/build cd $(CORE_SOURCE_DIR)/build; $(CMAKE) -DCMAKE_BUILD_TYPE=$(Configuration) $(CORE_SOURCE_DIR)/project/cmake |