Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: android_webview/apk/system_webview_apk_common.gypi

Issue 868673003: [WebView] Repack the .pak files for all the locales. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 # When making changes remember that this is shared with the internal .apk 5 # When making changes remember that this is shared with the internal .apk
6 # build rules. 6 # build rules.
7 { 7 {
8 'type': 'none', 8 'type': 'none',
9 'dependencies': [ 9 'dependencies': [
10 '<(DEPTH)/android_webview/android_webview.gyp:libwebviewchromium', 10 '<(DEPTH)/android_webview/android_webview.gyp:libwebviewchromium',
11 '<(DEPTH)/android_webview/android_webview.gyp:android_webview_java', 11 '<(DEPTH)/android_webview/android_webview.gyp:android_webview_java',
12 '<(DEPTH)/android_webview/android_webview.gyp:android_webview_pak', 12 '<(DEPTH)/android_webview/android_webview.gyp:android_webview_pak',
13 ], 13 ],
14 'variables': { 14 'variables': {
15 'native_lib_target': 'libwebviewchromium', 15 'native_lib_target': 'libwebviewchromium',
16 'never_lint': 1, 16 'never_lint': 1,
17 'R_package': 'com.android.webview.chromium', 17 'R_package': 'com.android.webview.chromium',
18 'R_package_relpath': 'com/android/webview/chromium', 18 'R_package_relpath': 'com/android/webview/chromium',
19 'extensions_to_not_compress': 'pak,bin,dat', 19 'extensions_to_not_compress': 'pak,bin,dat',
20 'asset_location': '<(INTERMEDIATE_DIR)/assets/', 20 'asset_location': '<(INTERMEDIATE_DIR)/assets/',
21 # TODO: crbug.com/442348 Update proguard.flags and re-enable. 21 # TODO: crbug.com/442348 Update proguard.flags and re-enable.
22 'proguard_enabled': 'false', 22 'proguard_enabled': 'false',
23 'proguard_flags_paths': ['<(DEPTH)/android_webview/apk/java/proguard.flags'] , 23 'proguard_flags_paths': ['<(DEPTH)/android_webview/apk/java/proguard.flags'] ,
24 'android_locales_input_paks_folder': '<(PRODUCT_DIR)/android_webview_assets/ ',
25 'android_locales_output_paks_folder': '<(asset_location)',
24 # TODO: crbug.com/405035 Find a better solution for WebView .pak files. 26 # TODO: crbug.com/405035 Find a better solution for WebView .pak files.
25 'additional_input_paths': [ 27 'additional_input_paths': [
28 '<@(android_locales_output_paks)',
26 '<(asset_location)/webviewchromium.pak', 29 '<(asset_location)/webviewchromium.pak',
27 '<(asset_location)/en-US.pak',
28 '<(asset_location)/webview_licenses.notice', 30 '<(asset_location)/webview_licenses.notice',
29 ], 31 ],
30 'conditions': [ 32 'conditions': [
31 ['icu_use_data_file_flag==1', { 33 ['icu_use_data_file_flag==1', {
32 'additional_input_paths': [ 34 'additional_input_paths': [
33 '<(asset_location)/icudtl.dat', 35 '<(asset_location)/icudtl.dat',
34 ], 36 ],
35 }], 37 }],
36 ['v8_use_external_startup_data==1', { 38 ['v8_use_external_startup_data==1', {
37 'additional_input_paths': [ 39 'additional_input_paths': [
38 '<(asset_location)/natives_blob.bin', 40 '<(asset_location)/natives_blob.bin',
39 '<(asset_location)/snapshot_blob.bin', 41 '<(asset_location)/snapshot_blob.bin',
40 ], 42 ],
41 }], 43 }],
42 ], 44 ],
43 }, 45 },
44 'copies': [ 46 'copies': [
45 { 47 {
46 'destination': '<(asset_location)', 48 'destination': '<(asset_location)',
47 'files': [ 49 'files': [
50 '<@(android_locales_input_paks)',
48 '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak', 51 '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak',
49 '<(PRODUCT_DIR)/android_webview_assets/en-US.pak',
50 ], 52 ],
51 'conditions': [ 53 'conditions': [
52 ['icu_use_data_file_flag==1', { 54 ['icu_use_data_file_flag==1', {
53 'files': [ 55 'files': [
54 '<(PRODUCT_DIR)/icudtl.dat', 56 '<(PRODUCT_DIR)/icudtl.dat',
55 ], 57 ],
56 }], 58 }],
57 ['v8_use_external_startup_data==1', { 59 ['v8_use_external_startup_data==1', {
58 'files': [ 60 'files': [
59 '<(PRODUCT_DIR)/natives_blob.bin', 61 '<(PRODUCT_DIR)/natives_blob.bin',
(...skipping 16 matching lines...) Expand all
76 ], 78 ],
77 'action': [ 79 'action': [
78 'python', 80 'python',
79 '<(DEPTH)/android_webview/tools/webview_licenses.py', 81 '<(DEPTH)/android_webview/tools/webview_licenses.py',
80 'notice', 82 'notice',
81 '<(asset_location)/webview_licenses.notice', 83 '<(asset_location)/webview_licenses.notice',
82 ], 84 ],
83 'message': 'Generating WebView license notice', 85 'message': 'Generating WebView license notice',
84 }, 86 },
85 ], 87 ],
86 'includes': [ '../../build/java_apk.gypi' ], 88 'includes': [
89 '../../build/java_apk.gypi',
90 '../../content/android_locales_paks.gypi',
91 ],
87 } 92 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698