aboutsummaryrefslogtreecommitdiff
path: root/tools/depends
diff options
context:
space:
mode:
authorpeak3d <pfau@peak3d.de>2018-01-26 09:39:44 +0100
committerpeak3d <pfau@peak3d.de>2018-01-26 09:39:44 +0100
commite653a990df93f931570616a32b4fd469b8b159d8 (patch)
treeb00242f63027a4816358f7aeb09dd0662d2c841a /tools/depends
parentcf128f4269cd148210e4392a7dca407e80671606 (diff)
[Android] default sdk=android-26 / update doc
Diffstat (limited to 'tools/depends')
-rw-r--r--tools/depends/Makefile.include.in1
-rw-r--r--tools/depends/README4
-rw-r--r--tools/depends/configure.ac39
-rw-r--r--tools/depends/target/Toolchain.cmake.in1
-rw-r--r--tools/depends/target/Toolchain_binaddons.cmake.in1
5 files changed, 9 insertions, 37 deletions
diff --git a/tools/depends/Makefile.include.in b/tools/depends/Makefile.include.in
index 3e8dd800d4..2b35b27eac 100644
--- a/tools/depends/Makefile.include.in
+++ b/tools/depends/Makefile.include.in
@@ -10,7 +10,6 @@ PLATFORM=@deps_dir@
HOST=@use_host@
CPU=@use_cpu@
NATIVEPLATFORM=@build_cpu@-@build_os@-native
-SDK_PLATFORM=@use_sdk@
NDK_LEVEL=@use_ndk_api@
RETRIEVE_TOOL=@CURL@
ARCHIVE_TOOL=@TAR@
diff --git a/tools/depends/README b/tools/depends/README
index 42f08fe45e..422ee83308 100644
--- a/tools/depends/README
+++ b/tools/depends/README
@@ -25,10 +25,10 @@ TVOS:
#----------------------------------------------------------------------------
arm:
- ./configure --with-tarballs=/opt/xbmc-tarballs --host=arm-linux-androideabi --with-sdk-path=/opt/android-sdk-linux --with-ndk-path=/opt/android-ndk-r16 --with-toolchain=/opt/arm-linux-androideabi-4.8-vanilla/android-21 --prefix=/opt/xbmc-depends
+ ./configure --with-tarballs=/opt/xbmc-tarballs --host=arm-linux-androideabi --with-sdk-path=/opt/android-sdk-linux --with-ndk-path=/opt/android-ndk-r16 --with-toolchain=/opt/arm-linux-androideabi-4.9-vanilla/android-21 --prefix=/opt/xbmc-depends
x86:
- ./configure --with-tarballs=/opt/xbmc-tarballs --host=i686-linux-android --with-sdk-path=/opt/android-sdk-linux --with-ndk-path=/opt/android-ndk-r16 --with-toolchain=/opt/x86-linux-4.8-vanilla/android-21 --prefix=/opt/xbmc-depends
+ ./configure --with-tarballs=/opt/xbmc-tarballs --host=i686-linux-android --with-sdk-path=/opt/android-sdk-linux --with-ndk-path=/opt/android-ndk-r16 --with-toolchain=/opt/x86-linux-4.9-vanilla/android-21 --prefix=/opt/xbmc-depends
#- Linux
#----------------------------------------------------------------------------
diff --git a/tools/depends/configure.ac b/tools/depends/configure.ac
index 503b588543..458230f025 100644
--- a/tools/depends/configure.ac
+++ b/tools/depends/configure.ac
@@ -73,13 +73,14 @@ AC_ARG_WITH([sdk-path],
AC_ARG_WITH([sdk],
[AS_HELP_STRING([--with-sdk],
- [specify sdk platform version (optional for android). default is android-24])],
+ [specify sdk platform version.])],
[use_sdk=$withval])
AC_ARG_WITH([ndk-api],
[AS_HELP_STRING([--with-ndk-api],
- [specify ndk level (optional for android). default is 21])],
- [use_ndk_api=$withval])
+ [specify ndk level (optional for android), default is 21.])],
+ [use_ndk_api=$withval],
+ [use_ndk_api=21])
AC_ARG_ENABLE([gplv3],
[AS_HELP_STRING([--enable-gplv3],
@@ -202,8 +203,6 @@ case $host in
fi
platform_cc=clang
platform_cxx=clang++
- use_sdk="${use_sdk:-android-24}"
- use_ndk_api="${use_ndk_api:-21}"
deps_dir="$use_host-$use_ndk_api-$build_type"
platform_cflags="-DANDROID -D__ANDROID_API__=$use_ndk_api -fexceptions -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fPIC -DPIC -D_GLIBCXX_USE_C99_MATH_TR1"
optimize_flags="-Os"
@@ -223,8 +222,6 @@ case $host in
fi
platform_cc=clang
platform_cxx=clang++
- use_sdk="${use_sdk:-android-24}"
- use_ndk_api="${use_ndk_api:-21}"
deps_dir="$use_host-$use_ndk_api-$build_type"
platform_cflags="-DANDROID -D__ANDROID_API__=$use_ndk_api -fexceptions -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fPIC -DPIC -D_GLIBCXX_USE_C99_MATH_TR1"
optimize_flags="-Os"
@@ -244,8 +241,6 @@ case $host in
fi
platform_cc=clang
platform_cxx=clang++
- use_sdk="${use_sdk:-android-24}"
- use_ndk_api="${use_ndk_api:-21}"
deps_dir="$use_host-$use_ndk_api-$build_type"
platform_cflags="-DANDROID -D__ANDROID_API__=$use_ndk_api -fexceptions -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fPIC -DPIC -D_GLIBCXX_USE_C99_MATH_TR1"
optimize_flags="-Os"
@@ -678,18 +673,6 @@ if [ ! `mkdir -p $use_tarballs` ]; then
AC_MSG_ERROR(unable to create tarballs dir. verify that the path and permissions are correct.)
fi
-if test "$platform_os" == "android"; then
- echo
-
- if [ ! `mkdir -p $prefix/$deps_dir/include/$use_sdk` ]; then
- AC_MSG_ERROR(unable to create $prefix/$deps_dir/include/$use_sdk. verify that the path and permissions are correct.)
- fi
-
- if [ ! `mkdir -p $prefix/$deps_dir/lib/$use_sdk` ]; then
- AC_MSG_ERROR(unable to create $prefix/$deps_dir/lib/$use_sdk. verify that the path and permissions are correct.)
- fi
-fi
-
# remove unwanted optimization flags
tmp_cflags=$(echo $c11_flags $platform_cflags | sed 's/-O@<:@123@:>@//g;s/-g //g;s/ \{2,\}//g')
tmp_cxxflags=$(echo $cxx11_flags $platform_cxxflags | sed 's/-O@<:@123@:>@//g;s/-g //g;s/ \{2,\}//g')
@@ -730,7 +713,6 @@ if test "$platform_os" == "android"; then
echo -e
AC_SUBST(use_sdk_path)
AC_SUBST(use_ndk_path)
- AC_SUBST(use_sdk)
AC_SUBST(use_ndk_api)
AC_SUBST(build_tools_path)
fi
@@ -768,14 +750,6 @@ AC_SUBST(app_rendersystem)
AC_SUBST(ffmpeg_options)
AC_OUTPUT
-echo -e "ccache:\t $use_ccache"
-echo -e "toolchain:\t $use_toolchain"
-echo -e "cpu:\t\t $use_cpu"
-echo -e "host:\t\t $use_host"
-if test "$platform_os" == "android"; then
- echo -e "sdk-platform:\t $use_sdk"
- echo -e "build-tools:\t $build_tools_path"
-fi
if test "$platform_os" == "ios"; then
if test "$use_platform" = "tvos"; then
@@ -799,6 +773,7 @@ cp -vf native/config.site.native $prefix/$tool_dir/share/config.site
echo -e "\n\n#------- configuration -------#"
+echo -e "ccache:\t\t $use_ccache"
echo -e "build type:\t $build_type"
echo -e "toolchain:\t $use_toolchain"
echo -e "cpu:\t\t $use_cpu"
@@ -807,10 +782,10 @@ echo -e "cflags:\t\t $platform_cflags"
echo -e "cxxflags:\t $platform_cxxflags"
echo -e "ldflags:\t $platform_ldflags"
echo -e "ffmpeg options:\t $ffmpeg_options"
-echo -e "prefix:\t\t $prefix"
+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 "ndk-api-level:\t $use_ndk_api"
echo -e "build-tools:\t $build_tools_path"
fi
diff --git a/tools/depends/target/Toolchain.cmake.in b/tools/depends/target/Toolchain.cmake.in
index b26b230a5f..49ecb43267 100644
--- a/tools/depends/target/Toolchain.cmake.in
+++ b/tools/depends/target/Toolchain.cmake.in
@@ -83,7 +83,6 @@ if(CORE_SYSTEM_NAME STREQUAL android)
set(SDKROOT @use_sdk_path@)
set(TOOLCHAIN @use_toolchain@)
set(HOST @use_host@)
- set(SDK_PLATFORM @use_sdk@)
string(REPLACE ":" ";" SDK_BUILDTOOLS_PATH "@build_tools_path@")
endif()
diff --git a/tools/depends/target/Toolchain_binaddons.cmake.in b/tools/depends/target/Toolchain_binaddons.cmake.in
index 36770de7f3..eadaa485be 100644
--- a/tools/depends/target/Toolchain_binaddons.cmake.in
+++ b/tools/depends/target/Toolchain_binaddons.cmake.in
@@ -75,7 +75,6 @@ endif()
if(CORE_SYSTEM_NAME STREQUAL android)
set(NDKROOT @use_ndk_path@)
set(SDKROOT @use_sdk_path@)
- set(SDK_PLATFORM @use_sdk@)
string(REPLACE ":" ";" SDK_BUILDTOOLS_PATH "@build_tools_path@")
endif()