OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 android_webview_manifest_file := $(call my-dir)/AndroidManifest.xml | 5 android_webview_manifest_file := $(call my-dir)/AndroidManifest.xml |
6 | 6 |
7 # Resources. | 7 # Resources. |
8 # The res_hack folder is necessary to defeat a build system "optimization" which | 8 # The res_hack folder is necessary to defeat a build system "optimization" which |
9 # ends up skipping running aapt if there are no resource files in any of the | 9 # ends up skipping running aapt if there are no resource files in any of the |
10 # resources dirs. Unfortunately, because all of our resources are generated at | 10 # resources dirs. Unfortunately, because all of our resources are generated at |
11 # build time and because this check is performed when processing the Makefile | 11 # build time and because this check is performed when processing the Makefile |
12 # it tests positive when building from clean resulting in a build failure. | 12 # it tests positive when building from clean resulting in a build failure. |
13 # We defeat the optimization by including an empty values.xml file in the list. | 13 # We defeat the optimization by including an empty values.xml file in the list. |
14 android_webview_resources_dirs := \ | 14 android_webview_resources_dirs := \ |
15 $(call my-dir)/res_hack \ | 15 $(call my-dir)/res_hack \ |
16 $(call intermediates-dir-for,GYP,shared)/android_webview_jarjar_content_reso
urces/jarjar_res \ | 16 $(call intermediates-dir-for,GYP,shared)/android_webview_jarjar_content_reso
urces/jarjar_res \ |
17 $(call intermediates-dir-for,GYP,shared)/android_webview_jarjar_ui_resources
/jarjar_res \ | 17 $(call intermediates-dir-for,GYP,shared)/android_webview_jarjar_ui_resources
/jarjar_res \ |
18 $(call intermediates-dir-for,GYP,ui_strings_grd)/ui_strings_grd/res_grit \ | 18 $(call intermediates-dir-for,GYP,ui_strings_grd)/ui_strings_grd/res_grit \ |
19 $(call intermediates-dir-for,GYP,content_strings_grd)/content_strings_grd/re
s_grit | 19 $(call intermediates-dir-for,GYP,content_strings_grd)/content_strings_grd/re
s_grit |
20 | 20 |
21 android_webview_aapt_flags := --auto-add-overlay | 21 android_webview_aapt_flags := --auto-add-overlay |
22 android_webview_aapt_flags += --custom-package com.android.webview.chromium | |
23 android_webview_aapt_flags += --extra-packages org.chromium.ui | 22 android_webview_aapt_flags += --extra-packages org.chromium.ui |
24 android_webview_aapt_flags += --extra-packages org.chromium.content | 23 android_webview_aapt_flags += --extra-packages org.chromium.content |
OLD | NEW |