Lines Matching +full:- +full:- +full:toolchain
8 export NDK=/opt/ndk_r17/android-ndk-r17-beta2-linux-x86_64/android-ndk-r17-beta2
10 export TOOLCHAIN=${NDK}/toolchain
12 export SYSROOT=${NDK}/platforms/android-22/arch-arm
13 set -e
16 #zlib-1.2.8
17 #libuv-1.x
18 #mbedtls-2.11.0
19 #libwebsockets-3.0.0
22 # create a local android toolchain
23 API=${3:-24}
25 $NDK/build/tools/make-standalone-toolchain.sh \
26 --toolchain=arm-linux-androideabi-4.9 \
27 --arch=arm \
28 --install-dir=`pwd`/android-toolchain-arm \
29 --platform=android-$API \
30 --stl=libc++ \
31 --force \
32 --verbose
34 # setup environment to use the gcc/ld from the android toolchain
35 export INSTALL_PATH=/opt/libwebsockets_android/android-toolchain-arm
36 export TOOLCHAIN_PATH=`pwd`/android-toolchain-arm
37 export TOOL=arm-linux-androideabi
39 export PATH=`pwd`/android-toolchain-arm/bin:$PATH
40 export CC=$NDK_TOOLCHAIN_BASENAME-gcc
41 export CXX=$NDK_TOOLCHAIN_BASENAME-g++
43 export LD=$NDK_TOOLCHAIN_BASENAME-ld
44 export AR=$NDK_TOOLCHAIN_BASENAME-ar
45 export RANLIB=$NDK_TOOLCHAIN_BASENAME-ranlib
46 export STRIP=$NDK_TOOLCHAIN_BASENAME-strip
51 [ ! -f ./android-toolchain-arm/lib/libuv.so ] && {
63 [ ! -f ./android-toolchain-arm/lib/libz.so ] && {
64 cd zlib-1.2.8
75 [ ! -f ./android-toolchain-arm/lib/libmbedtls.so ] && {
78 cd mbedtls-2.11.0
79 [ ! -d build ] && mkdir build
81 export CFLAGS="$CFLAGS -fomit-frame-pointer"
83 PATH=$TOOLCHAIN_PATH:$PATH cmake .. -DCMAKE_TOOLCHAIN_FILE=`pwd`/../cross-arm-android-gnueabi.cmake…
84 -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PATH} \
85 -DCMAKE_BUILD_TYPE=RELEASE -DUSE_SHARED_MBEDTLS_LIBRARY=On
95 [ ! -f ./android-toolchain-arm/lib/libwebsockets.so ] && {
97 [ ! -d build ] && mkdir build
101 PATH=$TOOLCHAIN_PATH:$PATH cmake .. -DCMAKE_TOOLCHAIN_FILE=`pwd`/../cross-arm-android-gnueabi.cmake…
102 -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PATH} \
103 -DLWS_WITH_LWSWS=1 \
104 -DLWS_WITH_MBEDTLS=1 \
105 -DLWS_WITHOUT_TESTAPPS=1 \
106 …-DLWS_MBEDTLS_LIBRARIES="${INSTALL_PATH}/lib/libmbedcrypto.a;${INSTALL_PATH}/lib/libmbedtls.a;${IN…
107 -DLWS_MBEDTLS_INCLUDE_DIRS=${INSTALL_PATH}/include \
108 -DLWS_LIBUV_LIBRARIES=${INSTALL_PATH}/lib/libuv.so \
109 -DLWS_LIBUV_INCLUDE_DIRS=${INSTALL_PATH}/include \
110 -DLWS_ZLIB_LIBRARIES=${INSTALL_PATH}/lib/libz.so \
111 -DLWS_ZLIB_INCLUDE_DIRS=${INSTALL_PATH}/include