Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 1674472

Browse files
Add more env vars to the config.sh file for Android builds
1 parent 2b2a093 commit 1674472

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

config.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ fi
260260

261261
# Android default settings and tools
262262
ANDROID_BUILD_TOOLS=${ANDROID_BUILD_TOOLS:-22.0.1}
263+
ANDROID_JAVA_SDK=${ANDROID_JAVA_SDK:-${JAVA_SDK:-/usr/lib/jvm/java-7-openjdk-amd64}}
263264
ANDROID_NDK_VERSION=${ANDROID_NDK_VERSION:-r10d}
264265
ANDROID_NDK=${ANDROID_NDK:-${HOME}/Workspace/android-ndk-${ANDROID_NDK_VERSION}}
265266
ANDROID_PLATFORM=${ANDROID_PLATFORM:-android-8}
@@ -287,6 +288,13 @@ case ${OS} in
287288
invoke_gyp $basic_args "-DOS=${OS}" "-Dtarget_arch=${TARGET_ARCH}" "$@"
288289
;;
289290
android)
291+
export ANDROID_BUILD_TOOLS
292+
export ANDROID_NDK
293+
export ANDROID_PLATFORM
294+
export ANDROID_SDK
295+
296+
export JAVA_SDK="${ANDROID_JAVA_SDK}"
297+
290298
export AR="${ANDROID_AR}"
291299
export CC="${ANDROID_CC}"
292300
export CXX="${ANDROID_CXX}"

0 commit comments

Comments
 (0)