[android_webview] Fix android_webview_resources dependency.
[chromium-blink-merge.git] / android_webview / webview_pak.mk
blob50f5dcfc5cd95647c5dbb7ae6c2deb5042fc342d
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.
5 # This makefile fragment describes how to install a Chromium pak into the
6 # Android framework for use by WebView.
8 my_local_module := $(LOCAL_MODULE)
9 my_local_module_stem := $(LOCAL_MODULE_STEM)
10 my_local_built_module_stem := $(LOCAL_BUILT_MODULE_STEM)
12 # This module is used to copy the .pak files to /system/webview/paks in the
13 # system image.
14 LOCAL_MODULE_CLASS := GYP
15 LOCAL_MODULE_SUFFIX := .pak
16 LOCAL_MODULE_PATH := $(TARGET_OUT_JAVA_LIBRARIES)/webview/paks
18 include $(BUILD_SYSTEM)/base_rules.mk
20 built_by_gyp := $(call intermediates-dir-for,GYP,shared)/$(LOCAL_BUILT_MODULE_STEM)
22 $(eval $(call copy-one-file,$(built_by_gyp),$(LOCAL_BUILT_MODULE)))
24 include $(CLEAR_VARS)
26 # This module is used to copy the .pak files to an intermediates folder so that
27 # they can be picked up by AAPT and included in an .apk.
28 LOCAL_MODULE := res-$(my_local_module)
29 LOCAL_MODULE_STEM := $(my_local_module_stem)
30 LOCAL_BUILT_MODULE_STEM := $(my_local_built_module_stem)
31 LOCAL_MODULE_CLASS := GYP
32 LOCAL_MODULE_SUFFIX := .pak
33 LOCAL_MODULE_PATH := $(call intermediates-dir-for,APPS,webviewchromium-paks)
35 include $(BUILD_SYSTEM)/base_rules.mk
37 built_by_gyp := $(call intermediates-dir-for,GYP,shared)/$(LOCAL_BUILT_MODULE_STEM)
39 $(eval $(call copy-one-file,$(built_by_gyp),$(LOCAL_BUILT_MODULE)))