summaryrefslogtreecommitdiffstats
path: root/chromium/Android.mk
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2013-08-15 21:46:11 +0200
committerZeno Albisser <zeno.albisser@digia.com>2013-08-15 21:46:11 +0200
commit679147eead574d186ebf3069647b4c23e8ccace6 (patch)
treefc247a0ac8ff119f7c8550879ebb6d3dd8d1ff69 /chromium/Android.mk
Initial import.
Diffstat (limited to 'chromium/Android.mk')
-rw-r--r--chromium/Android.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/chromium/Android.mk b/chromium/Android.mk
new file mode 100644
index 00000000000..4513ef50883
--- /dev/null
+++ b/chromium/Android.mk
@@ -0,0 +1,24 @@
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# This Android makefile is used to build WebView in the Android build system.
+# gyp autogenerates most of the real makefiles, which we just include here if
+# we are doing a WebView build. For other builds, this makefile does nothing,
+# which prevents the Android build system from mistakenly loading any other
+# Android.mk that may exist in the Chromium tree.
+
+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))
+
+# We default to release for the Android build system. Developers working on
+# WebView code can build with "make GYP_CONFIGURATION=Debug".
+GYP_CONFIGURATION := Release
+
+include $(CHROMIUM_DIR)/GypAndroid.$(HOST_OS)-$(TARGET_ARCH).mk
+include $(CHROMIUM_DIR)/android_webview/Android.mk
+
+endif