aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorCory Fields <theuni-nospam-@xbmc.org>2012-07-12 03:17:56 -0400
committerCory Fields <theuni-nospam-@xbmc.org>2012-08-08 18:59:23 -0400
commit5426043474639d51f461c610c8e0d84f09ce279f (patch)
tree34a13627646f0ea7cdfba731e101ac06ff0a362a /configure.in
parent8c82c4c1251783732fe917f8f460bd22cafa662b (diff)
[droid] basic android configure changes
Diffstat (limited to 'configure.in')
-rwxr-xr-xconfigure.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index c7df81399a..e8c41d9c76 100755
--- a/configure.in
+++ b/configure.in
@@ -493,6 +493,13 @@ MAKE="${MAKE:-make}"
# host detection and setup
case $host in
+ i*86*-android-linux-gnu*)
+ target_platform=target_android
+ ARCH="i486-linux"
+ use_arch="x86"
+ use_cpu="i686"
+ ffmpeg_target_os=linux
+ ;;
i*86*-linux-gnu*)
ARCH="i486-linux"
AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX")
@@ -571,11 +578,28 @@ case $host in
use_arch="arm"
AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX")
;;
+ arm*-*linux-android*)
+ target_platform=target_android
+ use_arch="arm"
+ use_cpu=cortex-a9
+ ARCH="arm"
+ ffmpeg_target_os=linux
+ ;;
*)
AC_MSG_ERROR(unsupported host ($host))
esac
AC_SUBST([ARCH])
+if test "$target_platform" = "target_android" ; then
+ USE_ANDROID=1
+ use_texturepacker_native=yes
+ webserver_checkdepends=yes
+ AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX -DTARGET_ANDROID")
+ CFLAGS="$CFLAGS -Wno-psabi"
+ CXXFLAGS="$CXXFLAGS -Wno-psabi"
+ AC_DEFINE(HAS_EGLGLES, [1], [Define if supporting EGL based GLES Framebuffer])
+fi
+
if test "$build_shared_lib" = "yes"; then
final_message="$final_message\n Shared lib\tYes"
AC_SUBST(USE_LIBXBMC,1)
@@ -2134,6 +2158,7 @@ AC_SUBST(USE_LIBUSB)
AC_SUBST(USE_LIBCEC)
AC_SUBST(USE_MYSQL)
AC_SUBST(USE_WEB_SERVER)
+AC_SUBST(USE_ANDROID)
# pushd and popd are not available in other shells besides bash, so implement