| 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 { | 5 { |
| 6 'conditions': [ | 6 'conditions': [ |
| 7 ['chromeos==1', { | 7 ['chromeos==1', { |
| 8 'variables': { | 8 'variables': { |
| 9 # Whether to compress the 4 main ChromeVox scripts. Applicable if | 9 # Whether to compress the 4 main ChromeVox scripts. Applicable if |
| 10 # use_migrated_chromevox is true. | 10 # use_migrated_chromevox is true. |
| 11 'chromevox_compress_js%': '1', | 11 'chromevox_compress_js%': '1', |
| 12 'background_script_loader_file': 'chromevox/background/loader.js', | 12 'background_script_loader_file': 'chromevox/background/loader.js', |
| 13 'content_script_loader_file': 'chromevox/injected/loader.js', | 13 'content_script_loader_file': 'chromevox/injected/loader.js', |
| 14 'options_script_loader_file': 'chromevox/background/options_loader.js', | 14 'options_script_loader_file': 'chromevox/background/options_loader.js', |
| 15 'kbexplorer_loader_file': 'chromevox/background/kbexplorer_loader.js', | 15 'kbexplorer_loader_file': 'chromevox/background/kbexplorer_loader.js', |
| 16 }, | 16 }, |
| 17 'includes': [ | 17 'includes': [ |
| 18 'chromevox_tests.gypi', | 18 'chromevox_tests.gypi', |
| 19 'common.gypi', | 19 'common.gypi', |
| 20 ], | 20 ], |
| 21 'targets': [ | 21 'targets': [ |
| 22 { | 22 { |
| 23 'target_name': 'chromevox', | 23 'target_name': 'chromevox', |
| 24 'type': 'none', | 24 'type': 'none', |
| 25 'dependencies': [ | 25 'dependencies': [ |
| 26 'chromevox_resources', | 26 'chromevox_resources', |
| 27 'chromevox_manifest', | 27 'chromevox_manifest', |
| 28 'chromevox_guest_manifest', | 28 'chromevox_guest_manifest', |
| 29 'chromevox2', |
| 29 ], | 30 ], |
| 30 }, | 31 }, |
| 31 { | 32 { |
| 32 'target_name': 'chromevox_resources', | 33 'target_name': 'chromevox_resources', |
| 33 'type': 'none', | 34 'type': 'none', |
| 34 'dependencies': [ | 35 'dependencies': [ |
| 35 'chromevox_assets', | 36 'chromevox_assets', |
| 36 'chromevox_static_files', | 37 'chromevox_static_files', |
| 37 'chromevox_strings', | 38 'chromevox_strings', |
| 38 'chromevox_uncompiled_js_files', | 39 'chromevox_uncompiled_js_files', |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 'variables': { | 134 'variables': { |
| 134 'grit_grd_file': 'strings/chromevox_strings.grd', | 135 'grit_grd_file': 'strings/chromevox_strings.grd', |
| 135 'grit_out_dir': '<(chromevox_dest_dir)', | 136 'grit_out_dir': '<(chromevox_dest_dir)', |
| 136 # We don't generate any RC files, so no resource_ds file is need
ed. | 137 # We don't generate any RC files, so no resource_ds file is need
ed. |
| 137 'grit_resource_ids': '', | 138 'grit_resource_ids': '', |
| 138 }, | 139 }, |
| 139 'includes': [ '../../../../../build/grit_action.gypi' ], | 140 'includes': [ '../../../../../build/grit_action.gypi' ], |
| 140 }, | 141 }, |
| 141 ], | 142 ], |
| 142 }, | 143 }, |
| 144 { |
| 145 'target_name': 'chromevox2', |
| 146 'type': 'none', |
| 147 'dependencies': [ |
| 148 'chromevox2_copied_scripts', |
| 149 'chromevox2_deps', |
| 150 'chromevox2_manifest', |
| 151 'chromevox2_guest_manifest', |
| 152 'chromevox2_resources', |
| 153 ], |
| 154 }, |
| 155 { |
| 156 'target_name': 'chromevox2_copied_scripts', |
| 157 'type': 'none', |
| 158 'variables': { |
| 159 'dest_dir': '<(chromevox_dest_dir)', |
| 160 }, |
| 161 'sources': [ |
| 162 'cvox2/background/loader.js', |
| 163 ], |
| 164 'includes': [ 'copy_js.gypi', ], |
| 165 }, |
| 166 { |
| 167 'target_name': 'chromevox2_deps', |
| 168 'type': 'none', |
| 169 'variables': { |
| 170 'deps_js_output_file': '<(chromevox_dest_dir)/deps.js', |
| 171 }, |
| 172 'sources': [ |
| 173 'cvox2/background/loader.js', |
| 174 ], |
| 175 'includes': ['generate_deps.gypi'], |
| 176 }, |
| 177 { |
| 178 'target_name': 'chromevox2_resources', |
| 179 'type': 'none', |
| 180 'copies': [ |
| 181 { |
| 182 'destination': '<(PRODUCT_DIR)/resources/chromeos/chromevox/cvox2/
background', |
| 183 'files': [ |
| 184 'cvox2/background/background.html', |
| 185 ], |
| 186 }, |
| 187 ], |
| 188 }, |
| 189 { |
| 190 'target_name': 'chromevox2_manifest', |
| 191 'type': 'none', |
| 192 'variables': { |
| 193 'output_manifest_path': '<(chromevox_dest_dir)/manifest_next.json', |
| 194 'use_chromevox_next': 1, |
| 195 }, |
| 196 'includes': [ 'generate_manifest.gypi', ], |
| 197 }, |
| 198 { |
| 199 'target_name': 'chromevox2_guest_manifest', |
| 200 'type': 'none', |
| 201 'variables': { |
| 202 'output_manifest_path': '<(chromevox_dest_dir)/manifest_next_guest.j
son', |
| 203 'is_guest_manifest': 1, |
| 204 'use_chromevox_next': 1, |
| 205 }, |
| 206 'includes': [ 'generate_manifest.gypi', ], |
| 207 }, |
| 143 ], | 208 ], |
| 144 'conditions': [ | 209 'conditions': [ |
| 145 ['use_migrated_chromevox==1 and chromevox_compress_js==1', { | 210 ['use_migrated_chromevox==1 and chromevox_compress_js==1', { |
| 146 'targets': [ | 211 'targets': [ |
| 147 { | 212 { |
| 148 'target_name': 'chromevox_content_script', | 213 'target_name': 'chromevox_content_script', |
| 149 'type': 'none', | 214 'type': 'none', |
| 150 'variables': { | 215 'variables': { |
| 151 'output_file': '<(chromevox_dest_dir)/chromeVoxChromePageScript.
js', | 216 'output_file': '<(chromevox_dest_dir)/chromeVoxChromePageScript.
js', |
| 152 }, | 217 }, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 '<(options_script_loader_file)', | 263 '<(options_script_loader_file)', |
| 199 ], | 264 ], |
| 200 'includes': [ 'copy_js.gypi', ], | 265 'includes': [ 'copy_js.gypi', ], |
| 201 }, | 266 }, |
| 202 ], | 267 ], |
| 203 }], | 268 }], |
| 204 ], | 269 ], |
| 205 }], | 270 }], |
| 206 ], | 271 ], |
| 207 } | 272 } |
| OLD | NEW |