| 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. | 9 # Whether to compress the 4 main ChromeVox scripts. |
| 10 'chromevox_compress_js%': '1', | 10 'chromevox_compress_js%': '1', |
| 11 'chromevox1_background_script_loader_file': 'chromevox/background/loader
.js', | 11 'chromevox1_background_script_loader_file': 'chromevox/background/loader
.js', |
| 12 'chromevox1_content_script_loader_file': 'chromevox/injected/loader.js', | 12 'chromevox1_content_script_loader_file': 'chromevox/injected/loader.js', |
| 13 'chromevox1_kbexplorer_loader_file': 'chromevox/background/kbexplorer_lo
ader.js', | 13 'chromevox1_kbexplorer_loader_file': 'chromevox/background/kbexplorer_lo
ader.js', |
| 14 'chromevox1_options_script_loader_file': 'chromevox/background/options_l
oader.js', | 14 'chromevox1_options_script_loader_file': 'chromevox/background/options_l
oader.js', |
| 15 'chromevox2_background_script_loader_file': 'cvox2/background/loader.js'
, | 15 'chromevox2_background_script_loader_file': 'cvox2/background/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 'chromevox1_manifest', | 27 'chromevox_manifest', |
| 28 'chromevox1_guest_manifest', | 28 'chromevox_guest_manifest', |
| 29 'chromevox2_manifest', | |
| 30 'chromevox2_guest_manifest', | |
| 31 ], | 29 ], |
| 32 }, | 30 }, |
| 33 { | 31 { |
| 34 'target_name': 'chromevox_resources', | 32 'target_name': 'chromevox_resources', |
| 35 'type': 'none', | 33 'type': 'none', |
| 36 'dependencies': [ | 34 'dependencies': [ |
| 37 'chromevox_assets', | 35 'chromevox_assets', |
| 38 'chromevox_static_files', | 36 'chromevox_static_files', |
| 39 'chromevox_strings', | 37 'chromevox_strings', |
| 40 'chromevox_uncompiled_js_files', | 38 'chromevox_uncompiled_js_files', |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 }, | 147 }, |
| 150 'sources': [ | 148 'sources': [ |
| 151 '<(chromevox1_background_script_loader_file)', | 149 '<(chromevox1_background_script_loader_file)', |
| 152 '<(chromevox1_content_script_loader_file)', | 150 '<(chromevox1_content_script_loader_file)', |
| 153 '<(chromevox1_kbexplorer_loader_file)', | 151 '<(chromevox1_kbexplorer_loader_file)', |
| 154 '<(chromevox1_options_script_loader_file)', | 152 '<(chromevox1_options_script_loader_file)', |
| 155 '<(chromevox2_background_script_loader_file)', | 153 '<(chromevox2_background_script_loader_file)', |
| 156 ], | 154 ], |
| 157 'includes': ['generate_deps.gypi'], | 155 'includes': ['generate_deps.gypi'], |
| 158 }, | 156 }, |
| 157 # Used for webstore releases. |
| 159 { | 158 { |
| 160 'target_name': 'chromevox1_manifest', | 159 'target_name': 'chromevox_webstore_manifest', |
| 161 'type': 'none', | 160 'type': 'none', |
| 162 'variables': { | 161 'variables': { |
| 163 'output_manifest_path': '<(chromevox_dest_dir)/manifest.json', | 162 'output_manifest_path': '<(chromevox_dest_dir)/manifest.json', |
| 164 }, | 163 }, |
| 165 'includes': [ 'generate_manifest.gypi', ], | 164 'includes': [ 'generate_manifest.gypi', ], |
| 166 }, | 165 }, |
| 167 { | 166 { |
| 168 'target_name': 'chromevox1_guest_manifest', | 167 'target_name': 'chromevox_manifest', |
| 168 'type': 'none', |
| 169 'variables': { |
| 170 'output_manifest_path': '<(chromevox_dest_dir)/manifest.json', |
| 171 # TODO(dtseng): Flip this to 1 once ChromeVox Next is ready. |
| 172 'is_chromevox_next': 0, |
| 173 }, |
| 174 'includes': [ 'generate_manifest.gypi', ], |
| 175 }, |
| 176 { |
| 177 'target_name': 'chromevox_guest_manifest', |
| 169 'type': 'none', | 178 'type': 'none', |
| 170 'variables': { | 179 'variables': { |
| 171 'output_manifest_path': '<(chromevox_dest_dir)/manifest_guest.json', | 180 'output_manifest_path': '<(chromevox_dest_dir)/manifest_guest.json', |
| 172 'is_guest_manifest': 1, | 181 'is_guest_manifest': 1, |
| 182 # TODO(dtseng): Flip this to 1 once ChromeVox Next is ready. |
| 183 'is_chromevox_next': 0, |
| 173 }, | 184 }, |
| 174 'includes': [ 'generate_manifest.gypi', ], | 185 'includes': [ 'generate_manifest.gypi', ], |
| 175 }, | 186 }, |
| 176 { | |
| 177 'target_name': 'chromevox2_manifest', | |
| 178 'type': 'none', | |
| 179 'variables': { | |
| 180 'output_manifest_path': '<(chromevox_dest_dir)/manifest_next.json', | |
| 181 'is_chromevox_next': 1, | |
| 182 }, | |
| 183 'includes': [ 'generate_manifest.gypi', ], | |
| 184 }, | |
| 185 { | |
| 186 'target_name': 'chromevox2_guest_manifest', | |
| 187 'type': 'none', | |
| 188 'variables': { | |
| 189 'output_manifest_path': '<(chromevox_dest_dir)/manifest_next_guest.j
son', | |
| 190 'is_guest_manifest': 1, | |
| 191 'is_chromevox_next': 1, | |
| 192 }, | |
| 193 'includes': [ 'generate_manifest.gypi', ], | |
| 194 }, | |
| 195 ], | 187 ], |
| 196 'conditions': [ | 188 'conditions': [ |
| 197 ['chromevox_compress_js==1', { | 189 ['chromevox_compress_js==1', { |
| 198 'targets': [ | 190 'targets': [ |
| 199 { | 191 { |
| 200 'target_name': 'chromevox1_content_script', | 192 'target_name': 'chromevox1_content_script', |
| 201 'type': 'none', | 193 'type': 'none', |
| 202 'variables': { | 194 'variables': { |
| 203 'output_file': '<(chromevox_dest_dir)/chromeVoxChromePageScript.
js', | 195 'output_file': '<(chromevox_dest_dir)/chromeVoxChromePageScript.
js', |
| 204 }, | 196 }, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 '<(chromevox2_background_script_loader_file)', | 253 '<(chromevox2_background_script_loader_file)', |
| 262 ], | 254 ], |
| 263 'includes': [ 'copy_js.gypi', ], | 255 'includes': [ 'copy_js.gypi', ], |
| 264 }, | 256 }, |
| 265 ], | 257 ], |
| 266 }], | 258 }], |
| 267 ], | 259 ], |
| 268 }], | 260 }], |
| 269 ], | 261 ], |
| 270 } | 262 } |
| OLD | NEW |