diff options
author | torne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-26 08:27:24 +0000 |
---|---|---|
committer | torne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-26 08:27:24 +0000 |
commit | 53cdffae31a572b1384e4da0f0dbafaa96564062 (patch) | |
tree | b151c1d55c4fb566a23f4b1ed17f281ef292b18e /Android.mk | |
parent | 6707540b769b91fb6c59cd43fc7b52b6c4989944 (diff) | |
download | chromium_src-53cdffae31a572b1384e4da0f0dbafaa96564062.zip chromium_src-53cdffae31a572b1384e4da0f0dbafaa96564062.tar.gz chromium_src-53cdffae31a572b1384e4da0f0dbafaa96564062.tar.bz2 |
Android: make the top level Android makefile smarter.
Instead of requiring an environment variable to be set, which has
resulted in issues with things not being rebuilt correctly when the
variable is forgotten, check to see if the gyp-generated Android
makefile has been created, and if so assume we are doing a WebView
build. This file only exists if gyp has been run with
GYP_GENERATORS=android which only happens in the WebView tree.
Also, rename CHROMIUM_WEBVIEW_DIR to CHROMIUM_DIR as the directory
itself is not webview-specific; it's just the Chromium tree root.
BUG=
Review URL: https://codereview.chromium.org/11269007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164291 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -8,8 +8,11 @@ # which prevents the Android build system from mistakenly loading any other # Android.mk that may exist in the Chromium tree. -ifdef CHROME_ANDROID_BUILD_WEBVIEW -CHROMIUM_WEBVIEW_DIR := $(call my-dir) -include $(CHROMIUM_WEBVIEW_DIR)/GypAndroid.mk -include $(CHROMIUM_WEBVIEW_DIR)/android_webview/Android.mk +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.mk)) +include $(CHROMIUM_DIR)/GypAndroid.mk +include $(CHROMIUM_DIR)/android_webview/Android.mk endif |