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 'chromevox_third_party_dir': '<(DEPTH)/chrome/third_party/chromevox', | 12 'chromevox_third_party_dir': '<(DEPTH)/chrome/third_party/chromevox', |
13 'closure_goog_dir': '<(chromevox_third_party_dir)/third_party/closure-li
brary/closure/goog', | 13 'closure_goog_dir': '<(chromevox_third_party_dir)/third_party/closure-li
brary/closure/goog', |
14 'chromevox_dest_dir': '<(PRODUCT_DIR)/resources/chromeos/chromevox', | 14 'chromevox_dest_dir': '<(PRODUCT_DIR)/resources/chromeos/chromevox', |
15 'js_root_flags': [ | 15 'js_root_flags': [ |
16 '-r', '.', | 16 '-r', '.', |
17 '-r', '<(closure_goog_dir)', | 17 '-r', '<(closure_goog_dir)', |
18 ], | 18 ], |
19 'path_rewrite_flags': [ | 19 'path_rewrite_flags': [ |
20 '-w', '<(closure_goog_dir):closure', | 20 '-w', '<(closure_goog_dir):closure', |
21 ], | 21 ], |
22 'background_script_loader_file': 'chromevox/background/loader.js', | 22 'background_script_loader_file': 'chromevox/background/loader.js', |
23 'content_script_loader_file': 'chromevox/injected/loader.js', | 23 'content_script_loader_file': 'chromevox/injected/loader.js', |
24 'options_script_loader_file': 'chromevox/background/options_loader.js', | 24 'options_script_loader_file': 'chromevox/background/options_loader.js', |
25 'kbexplorer_loader_file': 'chromevox/background/kbexplorer_loader.js', | 25 'kbexplorer_loader_file': 'chromevox/background/kbexplorer_loader.js', |
| 26 'template_manifest_path': 'manifest.json.jinja2', |
26 }, | 27 }, |
27 'targets': [ | 28 'targets': [ |
28 { | 29 { |
29 'target_name': 'chromevox_resources', | 30 'target_name': 'chromevox_resources', |
30 'type': 'none', | 31 'type': 'none', |
31 'dependencies': [ | 32 'dependencies': [ |
32 'chromevox_assets', | 33 'chromevox_assets', |
33 'chromevox_static_files', | 34 'chromevox_static_files', |
| 35 'chromevox_manifest', |
| 36 'chromevox_guest_manifest', |
34 'chromevox_strings', | 37 'chromevox_strings', |
35 'chromevox_uncompiled_js_files', | 38 'chromevox_uncompiled_js_files', |
36 '<(chromevox_third_party_dir)/chromevox.gyp:chromevox_third_party_re
sources', | 39 '<(chromevox_third_party_dir)/chromevox.gyp:chromevox_third_party_re
sources', |
37 ], | 40 ], |
38 'conditions': [ | 41 'conditions': [ |
39 ['disable_nacl==0 and disable_nacl_untrusted==0', { | 42 ['disable_nacl==0 and disable_nacl_untrusted==0', { |
40 'dependencies': [ | 43 'dependencies': [ |
41 '<(DEPTH)/third_party/liblouis/liblouis_nacl.gyp:liblouis_nacl_w
rapper_nacl', | 44 '<(DEPTH)/third_party/liblouis/liblouis_nacl.gyp:liblouis_nacl_w
rapper_nacl', |
42 ], | 45 ], |
43 }], | 46 }], |
(...skipping 13 matching lines...) Expand all Loading... |
57 ], | 60 ], |
58 }, | 61 }, |
59 { | 62 { |
60 'target_name': 'chromevox_assets', | 63 'target_name': 'chromevox_assets', |
61 'type': 'none', | 64 'type': 'none', |
62 'includes': [ | 65 'includes': [ |
63 'chromevox_assets.gypi', | 66 'chromevox_assets.gypi', |
64 ], | 67 ], |
65 }, | 68 }, |
66 { | 69 { |
| 70 'target_name': 'chromevox_manifest', |
| 71 'type': 'none', |
| 72 'variables': { |
| 73 'output_manifest_path': '<(chromevox_dest_dir)/manifest.json', |
| 74 }, |
| 75 'includes': [ 'generate_manifest.gypi', ], |
| 76 }, |
| 77 { |
| 78 'target_name': 'chromevox_guest_manifest', |
| 79 'type': 'none', |
| 80 'variables': { |
| 81 'output_manifest_path': '<(chromevox_dest_dir)/manifest_guest.json', |
| 82 'is_guest_manifest': 1, |
| 83 }, |
| 84 'includes': [ 'generate_manifest.gypi', ], |
| 85 }, |
| 86 { |
67 'target_name': 'chromevox_static_files', | 87 'target_name': 'chromevox_static_files', |
68 'type': 'none', | 88 'type': 'none', |
69 'copies': [ | 89 'copies': [ |
70 { | 90 { |
71 'destination': '<(chromevox_dest_dir)/chromevox/background', | 91 'destination': '<(chromevox_dest_dir)/chromevox/background', |
72 'files': [ | 92 'files': [ |
73 'chromevox/background/background.html', | 93 'chromevox/background/background.html', |
74 'chromevox/background/kbexplorer.html', | 94 'chromevox/background/kbexplorer.html', |
75 'chromevox/background/options.html', | 95 'chromevox/background/options.html', |
76 ], | 96 ], |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 '<(options_script_loader_file)', | 199 '<(options_script_loader_file)', |
180 ], | 200 ], |
181 'includes': [ 'copy_js.gypi', ], | 201 'includes': [ 'copy_js.gypi', ], |
182 }, | 202 }, |
183 ], | 203 ], |
184 }], | 204 }], |
185 ], | 205 ], |
186 }], | 206 }], |
187 ], | 207 ], |
188 } | 208 } |
OLD | NEW |