[Pkg-privacy-commits] [onioncat] 238/241: add android compilation script

Intrigeri intrigeri at moszumanska.debian.org
Wed Aug 26 16:17:19 UTC 2015


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to branch upstream-master
in repository onioncat.

commit 3a0d3e62055a27ad0874f4e63d9d65b952b50843
Author: eagle <eagle at 58e1ccc2-750e-0410-8d0d-f93ca75ab447>
Date:   Wed Mar 19 21:26:53 2014 +0000

    add android compilation script
    
    git-svn-id: https://www.cypherpunk.at/svn/onioncat/trunk@567 58e1ccc2-750e-0410-8d0d-f93ca75ab447
---
 android/android_configure | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/android/android_configure b/android/android_configure
new file mode 100755
index 0000000..1c76b43
--- /dev/null
+++ b/android/android_configure
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+# Cross compilation script for Android.
+# The Android NDK has to be installed and the environment variable ANDROID_NDK
+# has to be set properly. Run this script from the package root directory (one
+# above this).
+
+export CROSS_COMPILE=arm-linux-androideabi
+ 
+export ANDROID_PREFIX=${ANDROID_NDK}/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64
+
+# level 9 is Android API 2.3 (Gingerbread)
+export SYSROOT=${ANDROID_NDK}/platforms/android-9/arch-arm
+ 
+export CROSS_PATH=${ANDROID_PREFIX}/bin/${CROSS_COMPILE}
+ 
+export CPP=${CROSS_PATH}-cpp
+export AR=${CROSS_PATH}-ar
+export AS=${CROSS_PATH}-as
+export NM=${CROSS_PATH}-nm
+export CC=${CROSS_PATH}-gcc
+#export CXX=${CROSS_PATH}-g++
+export LD=${CROSS_PATH}-ld
+export RANLIB=${CROSS_PATH}-ranlib
+ 
+#export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
+ 
+export CFLAGS="${CFLAGS} --sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${ANDROID_PREFIX}/include"
+export CPPFLAGS="${CFLAGS}"
+export LDFLAGS="${LDFLAGS} -L${SYSROOT}/usr/lib -L${ANDROID_PREFIX}/lib"
+ 
+./configure --host=${CROSS_COMPILE} "$@"
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onioncat.git



More information about the Pkg-privacy-commits mailing list