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.
9 # Whether to compress the 4 main ChromeVox scripts. Applicable if
10 # use_migrated_chromevox is true.
11 'chromevox_compress_js%': '1',
12 'background_script_loader_file': 'chromevox/background/loader.js',
13 'content_script_loader_file': 'chromevox/injected/loader.js',
14 'options_script_loader_file': 'chromevox/background/options_loader.js',
15 'kbexplorer_loader_file': 'chromevox/background/kbexplorer_loader.js',
18 'chromevox_tests.gypi',
23 'target_name': 'chromevox',
26 'chromevox_resources',
28 'chromevox_guest_manifest',
33 'target_name': 'chromevox_resources',
37 'chromevox_static_files',
39 'chromevox_uncompiled_js_files',
40 '<(chromevox_third_party_dir)/chromevox.gyp:chromevox_third_party_resources',
41 '../braille_ime/braille_ime.gyp:braille_ime_manifest',
44 ['disable_nacl==0 and disable_nacl_untrusted==0', {
46 '<(DEPTH)/third_party/liblouis/liblouis_nacl.gyp:liblouis_nacl_wrapper_nacl',
49 ['use_migrated_chromevox==1 and chromevox_compress_js==1', {
51 'chromevox_content_script',
52 'chromevox_background_script',
53 'chromevox_options_script',
54 'chromevox_kbexplorer_script',
57 ['use_migrated_chromevox==1 and chromevox_compress_js==0', {
59 'chromevox_copied_scripts',
65 'target_name': 'chromevox_assets',
68 'chromevox_assets.gypi',
72 'target_name': 'chromevox_manifest',
75 'output_manifest_path': '<(chromevox_dest_dir)/manifest.json',
77 'includes': [ 'generate_manifest.gypi', ],
80 'target_name': 'chromevox_guest_manifest',
83 'output_manifest_path': '<(chromevox_dest_dir)/manifest_guest.json',
84 'is_guest_manifest': 1,
86 'includes': [ 'generate_manifest.gypi', ],
89 'target_name': 'chromevox_static_files',
93 'destination': '<(chromevox_dest_dir)/chromevox/background',
95 'chromevox/background/background.html',
96 'chromevox/background/kbexplorer.html',
97 'chromevox/background/options.html',
103 # JavaScript files that are always directly included into the
104 # destination directory.
105 'target_name': 'chromevox_uncompiled_js_files',
109 'destination': '<(chromevox_dest_dir)/closure',
111 'closure/closure_preinit.js',
114 ['use_migrated_chromevox==0 or chromevox_compress_js==1', {
115 'files': [ '<(closure_goog_dir)/base.js' ],
120 'destination': '<(chromevox_dest_dir)/chromevox/injected',
122 'chromevox/injected/api.js',
123 'chromevox/injected/api_util.js',
129 'target_name': 'chromevox_strings',
133 'action_name': 'chromevox_strings',
135 'grit_grd_file': 'strings/chromevox_strings.grd',
136 'grit_out_dir': '<(chromevox_dest_dir)',
137 # We don't generate any RC files, so no resource_ds file is needed.
138 'grit_resource_ids': '',
140 'includes': [ '../../../../../build/grit_action.gypi' ],
145 'target_name': 'chromevox2',
148 'chromevox2_copied_scripts',
150 'chromevox2_manifest',
151 'chromevox2_guest_manifest',
152 'chromevox2_resources',
156 'target_name': 'chromevox2_copied_scripts',
159 'dest_dir': '<(chromevox_dest_dir)',
162 'cvox2/background/loader.js',
164 'includes': [ 'copy_js.gypi', ],
167 'target_name': 'chromevox2_deps',
170 'deps_js_output_file': '<(chromevox_dest_dir)/deps.js',
173 'cvox2/background/loader.js',
175 'includes': ['generate_deps.gypi'],
178 'target_name': 'chromevox2_resources',
182 'destination': '<(PRODUCT_DIR)/resources/chromeos/chromevox/cvox2/background',
184 'cvox2/background/background.html',
190 'target_name': 'chromevox2_manifest',
193 'output_manifest_path': '<(chromevox_dest_dir)/manifest_next.json',
194 'use_chromevox_next': 1,
196 'includes': [ 'generate_manifest.gypi', ],
199 'target_name': 'chromevox2_guest_manifest',
202 'output_manifest_path': '<(chromevox_dest_dir)/manifest_next_guest.json',
203 'is_guest_manifest': 1,
204 'use_chromevox_next': 1,
206 'includes': [ 'generate_manifest.gypi', ],
210 ['use_migrated_chromevox==1 and chromevox_compress_js==1', {
213 'target_name': 'chromevox_content_script',
216 'output_file': '<(chromevox_dest_dir)/chromeVoxChromePageScript.js',
218 'sources': [ '<(content_script_loader_file)' ],
219 'includes': [ 'compress_js.gypi', ],
222 'target_name': 'chromevox_background_script',
225 'output_file': '<(chromevox_dest_dir)/chromeVoxChromeBackgroundScript.js',
227 'sources': [ '<(background_script_loader_file)' ],
228 'includes': [ 'compress_js.gypi', ],
231 'target_name': 'chromevox_options_script',
234 'output_file': '<(chromevox_dest_dir)/chromeVoxChromeOptionsScript.js',
236 'sources': [ '<(options_script_loader_file)' ],
237 'includes': [ 'compress_js.gypi', ],
240 'target_name': 'chromevox_kbexplorer_script',
243 'output_file': '<(chromevox_dest_dir)/chromeVoxKbExplorerScript.js',
245 'sources': [ '<(kbexplorer_loader_file)' ],
246 'includes': [ 'compress_js.gypi', ],
251 ['use_migrated_chromevox==1 and chromevox_compress_js==0', {
254 'target_name': 'chromevox_copied_scripts',
257 'dest_dir': '<(chromevox_dest_dir)',
260 '<(background_script_loader_file)',
261 '<(content_script_loader_file)',
262 '<(kbexplorer_loader_file)',
263 '<(options_script_loader_file)',
265 'includes': [ 'copy_js.gypi', ],