• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 makefile fragment describes how to install a Chromium pak into the
6# Android framework for use by WebView.
7
8my_local_module := $(LOCAL_MODULE)
9my_local_module_stem := $(LOCAL_MODULE_STEM)
10my_local_built_module_stem := $(LOCAL_BUILT_MODULE_STEM)
11
12# This module is used to copy the .pak files to /system/webview/paks in the
13# system image.
14LOCAL_MODULE_CLASS := GYP
15LOCAL_MODULE_SUFFIX := .pak
16LOCAL_MODULE_PATH := $(TARGET_OUT_JAVA_LIBRARIES)/webview/paks
17
18include $(BUILD_SYSTEM)/base_rules.mk
19
20built_by_gyp := $(call intermediates-dir-for,GYP,shared)/$(LOCAL_BUILT_MODULE_STEM)
21
22$(eval $(call copy-one-file,$(built_by_gyp),$(LOCAL_BUILT_MODULE)))
23
24include $(CLEAR_VARS)
25
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.
28LOCAL_MODULE := res-$(my_local_module)
29LOCAL_MODULE_STEM := $(my_local_module_stem)
30LOCAL_BUILT_MODULE_STEM := $(my_local_built_module_stem)
31LOCAL_MODULE_CLASS := GYP
32LOCAL_MODULE_SUFFIX := .pak
33LOCAL_MODULE_PATH := $(call intermediates-dir-for,APPS,webviewchromium-paks)
34
35include $(BUILD_SYSTEM)/base_rules.mk
36
37built_by_gyp := $(call intermediates-dir-for,GYP,shared)/$(LOCAL_BUILT_MODULE_STEM)
38
39$(eval $(call copy-one-file,$(built_by_gyp),$(LOCAL_BUILT_MODULE)))
40