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 # 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 'snapshot_copy_files': '<(snapshot_copy_files)', | |
22 # TODO: crbug.com/442348 Update proguard.flags and re-enable. | 21 # TODO: crbug.com/442348 Update proguard.flags and re-enable. |
23 'proguard_enabled': 'false', | 22 'proguard_enabled': 'false', |
24 'proguard_flags_paths': ['<(DEPTH)/android_webview/apk/java/proguard.flags']
, | 23 'proguard_flags_paths': ['<(DEPTH)/android_webview/apk/java/proguard.flags']
, |
25 # TODO: crbug.com/405035 Find a better solution for WebView .pak files. | 24 # TODO: crbug.com/405035 Find a better solution for WebView .pak files. |
26 'additional_input_paths': [ | 25 'additional_input_paths': [ |
27 '<@(webview_locales_output_paks)', | 26 '<@(webview_locales_output_paks)', |
28 '<(asset_location)/webviewchromium.pak', | 27 '<(asset_location)/webviewchromium.pak', |
29 '<(asset_location)/webview_licenses.notice', | 28 '<(asset_location)/webview_licenses.notice', |
30 '<@(snapshot_additional_input_paths)', | |
31 ], | |
32 'includes': [ | |
33 '../snapshot_copying.gypi', | |
34 ], | 29 ], |
35 'conditions': [ | 30 'conditions': [ |
36 ['icu_use_data_file_flag==1', { | 31 ['icu_use_data_file_flag==1', { |
37 'additional_input_paths': [ | 32 'additional_input_paths': [ |
38 '<(asset_location)/icudtl.dat', | 33 '<(asset_location)/icudtl.dat', |
39 ], | 34 ], |
40 }], | 35 }], |
| 36 ['v8_use_external_startup_data==1', { |
| 37 'additional_input_paths': [ |
| 38 '<(asset_location)/natives_blob.bin', |
| 39 '<(asset_location)/snapshot_blob.bin', |
| 40 ], |
| 41 }], |
41 ], | 42 ], |
42 }, | 43 }, |
43 'copies': [ | 44 'copies': [ |
44 { | 45 { |
45 'destination': '<(asset_location)', | 46 'destination': '<(asset_location)', |
46 'files': [ | 47 'files': [ |
47 '<@(webview_locales_input_paks)', | 48 '<@(webview_locales_input_paks)', |
48 '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak', | 49 '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak', |
49 '<@(snapshot_copy_files)', | |
50 ], | 50 ], |
51 'conditions': [ | 51 'conditions': [ |
52 ['icu_use_data_file_flag==1', { | 52 ['icu_use_data_file_flag==1', { |
53 'files': [ | 53 'files': [ |
54 '<(PRODUCT_DIR)/icudtl.dat', | 54 '<(PRODUCT_DIR)/icudtl.dat', |
55 ], | 55 ], |
56 }], | 56 }], |
| 57 ['v8_use_external_startup_data==1', { |
| 58 'files': [ |
| 59 '<(PRODUCT_DIR)/natives_blob.bin', |
| 60 '<(PRODUCT_DIR)/snapshot_blob.bin', |
| 61 ], |
| 62 }], |
57 ], | 63 ], |
58 }, | 64 }, |
59 ], | 65 ], |
60 'actions': [ | 66 'actions': [ |
61 { | 67 { |
62 'action_name': 'generate_webview_license_notice', | 68 'action_name': 'generate_webview_license_notice', |
63 'inputs': [ | 69 'inputs': [ |
64 '<!@(python <(DEPTH)/android_webview/tools/webview_licenses.py notice_de
ps)', | 70 '<!@(python <(DEPTH)/android_webview/tools/webview_licenses.py notice_de
ps)', |
65 '<(DEPTH)/android_webview/tools/licenses_notice.tmpl', | 71 '<(DEPTH)/android_webview/tools/licenses_notice.tmpl', |
66 '<(DEPTH)/android_webview/tools/webview_licenses.py', | 72 '<(DEPTH)/android_webview/tools/webview_licenses.py', |
67 ], | 73 ], |
68 'outputs': [ | 74 'outputs': [ |
69 '<(asset_location)/webview_licenses.notice', | 75 '<(asset_location)/webview_licenses.notice', |
70 ], | 76 ], |
71 'action': [ | 77 'action': [ |
72 'python', | 78 'python', |
73 '<(DEPTH)/android_webview/tools/webview_licenses.py', | 79 '<(DEPTH)/android_webview/tools/webview_licenses.py', |
74 'notice', | 80 'notice', |
75 '<(asset_location)/webview_licenses.notice', | 81 '<(asset_location)/webview_licenses.notice', |
76 ], | 82 ], |
77 'message': 'Generating WebView license notice', | 83 'message': 'Generating WebView license notice', |
78 }, | 84 }, |
79 ], | 85 ], |
80 'includes': [ | 86 'includes': [ |
81 'system_webview_locales_paks.gypi', | 87 'system_webview_locales_paks.gypi', |
82 '../../build/java_apk.gypi', | 88 '../../build/java_apk.gypi', |
83 ], | 89 ], |
84 } | 90 } |
OLD | NEW |