OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 'includes': ['../build/android/v8_external_startup_data_arch_suffix.gypi'], | |
6 'variables': { | 5 'variables': { |
7 'chrome_android_pak_output_folder': '<@(PRODUCT_DIR)/assets/<(package_name)'
, | 6 'chrome_android_pak_output_folder': '<@(PRODUCT_DIR)/assets/<(package_name)'
, |
8 'chrome_android_pak_input_resources': [ | 7 'chrome_android_pak_input_resources': [ |
9 '<(PRODUCT_DIR)/resources.pak', | 8 '<(PRODUCT_DIR)/resources.pak', |
10 '<(PRODUCT_DIR)/chrome_100_percent.pak', | 9 '<(PRODUCT_DIR)/chrome_100_percent.pak', |
11 ], | 10 ], |
12 'chrome_android_pak_locale_resources': [ | 11 'chrome_android_pak_locale_resources': [ |
13 '<(PRODUCT_DIR)/locales/am.pak', | 12 '<(PRODUCT_DIR)/locales/am.pak', |
14 '<(PRODUCT_DIR)/locales/ar.pak', | 13 '<(PRODUCT_DIR)/locales/ar.pak', |
15 '<(PRODUCT_DIR)/locales/bg.pak', | 14 '<(PRODUCT_DIR)/locales/bg.pak', |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 'conditions': [ | 61 'conditions': [ |
63 ['icu_use_data_file_flag==1', { | 62 ['icu_use_data_file_flag==1', { |
64 'chrome_android_pak_input_resources': [ | 63 'chrome_android_pak_input_resources': [ |
65 '<(PRODUCT_DIR)/icudtl.dat', | 64 '<(PRODUCT_DIR)/icudtl.dat', |
66 ], | 65 ], |
67 'chrome_android_pak_output_resources': [ | 66 'chrome_android_pak_output_resources': [ |
68 '<(chrome_android_pak_output_folder)/icudtl.dat', | 67 '<(chrome_android_pak_output_folder)/icudtl.dat', |
69 ], | 68 ], |
70 }], | 69 }], |
71 ['v8_use_external_startup_data==1', { | 70 ['v8_use_external_startup_data==1', { |
| 71 'chrome_android_pak_input_resources': [ |
| 72 '<(PRODUCT_DIR)/natives_blob.bin', |
| 73 '<(PRODUCT_DIR)/snapshot_blob.bin', |
| 74 ], |
72 'chrome_android_pak_output_resources': [ | 75 'chrome_android_pak_output_resources': [ |
73 '<(chrome_android_pak_output_folder)/natives_blob_<(arch_suffix).bin', | 76 '<(chrome_android_pak_output_folder)/natives_blob.bin', |
74 '<(chrome_android_pak_output_folder)/snapshot_blob_<(arch_suffix).bin'
, | 77 '<(chrome_android_pak_output_folder)/snapshot_blob.bin', |
75 ], | 78 ], |
76 }], | 79 }], |
77 ], | 80 ], |
78 }, | 81 }, |
79 'targets': [ | 82 'targets': [ |
80 { | 83 { |
81 'target_name': 'chrome_android_paks_copy', | 84 'target_name': 'chrome_android_paks_copy', |
82 'type': 'none', | 85 'type': 'none', |
83 'dependencies': [ | 86 'dependencies': [ |
84 '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources', | 87 '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources', |
85 '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources', | 88 '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources', |
86 ], | 89 ], |
87 'variables': { | 90 'variables': { |
88 'dest_path': '<(chrome_android_pak_output_folder)', | 91 'dest_path': '<(chrome_android_pak_output_folder)', |
89 'src_files': [ | 92 'src_files': [ |
90 '<@(chrome_android_pak_input_resources)', | 93 '<@(chrome_android_pak_input_resources)', |
91 ], | 94 ], |
92 'clear': 1, | 95 'clear': 1, |
93 'conditions': [ | |
94 ['v8_use_external_startup_data==1', { | |
95 'renaming_sources': [ | |
96 '<(PRODUCT_DIR)/snapshot_blob.bin', | |
97 '<(PRODUCT_DIR)/natives_blob.bin', | |
98 ], | |
99 'renaming_destinations': [ | |
100 'snapshot_blob_<(arch_suffix).bin', | |
101 'natives_blob_<(arch_suffix).bin', | |
102 ], | |
103 }], | |
104 ], | |
105 }, | 96 }, |
106 'includes': ['../build/android/copy_ex.gypi'], | 97 'includes': ['../build/android/copy_ex.gypi'], |
107 }, | 98 }, |
108 ], | 99 ], |
109 } | 100 } |
110 | 101 |
OLD | NEW |