• Home
  • Raw
  • Download

Lines Matching +full:cross +full:- +full:ios +full:- +full:build

4 # By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015
6 # Note: to cross-compile "nix32" on Linux, package gcc-multilib is required.
9 [ ${MAKE_JOBS} -lt 1 ] && \
12 # build Android lib for only one supported architecture
14 if [ -z "$NDK" ]; then
19 HOSTOS=$(uname -s | tr 'LD' 'ld')
20 HOSTARCH=$(uname -m)
27 [ -n "$APILEVEL" ] || APILEVEL="android-14" # default to ICS
28 CROSS=arm-linux-androideabi
31 [ -n "$APILEVEL" ] || APILEVEL="android-21" # first with arm64
32 CROSS=aarch64-linux-android
41 STANDALONE=`realpath android-ndk-${TARGARCH}-${APILEVEL}`
43 [ -d $STANDALONE ] || {
44 python ${NDK}/build/tools/make_standalone_toolchain.py \
45 --arch ${TARGARCH} \
46 --api ${APILEVEL##*-} \
47 --install-dir ${STANDALONE}
50 ANDROID=1 CROSS="${STANDALONE}/${CROSS}/bin" CFLAGS="--sysroot=${STANDALONE}/sysroot" ${MAKE} $*
53 # build iOS lib for all iDevices, or only specific device
55 IOS_SDK=`xcrun --sdk iphoneos --show-sdk-path`
56 IOS_CC=`xcrun --sdk iphoneos -f clang`
57 IOS_CFLAGS="-Os -Wimplicit -isysroot $IOS_SDK"
58 IOS_LDFLAGS="-isysroot $IOS_SDK"
59 if [ -z "$1" ]; then
60 # build for all iDevices
74 rm -rf /usr/lib/libcapstone.*
75 rm -rf /usr/include/capstone
78 export PKGCFGDIR="$(pkg-config --variable pc_path pkg-config | cut -d ':' -f 1)"
82 test -d /usr/lib64 && ${MAKE} LIBDIRARCH=lib64
91 export PKGCFGDIR="$(pkg-config --variable pc_path pkg-config | cut -d ':' -f 1)"
94 test -d /usr/lib64 && LIBDIRARCH=lib64
100 [ -z "${MAKE}" ] && MAKE=gmake
105 if [ -n "`echo "$UNAME" | grep BSD`" ]; then
110 [ -z "${UNAME}" ] && UNAME=$(uname)
111 [ -z "${MAKE}" ] && MAKE=make
112 [ -n "${MAKE_JOBS}" ] && MAKE="$MAKE -j${MAKE_JOBS}"
115 [ -n "$TARGET" ] && shift
120 … CAPSTONE_USE_SYS_DYN_MEM=yes CAPSTONE_STATIC=yes CFLAGS='-O0 -g -fsanitize=address' LDFLAGS='-fsa…
123 "nix32" ) CFLAGS=-m32 LDFLAGS=-m32 ${MAKE} $*;;
124 "cross-win32" ) CROSS=i686-w64-mingw32- ${MAKE} $*;;
125 "cross-win64" ) CROSS=x86_64-w64-mingw32- ${MAKE} $*;;
126 "cygwin-mingw32" ) CROSS=i686-pc-mingw32- ${MAKE} $*;;
127 "cygwin-mingw64" ) CROSS=x86_64-w64-mingw32- ${MAKE} $*;;
128 "cross-android" ) build_android $*;;
129 "cross-android64" ) CROSS=aarch64-linux-gnu- ${MAKE} $*;; # Linux cross build
132 "ios" ) build_iOS $*;;
136 …"osx-kernel" ) CAPSTONE_USE_SYS_DYN_MEM=yes CAPSTONE_HAS_OSXKERNEL=yes CAPSTONE_ARCHS=x86 CAPSTONE…
137 "mac-universal" ) MACOS_UNIVERSAL=yes ${MAKE} $*;;
138 "mac-universal-no" ) MACOS_UNIVERSAL=no ${MAKE} $*;;
140 echo "Usage: $0 ["`grep '^ "' $0 | cut -d '"' -f 2 | tr "\\n" "|"`"]"