summaryrefslogtreecommitdiffstats
path: root/android_webview/webview_pak.mk
diff options
context:
space:
mode:
authortorne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-22 12:41:01 +0000
committertorne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-22 12:41:01 +0000
commit3c394c1f21ea7fd3e90b6bad11e7ddabcceec8c7 (patch)
tree72581908f1d5a49cfe25aa0416e07981a51bdbec /android_webview/webview_pak.mk
parent73f201f5aead710fb2b02707fd850b7c2799ff66 (diff)
downloadchromium_src-3c394c1f21ea7fd3e90b6bad11e7ddabcceec8c7.zip
chromium_src-3c394c1f21ea7fd3e90b6bad11e7ddabcceec8c7.tar.gz
chromium_src-3c394c1f21ea7fd3e90b6bad11e7ddabcceec8c7.tar.bz2
Android WebView: add resource paks to the Android build.
We need to install the Chromium resource paks that webview depends on into the Android system image. This requires adding them as dependencies of the WebView All target, and defining custom Android build rules to copy them to the right place. BUG= Review URL: https://codereview.chromium.org/11235002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163266 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/webview_pak.mk')
-rw-r--r--android_webview/webview_pak.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/android_webview/webview_pak.mk b/android_webview/webview_pak.mk
new file mode 100644
index 0000000..2217a97
--- /dev/null
+++ b/android_webview/webview_pak.mk
@@ -0,0 +1,16 @@
+# 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 makefile fragment describes how to install a Chromium pak into the
+# Android framework for use by WebView.
+
+LOCAL_MODULE_CLASS := GYP
+LOCAL_MODULE_SUFFIX := .pak
+LOCAL_MODULE_PATH := $(TARGET_OUT_JAVA_LIBRARIES)/webview/paks
+
+include $(BUILD_SYSTEM)/base_rules.mk
+
+built_by_gyp := $(call intermediates-dir-for,GYP,shared)/$(LOCAL_INSTALLED_MODULE_STEM)
+
+$(eval $(call copy-one-file,$(built_by_gyp),$(LOCAL_BUILT_MODULE)))