aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorwsnipex <wsnipex@a1.net>2016-12-29 15:33:19 +0100
committerwsnipex <wsnipex@a1.net>2017-02-25 07:09:25 +0100
commitda6393340c961b0b0421dc4b50d8237c97af4734 (patch)
tree998f6e615ec70ce029d0dd41c5f412f45ab7cf4f /tools
parent3333615b2cb1ade7dc6050ad352e5d18e3a2cb42 (diff)
[depends] install depends build for debug and release into their own respective dirs
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/configure.ac20
-rw-r--r--tools/depends/target/cmakebuildsys/Makefile17
2 files changed, 27 insertions, 10 deletions
diff --git a/tools/depends/configure.ac b/tools/depends/configure.ac
index 5bf1fcadcd..c5fafc02f5 100644
--- a/tools/depends/configure.ac
+++ b/tools/depends/configure.ac
@@ -116,6 +116,12 @@ if test "x$TAR" = "xno" ; then
AC_MSG_ERROR("Missing program: tar")
fi
+if test "$use_debug" = "yes"; then
+ build_type="debug"
+else
+ build_type="release"
+fi
+
use_host=$host_alias
cross_compiling="yes"
@@ -124,7 +130,7 @@ if test "x$host" = "x$build"; then
cross_compiling="no"
fi
-deps_dir=$use_host
+deps_dir=$use_host-$build_type
tool_dir=$build_cpu-$build_os-native
cross_compiling="yes"
@@ -155,7 +161,7 @@ case $host in
use_cpu="armeabi-v7a"
fi
use_sdk="${use_sdk:-android-21}"
- deps_dir="$use_host-$use_sdk"
+ deps_dir="$use_host-$use_sdk-$build_type"
platform_cflags="-DANDROID -fexceptions"
optimize_flags="-Os"
if test "x$use_cpu" = "xarmeabi-v7a"; then
@@ -173,7 +179,7 @@ case $host in
use_cpu="arm64-v8a"
fi
use_sdk="${use_sdk:-android-21}"
- deps_dir="$use_host-$use_sdk"
+ deps_dir="$use_host-$use_sdk-$build_type"
platform_cflags="-DANDROID -fexceptions"
optimize_flags="-Os"
if test "x$use_cpu" = "xarm64-v8a"; then
@@ -191,7 +197,7 @@ case $host in
use_cpu=$host_cpu
fi
use_sdk="${use_sdk:-android-21}"
- deps_dir="$use_host-$use_sdk"
+ deps_dir="$use_host-$use_sdk-$build_type"
platform_cflags="-DANDROID -fexceptions"
optimize_flags="-Os"
platform_ldflags="-L$prefix/$deps_dir/lib/$use_sdk"
@@ -406,7 +412,7 @@ case $host in
platform_ldflags+=" -arch $use_cpu -m$platform_min_version -isysroot $use_sdk_path -stdlib=libc++"
platform_cxxflags+=" -arch $use_cpu -m$platform_min_version -std=c++11 -stdlib=libc++"
platform_includes="-isysroot $use_sdk_path"
- deps_dir=$sdk_name"_"$use_cpu-target
+ deps_dir="${sdk_name}_${use_cpu}-target-${build_type}"
tool_dir=buildtools-native;
AC_CHECK_LIB([z], [main], has_zlib=1, AC_MSG_WARN("No zlib support in toolchain. Will build libz."); has_zlib=0)
;;
@@ -447,7 +453,7 @@ if test "$target_platform" = "raspberry-pi" ; then
platform_os="linux"
cross_compiling="yes"
use_host="arm-linux-gnueabihf"
- deps_dir="$use_host"
+ deps_dir="$use_platform-$build_type"
platform_cflags+=" -pipe -mabi=aapcs-linux -Wno-psabi \
-Wa,-mno-warn-deprecated -Wno-deprecated-declarations \
-isystem${use_firmware}/opt/vc/include \
@@ -708,6 +714,8 @@ echo -e "host:\t\t $use_host"
echo -e "cflags:\t\t $platform_cflags"
echo -e "cxxflags:\t $platform_cxxflags"
echo -e "ldflags:\t $platform_ldflags"
+echo -e "prefix:\t\t $prefix"
+echo -e "depends:\t $prefix/$deps_dir"
if test "$platform_os" == "android"; then
echo -e "sdk-platform:\t $use_sdk"
echo -e "build-tools:\t $build_tools_path"
diff --git a/tools/depends/target/cmakebuildsys/Makefile b/tools/depends/target/cmakebuildsys/Makefile
index b0ca5ed1e4..5ea8613f9a 100644
--- a/tools/depends/target/cmakebuildsys/Makefile
+++ b/tools/depends/target/cmakebuildsys/Makefile
@@ -10,12 +10,21 @@ ifeq ($(Configuration),)
endif
endif
+BUILD_DIR=$(CMAKE_SOURCE_DIR)/build
+
all:
- mkdir -p $(CMAKE_SOURCE_DIR)/build
- cd $(CMAKE_SOURCE_DIR)/build; $(CMAKE) -DCMAKE_BUILD_TYPE=$(Configuration) -DENABLE_INTERNAL_CROSSGUID=OFF -DENABLE_INTERNAL_FFMPEG=OFF $(CMAKE_SOURCE_DIR)
+ mkdir -p $(BUILD_DIR)
+ cd $(BUILD_DIR); $(CMAKE) -DCMAKE_BUILD_TYPE=$(Configuration) -DENABLE_INTERNAL_CROSSGUID=OFF -DENABLE_INTERNAL_FFMPEG=OFF $(CMAKE_SOURCE_DIR)
+
+
+kodi:
+ $(MAKE) -C $(BUILD_DIR)
+
+install:
+ $(MAKE) -C $(BUILD_DIR) install
clean:
- cd $(CMAKE_SOURCE_DIR)/build; $(MAKE) clean
+ $(MAKE) -C $(BUILD_DIR) clean
distclean:
- cd $(CMAKE_SOURCE_DIR)/build; $(MAKE) clean
+ cd $(BUILD_DIR) && rm -rf *