mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-23 09:04:27 +01:00
Merge pull request #200 from Nadav-Eyesight/android_more_variables
Android - Use clang and add an API variable
This commit is contained in:
commit
f403246365
@ -11,12 +11,13 @@ ENV CROSS_TRIPLE=arm-linux-androideabi
|
||||
ENV CROSS_ROOT=/usr/${CROSS_TRIPLE}
|
||||
ENV AS=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-as \
|
||||
AR=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ar \
|
||||
CC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-gcc \
|
||||
CC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-clang \
|
||||
CPP=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-cpp \
|
||||
CXX=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-g++ \
|
||||
CXX=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-clang++ \
|
||||
LD=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ld
|
||||
|
||||
ENV ANDROID_NDK_REVISION 13b
|
||||
ENV ANDROID_NDK_REVISION 16b
|
||||
ENV ANDROID_NDK_API 16
|
||||
RUN mkdir -p /build && \
|
||||
cd /build && \
|
||||
curl -O https://dl.google.com/android/repository/android-ndk-r${ANDROID_NDK_REVISION}-linux-x86_64.zip && \
|
||||
@ -24,7 +25,8 @@ RUN mkdir -p /build && \
|
||||
cd android-ndk-r${ANDROID_NDK_REVISION} && \
|
||||
./build/tools/make_standalone_toolchain.py \
|
||||
--arch arm \
|
||||
--api 16 \
|
||||
--api ${ANDROID_NDK_API} \
|
||||
--stl=libc++ \
|
||||
--install-dir=${CROSS_ROOT} && \
|
||||
cd / && \
|
||||
rm -rf /build && \
|
||||
|
@ -6,8 +6,8 @@ set(CMAKE_ANDROID_STANDALONE_TOOLCHAIN /usr/${cross_triple}/)
|
||||
set(CMAKE_ANDROID_ARM_MODE 1)
|
||||
set(CMAKE_ANDROID_ARM_NEON 1)
|
||||
|
||||
set(CMAKE_C_COMPILER /usr/${cross_triple}/bin/${cross_triple}-gcc)
|
||||
set(CMAKE_CXX_COMPILER /usr/${cross_triple}/bin/${cross_triple}-g++)
|
||||
set(CMAKE_C_COMPILER /usr/${cross_triple}/bin/${cross_triple}-clang)
|
||||
set(CMAKE_CXX_COMPILER /usr/${cross_triple}/bin/${cross_triple}-clang++)
|
||||
|
||||
set(CMAKE_FIND_ROOT_PATH /usr/${cross_triple})
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
|
Loading…
Reference in New Issue
Block a user