| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'conditions': [ | |
| 7 ['chromeos==1', { | |
| 8 'variables': { | |
| 9 # Whether to compress the 4 main ChromeVox scripts. | |
| 10 'chromevox_compress_js%': '1', | |
| 11 }, | |
| 12 'includes': [ | |
| 13 'chromevox_assets.gypi', | |
| 14 'chromevox_tests.gypi', | |
| 15 'chromevox_vars.gypi', | |
| 16 'common.gypi', | |
| 17 ], | |
| 18 'targets': [ | |
| 19 { | |
| 20 'target_name': 'chromevox', | |
| 21 'type': 'none', | |
| 22 'dependencies': [ | |
| 23 'chromevox_resources', | |
| 24 'chromevox_manifest', | |
| 25 'chromevox_guest_manifest', | |
| 26 ], | |
| 27 }, | |
| 28 { | |
| 29 'target_name': 'chromevox_resources', | |
| 30 'type': 'none', | |
| 31 'dependencies': [ | |
| 32 'chromevox_assets', | |
| 33 'chromevox_static_files', | |
| 34 'chromevox_strings', | |
| 35 'chromevox_uncompiled_js_files', | |
| 36 '<(chromevox_third_party_dir)/chromevox.gyp:chromevox_third_party_re
sources', | |
| 37 '../braille_ime/braille_ime.gyp:braille_ime_manifest', | |
| 38 ], | |
| 39 'conditions': [ | |
| 40 ['disable_nacl==0 and disable_nacl_untrusted==0', { | |
| 41 'dependencies': [ | |
| 42 '<(DEPTH)/third_party/liblouis/liblouis_nacl.gyp:liblouis_nacl_w
rapper_nacl', | |
| 43 ], | |
| 44 }], | |
| 45 ['chromevox_compress_js==1', { | |
| 46 'dependencies': [ | |
| 47 'chromevox_background_script', | |
| 48 'chromevox_content_script', | |
| 49 'chromevox_kbexplorer_script', | |
| 50 'chromevox_min_content_script', | |
| 51 'chromevox_options_script', | |
| 52 'chromevox_panel_script', | |
| 53 ], | |
| 54 }, { # chromevox_compress_js==0 | |
| 55 'dependencies': [ | |
| 56 'chromevox_copied_scripts', | |
| 57 'chromevox_deps', | |
| 58 ], | |
| 59 }], | |
| 60 ], | |
| 61 }, | |
| 62 { | |
| 63 'target_name': 'chromevox_static_files', | |
| 64 'type': 'none', | |
| 65 'copies': [ | |
| 66 { | |
| 67 'destination': '<(chromevox_dest_dir)/chromevox/background', | |
| 68 'files': [ | |
| 69 'chromevox/background/kbexplorer.html', | |
| 70 'chromevox/background/options.html', | |
| 71 ], | |
| 72 }, | |
| 73 { | |
| 74 'destination': '<(chromevox_dest_dir)/cvox2/background', | |
| 75 'files': [ | |
| 76 'cvox2/background/background.html', | |
| 77 'cvox2/background/panel.css', | |
| 78 'cvox2/background/panel.html', | |
| 79 ], | |
| 80 }, | |
| 81 ], | |
| 82 }, | |
| 83 { | |
| 84 # JavaScript files that are always directly included into the | |
| 85 # destination directory. | |
| 86 'target_name': 'chromevox_uncompiled_js_files', | |
| 87 'type': 'none', | |
| 88 'copies': [ | |
| 89 { | |
| 90 'destination': '<(chromevox_dest_dir)/chromevox/injected', | |
| 91 'files': [ | |
| 92 'chromevox/injected/api.js', | |
| 93 ], | |
| 94 'conditions': [ | |
| 95 [ 'chromevox_compress_js==1', { | |
| 96 'files': [ | |
| 97 # api_util.js is copied by the chromevox_copied_scripts | |
| 98 # target in the non-compressed case. | |
| 99 'chromevox/injected/api_util.js', | |
| 100 ], | |
| 101 }], | |
| 102 ], | |
| 103 }, | |
| 104 ], | |
| 105 'conditions': [ | |
| 106 [ 'chromevox_compress_js==0', { | |
| 107 'copies': [ | |
| 108 { | |
| 109 'destination': '<(chromevox_dest_dir)/closure', | |
| 110 'files': [ | |
| 111 'closure/closure_preinit.js', | |
| 112 ], | |
| 113 }, | |
| 114 ], | |
| 115 }], | |
| 116 ], | |
| 117 }, | |
| 118 { | |
| 119 'target_name': 'chromevox_strings', | |
| 120 'type': 'none', | |
| 121 'actions': [ | |
| 122 { | |
| 123 'action_name': 'chromevox_strings', | |
| 124 'variables': { | |
| 125 'grit_grd_file': 'strings/chromevox_strings.grd', | |
| 126 'grit_out_dir': '<(chromevox_dest_dir)', | |
| 127 # We don't generate any RC files, so no resource_ds file is need
ed. | |
| 128 'grit_resource_ids': '', | |
| 129 }, | |
| 130 'includes': [ '../../../../../build/grit_action.gypi' ], | |
| 131 }, | |
| 132 ], | |
| 133 }, | |
| 134 { | |
| 135 'target_name': 'chromevox_deps', | |
| 136 'type': 'none', | |
| 137 'variables': { | |
| 138 'deps_js_output_file': '<(chromevox_dest_dir)/deps.js', | |
| 139 }, | |
| 140 'sources': [ | |
| 141 '<(chromevox_content_script_loader_file)', | |
| 142 '<(chromevox_kbexplorer_loader_file)', | |
| 143 '<(chromevox_options_script_loader_file)', | |
| 144 '<(chromevox_background_script_loader_file)', | |
| 145 '<(chromevox_panel_script_loader_file)', | |
| 146 ], | |
| 147 'includes': ['generate_deps.gypi'], | |
| 148 }, | |
| 149 { | |
| 150 'target_name': 'chromevox_manifest', | |
| 151 'type': 'none', | |
| 152 'variables': { | |
| 153 'output_manifest_path': '<(chromevox_dest_dir)/manifest.json', | |
| 154 }, | |
| 155 'includes': [ 'generate_manifest.gypi', ], | |
| 156 }, | |
| 157 { | |
| 158 'target_name': 'chromevox_guest_manifest', | |
| 159 'type': 'none', | |
| 160 'variables': { | |
| 161 'output_manifest_path': '<(chromevox_dest_dir)/manifest_guest.json', | |
| 162 'is_guest_manifest': 1, | |
| 163 }, | |
| 164 'includes': [ 'generate_manifest.gypi', ], | |
| 165 }, | |
| 166 ], | |
| 167 'conditions': [ | |
| 168 ['chromevox_compress_js==1', { | |
| 169 'targets': [ | |
| 170 { | |
| 171 'target_name': 'chromevox_content_script', | |
| 172 'type': 'none', | |
| 173 'variables': { | |
| 174 'output_file': '<(chromevox_dest_dir)/chromeVoxChromePageScript.
js', | |
| 175 }, | |
| 176 'sources': [ '<(chromevox_content_script_loader_file)' ], | |
| 177 'includes': [ 'compress_js.gypi', ], | |
| 178 }, | |
| 179 { | |
| 180 'target_name': 'chromevox_options_script', | |
| 181 'type': 'none', | |
| 182 'variables': { | |
| 183 'output_file': '<(chromevox_dest_dir)/chromeVoxChromeOptionsScri
pt.js', | |
| 184 }, | |
| 185 'sources': [ '<(chromevox_options_script_loader_file)' ], | |
| 186 'includes': [ 'compress_js.gypi', ], | |
| 187 }, | |
| 188 { | |
| 189 'target_name': 'chromevox_kbexplorer_script', | |
| 190 'type': 'none', | |
| 191 'variables': { | |
| 192 'output_file': '<(chromevox_dest_dir)/chromeVoxKbExplorerScript.
js', | |
| 193 }, | |
| 194 'sources': [ '<(chromevox_kbexplorer_loader_file)' ], | |
| 195 'includes': [ 'compress_js.gypi', ], | |
| 196 }, | |
| 197 { | |
| 198 'target_name': 'chromevox_background_script', | |
| 199 'type': 'none', | |
| 200 'variables': { | |
| 201 'output_file': '<(chromevox_dest_dir)/chromeVox2ChromeBackground
Script.js', | |
| 202 }, | |
| 203 'sources': [ | |
| 204 '<(chromevox_background_script_loader_file)', | |
| 205 ], | |
| 206 'includes': [ 'compress_js.gypi', ], | |
| 207 }, | |
| 208 { | |
| 209 'target_name': 'chromevox_panel_script', | |
| 210 'type': 'none', | |
| 211 'variables': { | |
| 212 'output_file': '<(chromevox_dest_dir)/chromeVoxPanelScript.js', | |
| 213 }, | |
| 214 'sources': [ '<(chromevox_panel_script_loader_file)' ], | |
| 215 'includes': [ 'compress_js.gypi', ], | |
| 216 }, | |
| 217 { | |
| 218 'target_name': 'chromevox_min_content_script', | |
| 219 'type': 'none', | |
| 220 'variables': { | |
| 221 'output_file': '<(chromevox_dest_dir)/chromeVox2ChromePageScript
.js', | |
| 222 }, | |
| 223 'sources': [ '<(chromevox_min_content_script_loader_file)' ], | |
| 224 'includes': [ 'compress_js.gypi', ], | |
| 225 }, | |
| 226 ], | |
| 227 }, { # chromevox_compress_js==0 | |
| 228 'targets': [ | |
| 229 { | |
| 230 'target_name': 'chromevox_copied_scripts', | |
| 231 'type': 'none', | |
| 232 'variables': { | |
| 233 'dest_dir': '<(chromevox_dest_dir)', | |
| 234 }, | |
| 235 'sources': [ | |
| 236 '<(chromevox_content_script_loader_file)', | |
| 237 '<(chromevox_kbexplorer_loader_file)', | |
| 238 '<(chromevox_options_script_loader_file)', | |
| 239 '<(chromevox_background_script_loader_file)', | |
| 240 '<(chromevox_panel_script_loader_file)', | |
| 241 ], | |
| 242 'includes': [ 'copy_js.gypi', ], | |
| 243 }, | |
| 244 ], | |
| 245 }], | |
| 246 ], | |
| 247 }], | |
| 248 ], | |
| 249 } | |
| OLD | NEW |