From a82e9421d53eb60095af6dcd5e888e7bb42f1a00 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 19 Nov 2012 00:53:17 +0000 Subject: [PATCH] build: try to build neercs on Android; far from ready yet. --- build/lol-build | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/build/lol-build b/build/lol-build index 905b1e1f..7a12fa5a 100755 --- a/build/lol-build +++ b/build/lol-build @@ -103,6 +103,11 @@ configure() { cd "$top_srcdir" case "$platform" in + android-arm) + PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$PWD/external/libcaca-0.99.beta18/lib/pkgconfig" + LDFLAGS="$LDFLAGS -L$PWD/external/libcaca-0.99.beta18/lib/arm-linux-androideabi -lz" + CPPFLAGS="$CPPFLAGS -I$PWD/external/libcaca-0.99.beta18/include -DCACA_STATIC" + ;; win*-i386) if test "x${MSYSTEM}" = xMINGW32; then : @@ -167,11 +172,11 @@ configure() # No configuration needed ;; android-arm) - CPPFLAGS="-Wno-psabi -I$ANDROID_NDK_ROOT/sources/cxx-stl/stlport/stlport -fpic -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64" - CFLAGS="-march=armv5te -mtune=xscale -msoft-float -mthumb" - CXXFLAGS="-march=armv5te -mtune=xscale -msoft-float -mthumb -fno-rtti -fno-exceptions" - LOL_LIBS="-L$ANDROID_NDK_ROOT/sources/cxx-stl/stlport/libs/armeabi -lstlport_shared -lm -fpic -XCClinker -shared" - ./configure --host=arm-linux-androideabi ac_cv_exeext=.so CPPFLAGS="$CPPFLAGS" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LOL_LIBS="$LOL_LIBS" + CPPFLAGS="$CPPFLAGS -Wno-psabi -I$ANDROID_NDK_ROOT/sources/cxx-stl/stlport/stlport -fpic -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64" + CFLAGS="$CFLAGS -march=armv5te -mtune=xscale -msoft-float -mthumb" + CXXFLAGS="$CXXFLAGS -march=armv5te -mtune=xscale -msoft-float -mthumb -fno-rtti -fno-exceptions" + LOL_LIBS="$LOL_LIBS -L$ANDROID_NDK_ROOT/sources/cxx-stl/stlport/libs/armeabi -lstlport_shared -lm -fpic -XCClinker -shared" + PKG_CONFIG_PATH="$PKG_CONFIG_PATH" ./configure --host=arm-linux-androideabi ac_cv_exeext=.so CPPFLAGS="$CPPFLAGS" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" LOL_LIBS="$LOL_LIBS" # FIXME: is this needed? # ant debug # ant debug install