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',
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 ['use_migrated_chromevox==1 and chromevox_compress_js==1', {
50 'chromevox_content_script',
51 'chromevox_background_script',
52 'chromevox_options_script',
53 'chromevox_kbexplorer_script',
56 ['use_migrated_chromevox==1 and chromevox_compress_js==0', {
58 'chromevox_copied_scripts',
64 'target_name': 'chromevox_assets',
67 'chromevox_assets.gypi',
71 'target_name': 'chromevox_manifest',
74 'output_manifest_path': '<(chromevox_dest_dir)/manifest.json',
76 'includes': [ 'generate_manifest.gypi', ],
79 'target_name': 'chromevox_guest_manifest',
82 'output_manifest_path': '<(chromevox_dest_dir)/manifest_guest.json',
83 'is_guest_manifest': 1,
85 'includes': [ 'generate_manifest.gypi', ],
88 'target_name': 'chromevox_static_files',
92 'destination': '<(chromevox_dest_dir)/chromevox/background',
94 'chromevox/background/background.html',
95 'chromevox/background/kbexplorer.html',
96 'chromevox/background/options.html',
102 # JavaScript files that are always directly included into the
103 # destination directory.
104 'target_name': 'chromevox_uncompiled_js_files',
108 'destination': '<(chromevox_dest_dir)/closure',
110 'closure/closure_preinit.js',
113 ['use_migrated_chromevox==0 or chromevox_compress_js==1', {
114 'files': [ '<(closure_goog_dir)/base.js' ],
119 'destination': '<(chromevox_dest_dir)/chromevox/injected',
121 'chromevox/injected/api.js',
122 'chromevox/injected/api_util.js',
128 'target_name': 'chromevox_strings',
132 'action_name': 'chromevox_strings',
134 'grit_grd_file': 'strings/chromevox_strings.grd',
135 'grit_out_dir': '<(chromevox_dest_dir)',
136 # We don't generate any RC files, so no resource_ds file is needed.
137 'grit_resource_ids': '',
139 'includes': [ '../../../../../build/grit_action.gypi' ],
145 ['use_migrated_chromevox==1 and chromevox_compress_js==1', {
148 'target_name': 'chromevox_content_script',
151 'output_file': '<(chromevox_dest_dir)/chromeVoxChromePageScript.js',
153 'sources': [ '<(content_script_loader_file)' ],
154 'includes': [ 'compress_js.gypi', ],
157 'target_name': 'chromevox_background_script',
160 'output_file': '<(chromevox_dest_dir)/chromeVoxChromeBackgroundScript.js',
162 'sources': [ '<(background_script_loader_file)' ],
163 'includes': [ 'compress_js.gypi', ],
166 'target_name': 'chromevox_options_script',
169 'output_file': '<(chromevox_dest_dir)/chromeVoxChromeOptionsScript.js',
171 'sources': [ '<(options_script_loader_file)' ],
172 'includes': [ 'compress_js.gypi', ],
175 'target_name': 'chromevox_kbexplorer_script',
178 'output_file': '<(chromevox_dest_dir)/chromeVoxKbExplorerScript.js',
180 'sources': [ '<(kbexplorer_loader_file)' ],
181 'includes': [ 'compress_js.gypi', ],
186 ['use_migrated_chromevox==1 and chromevox_compress_js==0', {
189 'target_name': 'chromevox_copied_scripts',
192 'dest_dir': '<(chromevox_dest_dir)',
195 '<(background_script_loader_file)',
196 '<(content_script_loader_file)',
197 '<(kbexplorer_loader_file)',
198 '<(options_script_loader_file)',
200 'includes': [ 'copy_js.gypi', ],