Skip to content

Instantly share code, notes, and snippets.

View louisje's full-sized avatar
💯
左手寫程式 (">_<) 右手做測試

Louis Jeng louisje

💯
左手寫程式 (">_<) 右手做測試
View GitHub Profile
@louisje
louisje / android-configure.sh
Last active September 13, 2016 07:52 — forked from nddrylliog/android_configure.sh
Cross-compile autotools library for Android / arm-linux-androideabiI stick that in ~/bin/, chmod +x, and then run it in place of "./configure" in my project. Then a make and make install later, the prefix contains libraries built for android. Neato eh?
#!/bin/sh
#
# NDK Standalone Toolchain:
# $HOM#/Android/Sdk/ndk-bundle/build/tools/make_standalone_toolchain.py --arch x86 --api 22 --stl gnustl -v --install-dir $HOME/workspace/ndk-toolchain --force
# cp $HOME/Android/Sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86/libgnustl_static.a $HOME/Android/Sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/x86/libandroid_support.a $HOME/workspace/ndk-toolchain/i686-linux-android/lib
#
# NDK
export TARGET='i686-linux-android'
export TOOLCHAIN=${HOME}/workspace/ndk-toolchain
#!/bin/sh
num=3
set -e
if test -n "$SWARM_NUM"; then
num="$SWARM_NUM"
fi
create() {