[Android] Revert "build: move ndk fixup into configure.sh"
Thomas Guillem
git at videolan.org
Mon Oct 20 18:05:28 CEST 2014
vlc-ports/android | branch: master | Thomas Guillem <tom at gllm.fr> | Mon Oct 20 17:27:33 2014 +0200| [c8dccbaf8bc525b1084998da3535b8ea8aae9f3f] | committer: Thomas Guillem
Revert "build: move ndk fixup into configure.sh"
This reverts commit 0a79ed074b323e5184ac42108c6be2a3af2e1df0.
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=c8dccbaf8bc525b1084998da3535b8ea8aae9f3f
---
compile.sh | 17 +++++++++++++++++
configure.sh | 17 -----------------
2 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/compile.sh b/compile.sh
index 0655a35..1dc8604 100755
--- a/compile.sh
+++ b/compile.sh
@@ -314,6 +314,23 @@ else
TARGET=
fi
+# ANDROID NDK FIXUP (BLAME GOOGLE)
+config_undef ()
+{
+ sed -i 's,#define '$1' 1,/\* #undef '$1' \*/,' config.h
+}
+
+if [ ${ANDROID_ABI} = "x86" -a ${ANDROID_API} != "android-21" ] ; then
+ # NDK x86 libm.so has nanf symbol but no nanf definition, we don't known if
+ # intel devices has nanf. Assume they don't have it.
+ config_undef HAVE_NANF
+fi
+if [ ${ANDROID_API} = "android-21" ] ; then
+ # android-21 has empty sys/shm.h headers that triggers shm detection but it
+ # doesn't have any shm functions and/or symbols. */
+ config_undef HAVE_SYS_SHM_H
+fi
+
echo "Building"
make $MAKEFLAGS
diff --git a/configure.sh b/configure.sh
index d20c27c..bec7966 100755
--- a/configure.sh
+++ b/configure.sh
@@ -113,20 +113,3 @@ sh $VLC_SOURCEDIR/configure --host=$TARGET_TUPLE --build=x86_64-unknown-linux $E
--disable-x264 \
--disable-schroedinger --disable-dirac \
$*
-
-# ANDROID NDK FIXUP (BLAME GOOGLE)
-config_undef ()
-{
- sed -i 's,#define '$1' 1,/\* #undef '$1' \*/,' config.h
-}
-
-if [ ${ANDROID_ABI} = "x86" -a ${ANDROID_API} != "android-21" ] ; then
- # NDK x86 libm.so has nanf symbol but no nanf definition, we don't known if
- # intel devices has nanf. Assume they don't have it.
- config_undef HAVE_NANF
-fi
-if [ ${ANDROID_API} = "android-21" ] ; then
- # android-21 has empty sys/shm.h headers that triggers shm detection but it
- # doesn't have any shm functions and/or symbols. */
- config_undef HAVE_SYS_SHM_H
-fi
More information about the Android
mailing list