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',
13 'chromevox_assets.gypi',
14 'chromevox_tests.gypi',
15 'chromevox_vars.gypi',
20 'target_name': 'chromevox',
23 'chromevox_resources',
25 'chromevox_guest_manifest',
29 'target_name': 'chromevox_resources',
33 'chromevox_static_files',
35 'chromevox_uncompiled_js_files',
36 '<(chromevox_third_party_dir)/chromevox.gyp:chromevox_third_party_resources',
37 '../braille_ime/braille_ime.gyp:braille_ime_manifest',
40 ['disable_nacl==0 and disable_nacl_untrusted==0', {
42 '<(DEPTH)/third_party/liblouis/liblouis_nacl.gyp:liblouis_nacl_wrapper_nacl',
45 ['chromevox_compress_js==1', {
47 'chromevox1_background_script',
48 'chromevox1_content_script',
49 'chromevox1_kbexplorer_script',
50 'chromevox1_options_script',
51 'chromevox2_background_script',
53 }, { # chromevox_compress_js==0
55 'chromevox_copied_scripts',
62 'target_name': 'chromevox_static_files',
66 'destination': '<(chromevox_dest_dir)/chromevox/background',
68 'chromevox/background/background.html',
69 'chromevox/background/kbexplorer.html',
70 'chromevox/background/options.html',
74 'destination': '<(chromevox_dest_dir)/cvox2/background',
76 'cvox2/background/background.html',
82 # JavaScript files that are always directly included into the
83 # destination directory.
84 'target_name': 'chromevox_uncompiled_js_files',
88 'destination': '<(chromevox_dest_dir)/chromevox/injected',
90 'chromevox/injected/api.js',
93 [ 'chromevox_compress_js==1', {
95 # api_util.js is copied by the chromevox_copied_scripts
96 # target in the non-compressed case.
97 'chromevox/injected/api_util.js',
104 [ 'chromevox_compress_js==0', {
107 'destination': '<(chromevox_dest_dir)/closure',
109 'closure/closure_preinit.js',
117 'target_name': 'chromevox_strings',
121 'action_name': 'chromevox_strings',
123 'grit_grd_file': 'strings/chromevox_strings.grd',
124 'grit_out_dir': '<(chromevox_dest_dir)',
125 # We don't generate any RC files, so no resource_ds file is needed.
126 'grit_resource_ids': '',
128 'includes': [ '../../../../../build/grit_action.gypi' ],
133 'target_name': 'chromevox_deps',
136 'deps_js_output_file': '<(chromevox_dest_dir)/deps.js',
139 '<(chromevox1_background_script_loader_file)',
140 '<(chromevox1_content_script_loader_file)',
141 '<(chromevox1_kbexplorer_loader_file)',
142 '<(chromevox1_options_script_loader_file)',
143 '<(chromevox2_background_script_loader_file)',
145 'includes': ['generate_deps.gypi'],
148 'target_name': 'chromevox_manifest',
151 'output_manifest_path': '<(chromevox_dest_dir)/manifest.json',
153 'includes': [ 'generate_manifest.gypi', ],
156 'target_name': 'chromevox_guest_manifest',
159 'output_manifest_path': '<(chromevox_dest_dir)/manifest_guest.json',
160 'is_guest_manifest': 1,
162 'includes': [ 'generate_manifest.gypi', ],
166 ['chromevox_compress_js==1', {
169 'target_name': 'chromevox1_content_script',
172 'output_file': '<(chromevox_dest_dir)/chromeVoxChromePageScript.js',
174 'sources': [ '<(chromevox1_content_script_loader_file)' ],
175 'includes': [ 'compress_js.gypi', ],
178 'target_name': 'chromevox1_background_script',
181 'output_file': '<(chromevox_dest_dir)/chromeVoxChromeBackgroundScript.js',
183 'sources': [ '<(chromevox1_background_script_loader_file)' ],
184 'includes': [ 'compress_js.gypi', ],
187 'target_name': 'chromevox1_options_script',
190 'output_file': '<(chromevox_dest_dir)/chromeVoxChromeOptionsScript.js',
192 'sources': [ '<(chromevox1_options_script_loader_file)' ],
193 'includes': [ 'compress_js.gypi', ],
196 'target_name': 'chromevox1_kbexplorer_script',
199 'output_file': '<(chromevox_dest_dir)/chromeVoxKbExplorerScript.js',
201 'sources': [ '<(chromevox1_kbexplorer_loader_file)' ],
202 'includes': [ 'compress_js.gypi', ],
205 'target_name': 'chromevox2_background_script',
208 'output_file': '<(chromevox_dest_dir)/chromeVox2ChromeBackgroundScript.js',
211 '<(chromevox1_background_script_loader_file)',
212 '<(chromevox2_background_script_loader_file)',
214 'includes': [ 'compress_js.gypi', ],
217 }, { # chromevox_compress_js==0
220 'target_name': 'chromevox_copied_scripts',
223 'dest_dir': '<(chromevox_dest_dir)',
226 '<(chromevox1_background_script_loader_file)',
227 '<(chromevox1_content_script_loader_file)',
228 '<(chromevox1_kbexplorer_loader_file)',
229 '<(chromevox1_options_script_loader_file)',
230 '<(chromevox2_background_script_loader_file)',
232 'includes': [ 'copy_js.gypi', ],