summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authortorne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-25 18:23:35 +0000
committertorne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-25 18:23:35 +0000
commit1b86441422d7d6d99135154f4883469c14d5f28a (patch)
tree3a8016999cb7afbaffa13047bd0b41fd3995dbe7 /Android.mk
parente170399541ad2a68382289e29dab1fdad6247cb8 (diff)
downloadchromium_src-1b86441422d7d6d99135154f4883469c14d5f28a.zip
chromium_src-1b86441422d7d6d99135154f4883469c14d5f28a.tar.gz
chromium_src-1b86441422d7d6d99135154f4883469c14d5f28a.tar.bz2
Android WebView: build debug/release based on variant.
When building for user or userdebug, build Chromium in Release mode. When building for eng, build Chromium in Debug mode. BUG= NOTRY=true Review URL: https://chromiumcodereview.appspot.com/17709002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208527 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index bf2e999..7713389 100644
--- a/Android.mk
+++ b/Android.mk
@@ -13,6 +13,14 @@ CHROMIUM_DIR := $(call my-dir)
# Assume that if the gyp autogenerated makefile exists, we are doing the
# WebView build using the Android build system.
ifneq (,$(wildcard $(CHROMIUM_DIR)/GypAndroid.$(HOST_OS)-$(TARGET_ARCH).mk))
+
+ifeq ($(TARGET_BUILD_VARIANT),eng)
+GYP_CONFIGURATION := Debug
+else
+GYP_CONFIGURATION := Release
+endif
+
include $(CHROMIUM_DIR)/GypAndroid.$(HOST_OS)-$(TARGET_ARCH).mk
include $(CHROMIUM_DIR)/android_webview/Android.mk
+
endif