[sql] Remove _HAS_EXCEPTIONS=0 from build info.
[chromium-blink-merge.git] / chrome / browser / resources / chromeos / chromevox / chromevox.gyp
blob10011720e197b4aa4a5ca77b209b3620bc21ef51
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.
6   'conditions': [
7     ['chromeos==1', {
8       'variables': {
9         # Whether to compress the 4 main ChromeVox scripts.
10         'chromevox_compress_js%': '1',
11       },
12       'includes': [
13         'chromevox_assets.gypi',
14         'chromevox_tests.gypi',
15         'chromevox_vars.gypi',
16         'common.gypi',
17       ],
18       'targets': [
19         {
20           'target_name': 'chromevox',
21           'type': 'none',
22           'dependencies': [
23             'chromevox_resources',
24             'chromevox_manifest',
25             'chromevox_guest_manifest',
26           ],
27         },
28         {
29           'target_name': 'chromevox_resources',
30           'type': 'none',
31           'dependencies': [
32             'chromevox_assets',
33             'chromevox_static_files',
34             'chromevox_strings',
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',
38           ],
39           'conditions': [
40             ['disable_nacl==0 and disable_nacl_untrusted==0', {
41               'dependencies': [
42                 '<(DEPTH)/third_party/liblouis/liblouis_nacl.gyp:liblouis_nacl_wrapper_nacl',
43               ],
44             }],
45             ['chromevox_compress_js==1', {
46               'dependencies': [
47                 'chromevox1_background_script',
48                 'chromevox1_content_script',
49                 'chromevox1_kbexplorer_script',
50                 'chromevox1_options_script',
51                 'chromevox2_background_script',
52               ],
53             }, {  # chromevox_compress_js==0
54               'dependencies': [
55                 'chromevox_copied_scripts',
56                 'chromevox_deps',
57               ],
58             }],
59           ],
60         },
61         {
62           'target_name': 'chromevox_static_files',
63           'type': 'none',
64           'copies': [
65             {
66               'destination': '<(chromevox_dest_dir)/chromevox/background',
67               'files': [
68                 'chromevox/background/background.html',
69                 'chromevox/background/kbexplorer.html',
70                 'chromevox/background/options.html',
71               ],
72             },
73             {
74               'destination': '<(chromevox_dest_dir)/cvox2/background',
75               'files': [
76                 'cvox2/background/background.html',
77               ],
78             },
79           ],
80         },
81         {
82           # JavaScript files that are always directly included into the
83           # destination directory.
84           'target_name': 'chromevox_uncompiled_js_files',
85           'type': 'none',
86           'copies': [
87             {
88               'destination': '<(chromevox_dest_dir)/chromevox/injected',
89               'files': [
90                 'chromevox/injected/api.js',
91               ],
92               'conditions': [
93                 [ 'chromevox_compress_js==1', {
94                   'files': [
95                     # api_util.js is copied by the chromevox_copied_scripts
96                     # target in the non-compressed case.
97                     'chromevox/injected/api_util.js',
98                   ],
99                 }],
100               ],
101             },
102           ],
103           'conditions': [
104             [ 'chromevox_compress_js==0', {
105               'copies': [
106                 {
107                   'destination': '<(chromevox_dest_dir)/closure',
108                   'files': [
109                     'closure/closure_preinit.js',
110                   ],
111                 },
112               ],
113             }],
114           ],
115         },
116         {
117           'target_name': 'chromevox_strings',
118           'type': 'none',
119           'actions': [
120             {
121               'action_name': 'chromevox_strings',
122               'variables': {
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': '',
127               },
128               'includes': [ '../../../../../build/grit_action.gypi' ],
129             },
130           ],
131         },
132         {
133           'target_name': 'chromevox_deps',
134           'type': 'none',
135           'variables': {
136             'deps_js_output_file': '<(chromevox_dest_dir)/deps.js',
137           },
138           'sources': [
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)',
144           ],
145           'includes': ['generate_deps.gypi'],
146         },
147         {
148           'target_name': 'chromevox_manifest',
149           'type': 'none',
150           'variables': {
151             'output_manifest_path': '<(chromevox_dest_dir)/manifest.json',
152           },
153           'includes': [ 'generate_manifest.gypi', ],
154         },
155         {
156           'target_name': 'chromevox_guest_manifest',
157           'type': 'none',
158           'variables': {
159             'output_manifest_path': '<(chromevox_dest_dir)/manifest_guest.json',
160             'is_guest_manifest': 1,
161           },
162           'includes': [ 'generate_manifest.gypi', ],
163         },
164       ],
165       'conditions': [
166         ['chromevox_compress_js==1', {
167           'targets': [
168             {
169               'target_name': 'chromevox1_content_script',
170               'type': 'none',
171               'variables': {
172                 'output_file': '<(chromevox_dest_dir)/chromeVoxChromePageScript.js',
173               },
174               'sources': [ '<(chromevox1_content_script_loader_file)' ],
175               'includes': [ 'compress_js.gypi', ],
176             },
177             {
178               'target_name': 'chromevox1_background_script',
179               'type': 'none',
180               'variables': {
181                 'output_file': '<(chromevox_dest_dir)/chromeVoxChromeBackgroundScript.js',
182               },
183               'sources': [ '<(chromevox1_background_script_loader_file)' ],
184               'includes': [ 'compress_js.gypi', ],
185             },
186             {
187               'target_name': 'chromevox1_options_script',
188               'type': 'none',
189               'variables': {
190                 'output_file': '<(chromevox_dest_dir)/chromeVoxChromeOptionsScript.js',
191               },
192               'sources': [ '<(chromevox1_options_script_loader_file)' ],
193               'includes': [ 'compress_js.gypi', ],
194             },
195             {
196               'target_name': 'chromevox1_kbexplorer_script',
197               'type': 'none',
198               'variables': {
199                 'output_file': '<(chromevox_dest_dir)/chromeVoxKbExplorerScript.js',
200               },
201               'sources': [ '<(chromevox1_kbexplorer_loader_file)' ],
202               'includes': [ 'compress_js.gypi', ],
203             },
204             {
205               'target_name': 'chromevox2_background_script',
206               'type': 'none',
207               'variables': {
208                 'output_file': '<(chromevox_dest_dir)/chromeVox2ChromeBackgroundScript.js',
209               },
210               'sources': [
211                 '<(chromevox1_background_script_loader_file)',
212                 '<(chromevox2_background_script_loader_file)',
213               ],
214               'includes': [ 'compress_js.gypi', ],
215             },
216           ],
217         }, {  # chromevox_compress_js==0
218           'targets': [
219             {
220               'target_name': 'chromevox_copied_scripts',
221               'type': 'none',
222               'variables': {
223                 'dest_dir': '<(chromevox_dest_dir)',
224               },
225               'sources': [
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)',
231               ],
232               'includes': [ 'copy_js.gypi', ],
233             },
234           ],
235         }],
236       ],
237     }],
238   ],