Index: platform_tools/android/bin/android_setup.sh |
diff --git a/platform_tools/android/bin/android_setup.sh b/platform_tools/android/bin/android_setup.sh |
index 1a5ccf9908c2170b43a560f22d71d221f9752759..b11fcaccb48f7ea8c9210aca554242656eba9223 100755 |
--- a/platform_tools/android/bin/android_setup.sh |
+++ b/platform_tools/android/bin/android_setup.sh |
@@ -161,7 +161,9 @@ setup_device() { |
DEFINES="${DEFINES} host_os=$(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')" |
DEFINES="${DEFINES} skia_os=android" |
DEFINES="${DEFINES} android_base=${SCRIPT_DIR}/.." |
- DEFINES="${DEFINES} skia_shared_lib=1" |
+ if [[ "$GYP_DEFINES" != *skia_shared_lib=* ]]; then |
+ DEFINES="${DEFINES} skia_shared_lib=1" |
+ fi |
# Setup the build variation depending on the target device |
TARGET_DEVICE="$1" |