[vlc-commits] Add an automate variable to detect Android builb and use it to forbid build of
Rémi Duraffort
git at videolan.org
Sat Apr 30 14:48:00 CEST 2011
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Apr 30 11:54:09 2011 +0200| [8a1afb86f7747205d490d86fa20d4dd1f5932e69] | committer: Rémi Duraffort
Add an automate variable to detect Android builb and use it to forbid build of
access_dtv for Android systems.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8a1afb86f7747205d490d86fa20d4dd1f5932e69
---
configure.ac | 8 +++++++-
modules/access/Modules.am | 2 ++
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 79a118f..39707f1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -171,6 +171,7 @@ LDFLAGS_vlc="${LDFLAGS}"
dnl
dnl Check the operating system
dnl
+HAVE_ANDROID="0"
HAVE_WIN64="0"
case "${host_os}" in
"")
@@ -178,6 +179,10 @@ case "${host_os}" in
;;
linux*)
SYS=linux
+ AC_TRY_COMPILE([],[#ifndef __ANDROID__
+ # error "Not compiling for Android"
+ #endif],
+ [HAVE_ANDROID="1"])
;;
bsdi*)
SYS=bsdi
@@ -393,13 +398,14 @@ case "${host_os}" in
SYS="${host_os}"
;;
esac
+AM_CONDITIONAL(HAVE_ANDROID, test "${HAVE_ANDROID}" = "1")
AM_CONDITIONAL(HAVE_DARWIN, test "${SYS}" = "darwin")
AM_CONDITIONAL(HAVE_LINUX, test "${SYS}" = "linux")
AM_CONDITIONAL(HAVE_OS2, test "${SYS}" = "os2")
+AM_CONDITIONAL(HAVE_SYMBIAN, test "${SYS}" = "symbian")
AM_CONDITIONAL(HAVE_WIN32, test "${SYS}" = "mingw32")
AM_CONDITIONAL(HAVE_WIN64, test "${HAVE_WIN64}" = "1")
AM_CONDITIONAL(HAVE_WINCE, test "${SYS}" = "mingwce")
-AM_CONDITIONAL(HAVE_SYMBIAN, test "${SYS}" = "symbian")
AM_CONDITIONAL(USE_PEFLAGS, test "${enable_peflags}" = "yes")
dnl
diff --git a/modules/access/Modules.am b/modules/access/Modules.am
index 8d7bdce..ba81980 100644
--- a/modules/access/Modules.am
+++ b/modules/access/Modules.am
@@ -128,9 +128,11 @@ libdtv_plugin_la_LIBADD = $(AM_LIBADD)
libdtv_plugin_la_DEPENDENCIES =
if HAVE_LINUX
+if !HAVE_ANDROID
libdtv_plugin_la_SOURCES += dtv/linux.c
libvlc_LTLIBRARIES += libdtv_plugin.la
endif
+endif
if HAVE_WIN32
# Work-around automake bug:
More information about the vlc-commits
mailing list