OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | |
7 'test_shell_windows_resource_files': [ | |
8 'resources/test_shell.rc', | |
9 '../../../ui/resources/cursors/pan_east.cur', | |
10 '../../../ui/resources/cursors/pan_middle.cur', | |
11 '../../../ui/resources/cursors/pan_north.cur', | |
12 '../../../ui/resources/cursors/pan_north_east.cur', | |
13 '../../../ui/resources/cursors/pan_north_west.cur', | |
14 '../../../ui/resources/cursors/pan_south.cur', | |
15 '../../../ui/resources/cursors/pan_south_east.cur', | |
16 '../../../ui/resources/cursors/pan_south_west.cur', | |
17 '../../../ui/resources/cursors/pan_west.cur', | |
18 'resources/small.ico', | |
19 'resources/test_shell.ico', | |
20 'resource.h', | |
21 ], | |
22 }, | |
23 'targets': [ | 6 'targets': [ |
24 { | 7 { |
25 'target_name': 'pull_in_copy_TestNetscapePlugIn', | 8 'target_name': 'pull_in_copy_TestNetscapePlugIn', |
26 'type': 'none', | 9 'type': 'none', |
27 'dependencies': [ | 10 'dependencies': [ |
28 '../third_party/WebKit/Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRende rTree.gyp:copy_TestNetscapePlugIn' | 11 '../third_party/WebKit/Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRende rTree.gyp:copy_TestNetscapePlugIn' |
29 ], | 12 ], |
30 }, | 13 }, |
31 { | 14 { |
32 # TODO(tony): This should be moved to webkit_glue.gypi or | 15 # TODO(tony): This should be moved to webkit_glue.gypi or |
33 # webkit_tests.gypi and named something like test_mock_plugin_list. | 16 # webkit_tests.gypi and named something like test_mock_plugin_list. |
34 'target_name': 'test_shell_test_support', | 17 'target_name': 'test_shell_test_support', |
35 'type': 'static_library', | 18 'type': 'static_library', |
36 'dependencies': [ | 19 'dependencies': [ |
37 '<(DEPTH)/webkit/support/webkit_support.gyp:glue' | 20 '<(DEPTH)/webkit/support/webkit_support.gyp:glue' |
38 ], | 21 ], |
39 'sources': [ | 22 'sources': [ |
40 '../../plugins/npapi/mock_plugin_list.cc', | 23 '../../plugins/npapi/mock_plugin_list.cc', |
41 '../../plugins/npapi/mock_plugin_list.h', | 24 '../../plugins/npapi/mock_plugin_list.h', |
42 ] | 25 ] |
43 }, | 26 }, |
44 ], | 27 ], |
45 'conditions': [ | 28 'conditions': [ |
46 # Currently test_shell compiles only on Windows, Mac, and Gtk. | 29 # Currently test_shell compiles only on Windows, Mac, and Gtk. |
47 ['OS=="win" or OS=="mac" or toolkit_uses_gtk==1', { | 30 ['OS=="win" or OS=="mac" or toolkit_uses_gtk==1', { |
48 'targets': [ | 31 'targets': [ |
49 { | 32 { |
50 'target_name': 'test_shell_common', | 33 # TODO(darin): Delete this dummy target once the build masters stop |
34 # trying to build it. | |
35 'target_name': 'test_shell', | |
51 'type': 'static_library', | 36 'type': 'static_library', |
jochen (gone - plz use gerrit)
2013/05/08 06:40:52
does 'type': 'none' and no sources not work?
| |
52 'variables': { | |
53 'chromium_code': 1, | |
54 }, | |
55 'dependencies': [ | |
56 '../build/temp_gyp/googleurl.gyp:googleurl', | |
57 '<(DEPTH)/base/base.gyp:base', | |
58 '<(DEPTH)/base/base.gyp:base_i18n', | |
59 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.g yp:dynamic_annotations', | |
60 '<(DEPTH)/gpu/gpu.gyp:gles2_c_lib', | |
61 '<(DEPTH)/media/media.gyp:media', | |
62 '<(DEPTH)/net/net.gyp:net', | |
63 '<(DEPTH)/skia/skia.gyp:skia', | |
64 '<(DEPTH)/testing/gmock.gyp:gmock', | |
65 '<(DEPTH)/testing/gtest.gyp:gtest', | |
66 '<(DEPTH)/third_party/WebKit/Source/devtools/devtools.gyp:devtools_f rontend_resources', | |
67 '<(DEPTH)/third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webki t', | |
68 '<(DEPTH)/ui/native_theme/native_theme.gyp:native_theme', | |
69 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', | |
70 '<(DEPTH)/webkit/gpu/webkit_gpu.gyp:webkit_gpu', | |
71 '<(DEPTH)/webkit/support/webkit_support.gyp:glue', | |
72 '<(DEPTH)/webkit/support/webkit_support.gyp:user_agent', | |
73 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_base', | |
74 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_media', | |
75 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources', | |
76 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_storage', | |
77 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_support_common', | |
78 ], | |
79 'sources': [ | 37 'sources': [ |
80 'mac/test_shell_webview.h', | 38 'test_shell_dummy.cc', |
81 'mac/test_shell_webview.mm', | |
82 'accessibility_ui_element.cc', | |
83 'accessibility_ui_element.h', | |
84 'drop_delegate.cc', | |
85 'drop_delegate.h', | |
86 'mock_spellcheck.cc', | |
87 'mock_spellcheck.h', | |
88 'notification_presenter.cc', | |
89 'notification_presenter.h', | |
90 'resource.h', | |
91 'test_navigation_controller.cc', | |
92 'test_navigation_controller.h', | |
93 'test_shell.cc', | |
94 'test_shell.h', | |
95 'test_shell_devtools_agent.cc', | |
96 'test_shell_devtools_agent.h', | |
97 'test_shell_devtools_callargs.cc', | |
98 'test_shell_devtools_callargs.h', | |
99 'test_shell_devtools_client.cc', | |
100 'test_shell_devtools_client.h', | |
101 'test_shell_gtk.cc', | |
102 'test_shell_x11.cc', | |
103 'test_shell_mac.mm', | |
104 'test_shell_platform_delegate.h', | |
105 'test_shell_platform_delegate_gtk.cc', | |
106 'test_shell_platform_delegate_mac.mm', | |
107 'test_shell_platform_delegate_win.cc', | |
108 'test_shell_switches.cc', | |
109 'test_shell_switches.h', | |
110 'test_shell_win.cc', | |
111 'test_shell_webkit_init.cc', | |
112 'test_shell_webkit_init.h', | |
113 'test_shell_webthemecontrol.h', | |
114 'test_shell_webthemecontrol.cc', | |
115 'test_shell_webthemeengine.h', | |
116 'test_shell_webthemeengine.cc', | |
117 'test_webview_delegate.cc', | |
118 'test_webview_delegate.h', | |
119 'test_webview_delegate_mac.mm', | |
120 'test_webview_delegate_gtk.cc', | |
121 'test_webview_delegate_win.cc', | |
122 'webview_host.h', | |
123 'webview_host_gtk.cc', | |
124 'webview_host_mac.mm', | |
125 'webview_host_win.cc', | |
126 'webwidget_host.h', | |
127 'webwidget_host.cc', | |
128 'webwidget_host_gtk.cc', | |
129 'webwidget_host_mac.mm', | |
130 'webwidget_host_win.cc', | |
131 ], | |
132 'export_dependent_settings': [ | |
133 '<(DEPTH)/base/base.gyp:base', | |
134 '<(DEPTH)/net/net.gyp:net', | |
135 '<(DEPTH)/third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webki t', | |
136 '<(DEPTH)/webkit/support/webkit_support.gyp:glue', | |
137 '<(DEPTH)/webkit/support/webkit_support.gyp:user_agent', | |
138 ], | |
139 'conditions': [ | |
140 ['OS!="android" and OS!="ios"', { | |
141 # npapi test plugin doesn't build on android or ios | |
142 'dependencies': [ | |
143 'copy_npapi_test_plugin', | |
144 ], | |
145 }], | |
146 ['use_x11==1', { | |
147 'dependencies': [ | |
148 '<(DEPTH)/tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | |
149 ], | |
150 }], | |
151 ['toolkit_uses_gtk == 1', { | |
152 'dependencies': [ | |
153 'test_shell_resources', | |
154 '<(DEPTH)/build/linux/system.gyp:gtk', | |
155 ], | |
156 # for: test_shell_gtk.cc | |
157 'cflags': ['-Wno-multichar'], | |
158 }], | |
159 ['OS=="win"', { | |
160 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
161 'msvs_disabled_warnings': [ 4800, 4267 ], | |
162 'link_settings': { | |
163 'libraries': [ | |
164 '-lcomctl32.lib', | |
165 ], | |
166 }, | |
167 'include_dirs': [ | |
168 '<(DEPTH)/third_party/wtl/include', | |
169 '.', | |
170 ], | |
171 'dependencies': [ | |
172 '<(DEPTH)/breakpad/breakpad.gyp:breakpad_handler', | |
173 ], | |
174 }, { # else: OS!=win | |
175 'sources/': [ | |
176 ['exclude', '_webtheme(control|engine)\.(cc|h)$'], | |
177 ], | |
178 'sources!': [ | |
179 'drop_delegate.cc', | |
180 ], | |
181 }], | |
182 ], | 39 ], |
183 }, | 40 }, |
184 { | 41 ], |
185 'target_name': 'test_shell_pak', | |
186 'type': 'none', | |
187 'variables': { | |
188 'repack_path': '../../../tools/grit/grit/format/repack.py', | |
189 'pak_path': '<(INTERMEDIATE_DIR)/repack/test_shell.pak', | |
190 }, | |
191 'conditions': [ | |
192 ['os_posix == 1 and OS != "mac"', { | |
193 'actions': [ | |
194 { | |
195 'action_name': 'test_shell_repack', | |
196 'variables': { | |
197 'pak_inputs': [ | |
198 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', | |
199 '<(SHARED_INTERMEDIATE_DIR)/test_shell/test_shell_resource s.pak', | |
200 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_1 00_percent.pak', | |
201 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resourc es.pak', | |
202 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_pe rcent.pak', | |
203 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pa k', | |
204 ], | |
205 }, | |
206 'inputs': [ | |
207 '<(repack_path)', | |
208 '<@(pak_inputs)', | |
209 ], | |
210 'outputs': [ | |
211 '<(pak_path)', | |
212 ], | |
213 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak _inputs)'], | |
214 }, | |
215 ], | |
216 'copies': [ | |
217 { | |
218 'destination': '<(PRODUCT_DIR)', | |
219 'files': ['<(pak_path)'], | |
220 }, | |
221 ], | |
222 }], | |
223 ], | |
224 }, | |
225 { | |
226 'target_name': 'test_shell', | |
227 'type': 'executable', | |
228 'variables': { | |
229 'chromium_code': 1, | |
230 }, | |
231 'mac_bundle': 1, | |
232 'dependencies': [ | |
233 'test_shell_common', | |
234 '<(DEPTH)/net/net.gyp:net_test_support', | |
235 '<(DEPTH)/skia/skia.gyp:skia', | |
236 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa', | |
237 'pull_in_copy_TestNetscapePlugIn', | |
238 '<(DEPTH)/tools/imagediff/image_diff.gyp:image_diff', | |
239 '<(DEPTH)/ui/gl/gl.gyp:gl', | |
240 ], | |
241 'defines': [ | |
242 # Technically not a unit test but require functions available only t o | |
243 # unit tests. | |
244 'UNIT_TEST' | |
245 ], | |
246 'sources': [ | |
247 'test_shell_main.cc', | |
248 ], | |
249 'mac_bundle_resources': [ | |
250 '../../data/test_shell/', | |
251 'mac/English.lproj/InfoPlist.strings', | |
252 'mac/English.lproj/MainMenu.xib', | |
253 'mac/Info.plist', | |
254 'mac/test_shell.icns', | |
255 'resources/AHEM____.TTF', | |
256 ], | |
257 'mac_bundle_resources!': [ | |
258 # TODO(mark): Come up with a fancier way to do this (mac_info_plist? ) | |
259 # that automatically sets the correct INFOPLIST_FILE setting and add s | |
260 # the file to a source group. | |
261 'mac/Info.plist', | |
262 ], | |
263 'xcode_settings': { | |
264 'INFOPLIST_FILE': '<(DEPTH)/webkit/tools/test_shell/mac/Info.plist', | |
265 }, | |
266 'conditions': [ | |
267 ['OS=="win"', { | |
268 'resource_include_dirs': [ | |
269 '<(SHARED_INTERMEDIATE_DIR)/webkit', | |
270 ], | |
271 'sources': [ | |
272 '<@(test_shell_windows_resource_files)', | |
273 # TODO: It would be nice to have these pulled in | |
274 # automatically from direct_dependent_settings in | |
275 # their various targets (net.gyp:net_resources, etc.), | |
276 # but that causes errors in other targets when | |
277 # resulting .res files get referenced multiple times. | |
278 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc', | |
279 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_unscaled_resource s.rc', | |
280 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc' , | |
281 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc', | |
282 ], | |
283 'configurations': { | |
284 'Debug_Base': { | |
285 'msvs_settings': { | |
286 'VCLinkerTool': { | |
287 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', | |
288 }, | |
289 }, | |
290 }, | |
291 }, | |
292 }], | |
293 ['toolkit_uses_gtk == 1', { | |
294 'conditions': [ | |
295 ['linux_use_tcmalloc==1', { | |
296 'dependencies': [ | |
297 '<(DEPTH)/base/allocator/allocator.gyp:allocator', | |
298 ], | |
299 }], | |
300 ], | |
301 'dependencies': [ | |
302 '<(DEPTH)/build/linux/system.gyp:gtk', | |
303 'test_shell_resources', | |
304 'test_shell_pak', | |
305 ], | |
306 }], | |
307 ['OS=="mac"', { | |
308 'product_name': 'TestShell', | |
309 'dependencies': [ | |
310 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa', | |
311 ], | |
312 'variables': { | |
313 'repack_path': '../../../tools/grit/grit/format/repack.py', | |
314 }, | |
315 'actions': [ | |
316 { | |
317 # TODO(mark): Make this work with more languages than the | |
318 # hardcoded en-US. | |
319 'action_name': 'repack_locale', | |
320 'variables': { | |
321 'pak_inputs': [ | |
322 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resourc es.pak', | |
323 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pa k', | |
324 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_pe rcent.pak', | |
325 ], | |
326 }, | |
327 'inputs': [ | |
328 '<(repack_path)', | |
329 '<@(pak_inputs)', | |
330 ], | |
331 'outputs': [ | |
332 '<(INTERMEDIATE_DIR)/repack/test_shell.pak', | |
333 ], | |
334 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak _inputs)'], | |
335 'process_outputs_as_mac_bundle_resources': 1, | |
336 }, | |
337 ], | |
338 'copies': [ | |
339 { | |
340 # Copy FFmpeg binaries for audio/video support. | |
341 'destination': '<(PRODUCT_DIR)/TestShell.app/Contents/MacOS/', | |
342 'files': [ | |
343 '<(PRODUCT_DIR)/ffmpegsumo.so', | |
344 ], | |
345 }, | |
346 ], | |
347 }, { # OS != "mac" | |
348 'dependencies': [ | |
349 '<(DEPTH)/net/net.gyp:net_resources', | |
350 '<(DEPTH)/ui/ui.gyp:ui_resources', | |
351 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources', | |
352 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings', | |
353 ] | |
354 }], | |
355 ], | |
356 }, | |
357 ], | |
358 }], | 42 }], |
359 ['OS!="android" and OS!="ios"', { | 43 ['OS!="android" and OS!="ios"', { |
360 # npapi test plugin doesn't build on android or ios | 44 # npapi test plugin doesn't build on android or ios |
361 'targets': [ | 45 'targets': [ |
362 { | 46 { |
363 'target_name': 'npapi_test_common', | 47 'target_name': 'npapi_test_common', |
364 'type': 'static_library', | 48 'type': 'static_library', |
365 'dependencies': [ | 49 'dependencies': [ |
366 '<(DEPTH)/base/base.gyp:base', | 50 '<(DEPTH)/base/base.gyp:base', |
367 '<(DEPTH)/third_party/npapi/npapi.gyp:npapi', | 51 '<(DEPTH)/third_party/npapi/npapi.gyp:npapi', |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
503 { | 187 { |
504 'destination': '<(PRODUCT_DIR)/plugins', | 188 'destination': '<(PRODUCT_DIR)/plugins', |
505 'files': ['<(PRODUCT_DIR)/libnpapi_test_plugin.so'], | 189 'files': ['<(PRODUCT_DIR)/libnpapi_test_plugin.so'], |
506 }, | 190 }, |
507 ], | 191 ], |
508 }], | 192 }], |
509 ], | 193 ], |
510 }, | 194 }, |
511 ], | 195 ], |
512 }], | 196 }], |
513 ['os_posix == 1 and OS != "mac"', { | |
514 'targets': [ | |
515 { | |
516 'target_name': 'test_shell_resources', | |
517 'type': 'none', | |
518 'variables': { | |
519 'grit_grd_file': './test_shell_resources.grd', | |
520 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/test_shell', | |
521 }, | |
522 'actions': [ | |
523 { | |
524 'action_name': 'test_shell_resources', | |
525 'includes': [ '../../../build/grit_action.gypi' ], | |
526 }, | |
527 ], | |
528 'includes': [ '../../../build/grit_target.gypi' ], | |
529 }, | |
530 ], | |
531 }], | |
532 ], | 197 ], |
533 } | 198 } |
OLD | NEW |