| Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1 | # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | # This Android makefile is used to build WebView in the Android build system. |
| 6 | # gyp autogenerates most of the real makefiles, which we just include here if |
| 7 | # we are doing a WebView build. For other builds, this makefile does nothing, |
| 8 | # which prevents the Android build system from mistakenly loading any other |
| 9 | # Android.mk that may exist in the Chromium tree. |
| 10 | |
| 11 | CHROMIUM_DIR := $(call my-dir) |
| 12 | |
| 13 | # Assume that if the gyp autogenerated makefile exists, we are doing the |
| 14 | # WebView build using the Android build system. |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 15 | ifneq (,$(wildcard $(CHROMIUM_DIR)/GypAndroid.$(HOST_OS)-$(TARGET_ARCH).mk)) |
| Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 16 | |
| Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame^] | 17 | # Don't include anything if the product is using a prebuilt webviewchromium. |
| 18 | ifneq ($(PRODUCT_PREBUILT_WEBVIEWCHROMIUM),yes) |
| 19 | |
| Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 20 | # We default to release for the Android build system. Developers working on |
| 21 | # WebView code can build with "make GYP_CONFIGURATION=Debug". |
| Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 22 | GYP_CONFIGURATION := Release |
| Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 23 | |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 24 | include $(CHROMIUM_DIR)/GypAndroid.$(HOST_OS)-$(TARGET_ARCH).mk |
| Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 25 | include $(CHROMIUM_DIR)/android_webview/Android.mk |
| Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 26 | |
| Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 27 | endif |
| Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame^] | 28 | endif |