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.
10 'chromevox_compress_js%': '1',
11 'chromevox1_background_script_loader_file': 'chromevox/background/loader.js',
12 'chromevox1_content_script_loader_file': 'chromevox/injected/loader.js',
13 'chromevox1_kbexplorer_loader_file': 'chromevox/background/kbexplorer_loader.js',
14 'chromevox1_options_script_loader_file': 'chromevox/background/options_loader.js',
15 'chromevox2_background_script_loader_file': 'cvox2/background/loader.js',
18 'chromevox_tests.gypi',
23 'target_name': 'chromevox',
26 'chromevox_resources',
28 'chromevox_guest_manifest',
32 'target_name': 'chromevox_resources',
36 'chromevox_static_files',
38 'chromevox_uncompiled_js_files',
39 '<(chromevox_third_party_dir)/chromevox.gyp:chromevox_third_party_resources',
40 '../braille_ime/braille_ime.gyp:braille_ime_manifest',
43 ['disable_nacl==0 and disable_nacl_untrusted==0', {
45 '<(DEPTH)/third_party/liblouis/liblouis_nacl.gyp:liblouis_nacl_wrapper_nacl',
48 ['chromevox_compress_js==1', {
50 'chromevox1_background_script',
51 'chromevox1_content_script',
52 'chromevox1_kbexplorer_script',
53 'chromevox1_options_script',
54 'chromevox2_background_script',
56 }, { # chromevox_compress_js==0
58 'chromevox_copied_scripts',
65 'target_name': 'chromevox_assets',
68 'chromevox_assets.gypi',
72 'target_name': 'chromevox_static_files',
76 'destination': '<(chromevox_dest_dir)/chromevox/background',
78 'chromevox/background/background.html',
79 'chromevox/background/kbexplorer.html',
80 'chromevox/background/options.html',
84 'destination': '<(PRODUCT_DIR)/resources/chromeos/chromevox/cvox2/background',
86 'cvox2/background/background.html',
92 # JavaScript files that are always directly included into the
93 # destination directory.
94 'target_name': 'chromevox_uncompiled_js_files',
98 'destination': '<(chromevox_dest_dir)/chromevox/injected',
100 'chromevox/injected/api.js',
103 [ 'chromevox_compress_js==1', {
105 # api_util.js is copied by the chromevox_copied_scripts
106 # target in the non-compressed case.
107 'chromevox/injected/api_util.js',
114 [ 'chromevox_compress_js==0', {
117 'destination': '<(chromevox_dest_dir)/closure',
119 'closure/closure_preinit.js',
127 'target_name': 'chromevox_strings',
131 'action_name': 'chromevox_strings',
133 'grit_grd_file': 'strings/chromevox_strings.grd',
134 'grit_out_dir': '<(chromevox_dest_dir)',
135 # We don't generate any RC files, so no resource_ds file is needed.
136 'grit_resource_ids': '',
138 'includes': [ '../../../../../build/grit_action.gypi' ],
143 'target_name': 'chromevox_deps',
146 'deps_js_output_file': '<(chromevox_dest_dir)/deps.js',
149 '<(chromevox1_background_script_loader_file)',
150 '<(chromevox1_content_script_loader_file)',
151 '<(chromevox1_kbexplorer_loader_file)',
152 '<(chromevox1_options_script_loader_file)',
153 '<(chromevox2_background_script_loader_file)',
155 'includes': ['generate_deps.gypi'],
158 'target_name': 'chromevox_manifest',
161 'output_manifest_path': '<(chromevox_dest_dir)/manifest.json',
163 'includes': [ 'generate_manifest.gypi', ],
166 'target_name': 'chromevox_guest_manifest',
169 'output_manifest_path': '<(chromevox_dest_dir)/manifest_guest.json',
170 'is_guest_manifest': 1,
172 'includes': [ 'generate_manifest.gypi', ],
176 ['chromevox_compress_js==1', {
179 'target_name': 'chromevox1_content_script',
182 'output_file': '<(chromevox_dest_dir)/chromeVoxChromePageScript.js',
184 'sources': [ '<(chromevox1_content_script_loader_file)' ],
185 'includes': [ 'compress_js.gypi', ],
188 'target_name': 'chromevox1_background_script',
191 'output_file': '<(chromevox_dest_dir)/chromeVoxChromeBackgroundScript.js',
193 'sources': [ '<(chromevox1_background_script_loader_file)' ],
194 'includes': [ 'compress_js.gypi', ],
197 'target_name': 'chromevox1_options_script',
200 'output_file': '<(chromevox_dest_dir)/chromeVoxChromeOptionsScript.js',
202 'sources': [ '<(chromevox1_options_script_loader_file)' ],
203 'includes': [ 'compress_js.gypi', ],
206 'target_name': 'chromevox1_kbexplorer_script',
209 'output_file': '<(chromevox_dest_dir)/chromeVoxKbExplorerScript.js',
211 'sources': [ '<(chromevox1_kbexplorer_loader_file)' ],
212 'includes': [ 'compress_js.gypi', ],
215 'target_name': 'chromevox2_background_script',
218 'output_file': '<(chromevox_dest_dir)/chromeVox2ChromeBackgroundScript.js',
221 '<(chromevox1_background_script_loader_file)',
222 '<(chromevox2_background_script_loader_file)',
224 'includes': [ 'compress_js.gypi', ],
227 }, { # chromevox_compress_js==0
230 'target_name': 'chromevox_copied_scripts',
233 'dest_dir': '<(chromevox_dest_dir)',
236 '<(chromevox1_background_script_loader_file)',
237 '<(chromevox1_content_script_loader_file)',
238 '<(chromevox1_kbexplorer_loader_file)',
239 '<(chromevox1_options_script_loader_file)',
240 '<(chromevox2_background_script_loader_file)',
242 'includes': [ 'copy_js.gypi', ],