فهرست منبع

Add build config for android third party libraries

Tatsuhiro Tsujikawa 10 سال پیش
والد
کامیت
3844701085
2فایلهای تغییر یافته به همراه28 افزوده شده و 0 حذف شده
  1. 16 0
      android/generic-config
  2. 12 0
      android/openssl-config

+ 16 - 0
android/generic-config

@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+if [ -z "$ANDROID_HOME" ]; then
+    echo 'No $ANDROID_HOME specified.'
+    exit 1
+fi
+PREFIX=$ANDROID_HOME/usr/local
+TOOLCHAIN=$ANDROID_HOME/toolchain
+PATH=$TOOLCHAIN/bin:$PATH
+
+./configure \
+    --host=arm-linux-androideabi \
+    --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
+    --prefix=$PREFIX \
+    --disable-shared \
+    --enable-static

+ 12 - 0
android/openssl-config

@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+if [ -z "$ANDROID_HOME" ]; then
+    echo 'No $ANDROID_HOME specified.'
+    exit 1
+fi
+PREFIX=$ANDROID_HOME/usr/local
+TOOLCHAIN=$ANDROID_HOME/toolchain
+PATH=$TOOLCHAIN/bin:$PATH
+
+export CROSS_COMPILE=$TOOLCHAIN/bin/arm-linux-androideabi-
+./Configure --prefix=$PREFIX android