blob: fe16c54dec63ebfe613f7000a984418e9a6c9f2c [file] [log] [blame]
[email protected]d56a89c2010-03-26 22:08:031# Copyright (c) 2010 The Chromium Authors. All rights reserved.
[email protected]2f80c312009-02-25 21:26:552# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6 'variables': {
[email protected]004af192009-04-09 22:35:157 'test_shell_windows_resource_files': [
8 'resources/test_shell.rc',
9 'resources/pan_east.cur',
10 'resources/pan_middle.cur',
11 'resources/pan_north.cur',
12 'resources/pan_north_east.cur',
13 'resources/pan_north_west.cur',
14 'resources/pan_south.cur',
15 'resources/pan_south_east.cur',
16 'resources/pan_south_west.cur',
17 'resources/pan_west.cur',
18 'resources/small.ico',
19 'resources/test_shell.ico',
20 'resource.h',
21 ],
[email protected]2f80c312009-02-25 21:26:5522 },
[email protected]2f80c312009-02-25 21:26:5523 'targets': [
24 {
25 'target_name': 'test_shell_common',
[email protected]653bd5f032009-04-08 12:55:4926 'type': '<(library)',
[email protected]7cb9b9d2010-02-10 21:11:5627 'variables': {
28 'chromium_code': 1,
29 },
[email protected]f0e2c502009-02-26 05:18:5830 'dependencies': [
[email protected]7cb9b9d2010-02-10 21:11:5631 '<(DEPTH)/app/app.gyp:app_base',
32 '<(DEPTH)/base/base.gyp:base',
33 '<(DEPTH)/base/base.gyp:base_i18n',
34 '<(DEPTH)/media/media.gyp:media',
35 '<(DEPTH)/net/net.gyp:net',
36 '<(DEPTH)/skia/skia.gyp:skia',
37 '<(DEPTH)/testing/gmock.gyp:gmock',
38 '<(DEPTH)/testing/gtest.gyp:gtest',
39 '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
40 '<(DEPTH)/third_party/WebKit/WebCore/WebCore.gyp/WebCore.gyp:webcore',
41 '<(DEPTH)/third_party/WebKit/WebKit/chromium/WebKit.gyp:webkit',
42 '<(DEPTH)/webkit/webkit.gyp:appcache',
43 '<(DEPTH)/webkit/webkit.gyp:database',
44 '<(DEPTH)/webkit/webkit.gyp:glue',
45 '<(DEPTH)/webkit/webkit.gyp:inspector_resources',
[email protected]43b3be32010-03-04 08:25:0846 '<(DEPTH)/webkit/webkit.gyp:webkit_support',
[email protected]63aef5e2009-11-03 22:48:1547 'npapi_layout_test_plugin',
[email protected]f0e2c502009-02-26 05:18:5848 ],
[email protected]ea2a98d72009-05-08 01:53:2349 'msvs_guid': '77C32787-1B96-CB84-B905-7F170629F0AC',
[email protected]2f80c312009-02-25 21:26:5550 'sources': [
[email protected]3d1e89d2010-03-10 20:01:3551 'mac/accelerated_surface_stub.cc',
[email protected]2f80c312009-02-25 21:26:5552 'mac/DumpRenderTreePasteboard.h',
53 'mac/DumpRenderTreePasteboard.m',
[email protected]2f80c312009-02-25 21:26:5554 'mac/test_shell_webview.h',
55 'mac/test_shell_webview.mm',
56 'mac/test_webview_delegate.mm',
57 'mac/webview_host.mm',
58 'mac/webwidget_host.mm',
[email protected]95991732009-10-14 22:18:1659 'accessibility_controller.cc',
60 'accessibility_controller.h',
61 'accessibility_ui_element.cc',
62 'accessibility_ui_element.h',
[email protected]2f80c312009-02-25 21:26:5563 'drag_delegate.cc',
64 'drag_delegate.h',
65 'drop_delegate.cc',
66 'drop_delegate.h',
67 'event_sending_controller.cc',
68 'event_sending_controller.h',
69 'foreground_helper.h',
70 'layout_test_controller.cc',
71 'layout_test_controller.h',
[email protected]a0034092010-01-27 06:58:2772 'mock_spellcheck.cc',
73 'mock_spellcheck.h',
[email protected]ad33fd42009-11-09 06:13:5674 'plain_text_controller.cc',
75 'plain_text_controller.h',
[email protected]2f80c312009-02-25 21:26:5576 'resource.h',
[email protected]2f80c312009-02-25 21:26:5577 'test_navigation_controller.cc',
78 'test_navigation_controller.h',
79 'test_shell.cc',
80 'test_shell.h',
[email protected]ac863a02009-12-15 10:51:2381 'test_shell_devtools_agent.cc',
82 'test_shell_devtools_agent.h',
83 'test_shell_devtools_callargs.cc',
84 'test_shell_devtools_callargs.h',
85 'test_shell_devtools_client.cc',
86 'test_shell_devtools_client.h',
[email protected]2f80c312009-02-25 21:26:5587 'test_shell_gtk.cc',
[email protected]4c3cd7412009-04-22 17:56:0688 'test_shell_x11.cc',
[email protected]2f80c312009-02-25 21:26:5589 'test_shell_mac.mm',
90 'test_shell_platform_delegate.h',
91 'test_shell_platform_delegate_gtk.cc',
92 'test_shell_platform_delegate_mac.mm',
93 'test_shell_platform_delegate_win.cc',
[email protected]2f80c312009-02-25 21:26:5594 'test_shell_switches.cc',
95 'test_shell_switches.h',
96 'test_shell_win.cc',
[email protected]992c86d2009-02-27 02:43:0597 'test_shell_webkit_init.h',
[email protected]d56a89c2010-03-26 22:08:0398 'test_shell_webmimeregistry_impl.cc',
99 'test_shell_webmimeregistry_impl.h',
[email protected]cf37da32009-09-14 21:19:21100 'test_shell_webthemecontrol.h',
101 'test_shell_webthemecontrol.cc',
102 'test_shell_webthemeengine.h',
103 'test_shell_webthemeengine.cc',
[email protected]024730082009-09-11 21:00:55104 'test_web_worker.h',
[email protected]2f80c312009-02-25 21:26:55105 'test_webview_delegate.cc',
106 'test_webview_delegate.h',
107 'test_webview_delegate_gtk.cc',
108 'test_webview_delegate_win.cc',
109 'text_input_controller.cc',
110 'text_input_controller.h',
111 'webview_host.h',
112 'webview_host_gtk.cc',
113 'webview_host_win.cc',
114 'webwidget_host.h',
115 'webwidget_host_gtk.cc',
116 'webwidget_host_win.cc',
117 ],
[email protected]19e00ed2009-02-26 16:33:19118 'export_dependent_settings': [
[email protected]7cb9b9d2010-02-10 21:11:56119 '<(DEPTH)/base/base.gyp:base',
120 '<(DEPTH)/net/net.gyp:net',
121 '<(DEPTH)/third_party/WebKit/WebCore/WebCore.gyp/WebCore.gyp:webcore',
122 '<(DEPTH)/third_party/WebKit/WebKit/chromium/WebKit.gyp:webkit',
123 '<(DEPTH)/webkit/webkit.gyp:glue',
[email protected]19e00ed2009-02-26 16:33:19124 ],
[email protected]2f80c312009-02-25 21:26:55125 'conditions': [
[email protected]7e32d6b2009-11-03 20:21:13126 # http://code.google.com/p/chromium/issues/detail?id=18337
[email protected]08be8a72009-11-18 20:35:54127 ['target_arch!="x64" and target_arch!="arm"', {
[email protected]7e32d6b2009-11-03 20:21:13128 'dependencies': [
[email protected]7e32d6b2009-11-03 20:21:13129 'npapi_test_plugin',
130 ],
131 }],
[email protected]17d50be2010-02-25 10:05:12132 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
[email protected]40c3f522009-03-06 21:33:46133 'dependencies': [
134 'test_shell_resources',
[email protected]7cb9b9d2010-02-10 21:11:56135 '<(DEPTH)/build/linux/system.gyp:gtk',
136 '<(DEPTH)/tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
[email protected]40c3f522009-03-06 21:33:46137 ],
138 # for: test_shell_gtk.cc
139 'cflags': ['-Wno-multichar'],
[email protected]bf0791a2009-08-03 17:33:41140 }],
[email protected]17d50be2010-02-25 10:05:12141 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
[email protected]9a8f8ce2009-06-30 22:21:09142 # See below TODO in the Windows branch.
143 'copies': [
144 {
145 'destination': '<(PRODUCT_DIR)/plugins',
146 'files': ['<(PRODUCT_DIR)/libnpapi_layout_test_plugin.so'],
147 },
148 ],
[email protected]40c3f522009-03-06 21:33:46149 }],
[email protected]2f80c312009-02-25 21:26:55150 ['OS=="win"', {
[email protected]2f80c312009-02-25 21:26:55151 'msvs_disabled_warnings': [ 4800 ],
[email protected]69acda82009-03-03 04:22:23152 'link_settings': {
153 'libraries': [
154 '-lcomctl32.lib',
155 ],
156 },
[email protected]004af192009-04-09 22:35:15157 'include_dirs': [
[email protected]cd134c8c2010-03-09 05:23:12158 '<(DEPTH)/third_party/wtl/include',
[email protected]004af192009-04-09 22:35:15159 '.',
160 ],
[email protected]69acda82009-03-03 04:22:23161 'dependencies': [
[email protected]7cb9b9d2010-02-10 21:11:56162 '<(DEPTH)/breakpad/breakpad.gyp:breakpad_handler',
163 '<(DEPTH)/webkit/default_plugin/default_plugin.gyp:default_plugin',
[email protected]69acda82009-03-03 04:22:23164 ],
[email protected]04d2c302009-10-26 21:49:10165 # TODO(bradnelson):
[email protected]81765d32009-05-08 08:31:50166 # This should really be done in the 'npapi_layout_test_plugin'
167 # target, but the current VS generator handles 'copies'
168 # settings as AdditionalDependencies, which means that
169 # when it's over there, it tries to do the copy *before*
170 # the file is built, instead of after. We work around this
171 # by attaching the copy here, since it depends on that
172 # target.
173 'copies': [
174 {
175 'destination': '<(PRODUCT_DIR)/plugins',
176 'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'],
177 },
178 ],
[email protected]3ebf9af02009-03-04 21:04:04179 }, { # else: OS!=win
[email protected]2f80c312009-02-25 21:26:55180 'sources/': [
[email protected]cf37da32009-09-14 21:19:21181 ['exclude', '_webtheme(control|engine)\.(cc|h)$'],
[email protected]2f80c312009-02-25 21:26:55182 ],
183 'sources!': [
184 'drag_delegate.cc',
185 'drop_delegate.cc',
186 ],
187 }],
188 ],
189 },
190 {
[email protected]f4282f92009-09-14 07:00:38191 'target_name': 'test_shell_pak',
192 'type': 'none',
193 'variables': {
194 'repack_path': '../../../tools/data_pack/repack.py',
195 'pak_path': '<(INTERMEDIATE_DIR)/repack/test_shell.pak',
196 },
197 'conditions': [
[email protected]10a6e77b2009-12-31 01:03:52198 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
[email protected]f4282f92009-09-14 07:00:38199 'actions': [
200 {
201 'action_name': 'test_shell_repack',
202 'variables': {
203 'pak_inputs': [
204 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
205 '<(SHARED_INTERMEDIATE_DIR)/test_shell/test_shell_resources.pak',
[email protected]2cc098e2010-03-11 02:03:47206 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak',
[email protected]f4282f92009-09-14 07:00:38207 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
208 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
209 ],
210 },
211 'inputs': [
212 '<(repack_path)',
213 '<@(pak_inputs)',
214 ],
215 'outputs': [
216 '<(pak_path)',
217 ],
218 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inputs)'],
219 },
220 ],
221 'copies': [
222 {
223 'destination': '<(PRODUCT_DIR)',
224 'files': ['<(pak_path)'],
225 },
226 ],
227 }],
228 ],
229 },
230 {
[email protected]2f80c312009-02-25 21:26:55231 'target_name': 'test_shell',
[email protected]d92c7c012009-03-19 19:26:42232 'type': 'executable',
[email protected]7cb9b9d2010-02-10 21:11:56233 'variables': {
234 'chromium_code': 1,
235 },
[email protected]d92c7c012009-03-19 19:26:42236 'mac_bundle': 1,
[email protected]004af192009-04-09 22:35:15237 'msvs_guid': 'FA39524D-3067-4141-888D-28A86C66F2B9',
[email protected]f0e2c502009-02-26 05:18:58238 'dependencies': [
239 'test_shell_common',
[email protected]702a6a722010-03-17 18:24:51240 '<(DEPTH)/net/net.gyp:net_test_support',
[email protected]7cb9b9d2010-02-10 21:11:56241 '<(DEPTH)/tools/imagediff/image_diff.gyp:image_diff',
[email protected]f0e2c502009-02-26 05:18:58242 ],
[email protected]d6fc9fd2009-10-27 18:03:47243 'defines': [
244 # Technically not a unit test but require functions available only to
245 # unit tests.
246 'UNIT_TEST'
247 ],
[email protected]2f80c312009-02-25 21:26:55248 'sources': [
249 'test_shell_main.cc',
250 ],
251 'mac_bundle_resources': [
252 '../../data/test_shell/',
253 'mac/English.lproj/InfoPlist.strings',
254 'mac/English.lproj/MainMenu.nib',
255 'mac/Info.plist',
256 'mac/test_shell.icns',
257 'resources/AHEM____.TTF',
258 ],
259 'mac_bundle_resources!': [
260 # TODO(mark): Come up with a fancier way to do this (mac_info_plist?)
261 # that automatically sets the correct INFOPLIST_FILE setting and adds
262 # the file to a source group.
263 'mac/Info.plist',
264 ],
[email protected]2f80c312009-02-25 21:26:55265 'xcode_settings': {
[email protected]7cb9b9d2010-02-10 21:11:56266 'INFOPLIST_FILE': '<(DEPTH)/webkit/tools/test_shell/mac/Info.plist',
[email protected]2f80c312009-02-25 21:26:55267 },
268 'conditions': [
[email protected]004af192009-04-09 22:35:15269 ['OS=="win"', {
[email protected]7cb9b9d2010-02-10 21:11:56270 'dependencies': [
271 'layout_test_helper',
272 ],
[email protected]31512d442009-06-13 22:07:54273 'resource_include_dirs': [
274 '<(SHARED_INTERMEDIATE_DIR)/webkit',
275 ],
[email protected]53761252009-05-06 06:16:26276 'sources': [
277 '<@(test_shell_windows_resource_files)',
278 # TODO: It would be nice to have these pulled in
279 # automatically from direct_dependent_settings in
280 # their various targets (net.gyp:net_resources, etc.),
281 # but that causes errors in other targets when
282 # resulting .res files get referenced multiple times.
283 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
[email protected]2cc098e2010-03-11 02:03:47284 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
[email protected]53761252009-05-06 06:16:26285 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
286 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
287 ],
[email protected]004af192009-04-09 22:35:15288 }],
[email protected]17d50be2010-02-25 10:05:12289 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
[email protected]3c4e30152009-11-25 00:17:53290 'conditions': [
[email protected]d9df2b52009-12-10 12:06:15291 ['linux_use_tcmalloc==1', {
292 'dependencies': [
[email protected]7cb9b9d2010-02-10 21:11:56293 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
[email protected]d9df2b52009-12-10 12:06:15294 ],
295 }],
[email protected]3c4e30152009-11-25 00:17:53296 ],
[email protected]40c3f522009-03-06 21:33:46297 'dependencies': [
[email protected]7cb9b9d2010-02-10 21:11:56298 '<(DEPTH)/build/linux/system.gyp:gtk',
[email protected]40c3f522009-03-06 21:33:46299 'test_shell_resources',
[email protected]f4282f92009-09-14 07:00:38300 'test_shell_pak',
[email protected]40c3f522009-03-06 21:33:46301 ],
302 }],
[email protected]0654b7b2009-03-05 20:14:52303 ['OS=="mac"', {
304 'product_name': 'TestShell',
[email protected]7cb9b9d2010-02-10 21:11:56305 'dependencies': [
306 'layout_test_helper',
307 ],
[email protected]0654b7b2009-03-05 20:14:52308 'variables': {
309 'repack_path': '../../../tools/data_pack/repack.py',
310 },
311 'actions': [
312 {
313 # TODO(mark): Make this work with more languages than the
314 # hardcoded en-US.
315 'action_name': 'repack_locale',
316 'variables': {
317 'pak_inputs': [
[email protected]2cc098e2010-03-11 02:03:47318 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak',
[email protected]0654b7b2009-03-05 20:14:52319 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
[email protected]89628fd2009-10-02 18:08:52320 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
[email protected]0654b7b2009-03-05 20:14:52321 ],
322 },
323 'inputs': [
324 '<(repack_path)',
325 '<@(pak_inputs)',
326 ],
327 'outputs': [
328 '<(INTERMEDIATE_DIR)/repack/test_shell.pak',
329 ],
330 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inputs)'],
331 'process_outputs_as_mac_bundle_resources': 1,
332 },
[email protected]bbceb0f2009-05-08 14:56:02333 ],
334 'copies': [
335 {
336 'destination': '<(PRODUCT_DIR)/TestShell.app/Contents/PlugIns/',
337 'files': [
338 '<(PRODUCT_DIR)/TestNetscapePlugIn.plugin/',
339 ],
340 },
[email protected]89628fd2009-10-02 18:08:52341 # TODO(ajwong): This, and the parallel chromium stanza below
342 # really should find a way to share file paths with
343 # ffmpeg.gyp so they don't diverge. (BUG=23602)
344 {
345 'destination': '<(PRODUCT_DIR)/TestShell.app/Contents/MacOS/',
346 'files': [
[email protected]995925b2009-11-05 00:56:41347 '<(PRODUCT_DIR)/libffmpegsumo.dylib',
[email protected]89628fd2009-10-02 18:08:52348 ],
349 },
[email protected]bbceb0f2009-05-08 14:56:02350 ],
[email protected]53761252009-05-06 06:16:26351 }, { # OS != "mac"
352 'dependencies': [
[email protected]7cb9b9d2010-02-10 21:11:56353 '<(DEPTH)/net/net.gyp:net_resources',
354 '<(DEPTH)/webkit/webkit.gyp:webkit_resources',
355 '<(DEPTH)/webkit/webkit.gyp:webkit_strings',
[email protected]53761252009-05-06 06:16:26356 ]
[email protected]0654b7b2009-03-05 20:14:52357 }],
[email protected]2f80c312009-02-25 21:26:55358 ],
359 },
360 {
361 'target_name': 'test_shell_tests',
362 'type': 'executable',
[email protected]7cb9b9d2010-02-10 21:11:56363 'variables': {
364 'chromium_code': 1,
365 },
[email protected]004af192009-04-09 22:35:15366 'msvs_guid': 'E6766F81-1FCD-4CD7-BC16-E36964A14867',
[email protected]f0e2c502009-02-26 05:18:58367 'dependencies': [
368 'test_shell_common',
[email protected]702a6a722010-03-17 18:24:51369 '<(DEPTH)/net/net.gyp:net_test_support',
[email protected]7cb9b9d2010-02-10 21:11:56370 '<(DEPTH)/skia/skia.gyp:skia',
371 '<(DEPTH)/testing/gmock.gyp:gmock',
372 '<(DEPTH)/testing/gtest.gyp:gtest',
[email protected]f0e2c502009-02-26 05:18:58373 ],
[email protected]2f80c312009-02-25 21:26:55374 'sources': [
375 '../../../skia/ext/convolver_unittest.cc',
[email protected]004af192009-04-09 22:35:15376 '../../../skia/ext/image_operations_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55377 '../../../skia/ext/platform_canvas_unittest.cc',
378 '../../../skia/ext/vector_canvas_unittest.cc',
[email protected]9b26746e2009-08-06 21:35:45379 '../../appcache/manifest_parser_unittest.cc',
[email protected]eaa08852009-09-02 23:17:33380 '../../appcache/appcache_unittest.cc',
[email protected]35f2094c2009-12-29 22:46:55381 '../../appcache/appcache_database_unittest.cc',
[email protected]eaa08852009-09-02 23:17:33382 '../../appcache/appcache_group_unittest.cc',
[email protected]97e3edc2009-09-15 22:07:15383 '../../appcache/appcache_host_unittest.cc',
[email protected]3367fc1d2009-11-09 00:09:21384 '../../appcache/appcache_request_handler_unittest.cc',
[email protected]073aabe2009-10-21 18:09:33385 '../../appcache/appcache_response_unittest.cc',
[email protected]e7dff7ba2009-10-09 03:25:51386 '../../appcache/appcache_storage_unittest.cc',
[email protected]35f2094c2009-12-29 22:46:55387 '../../appcache/appcache_storage_impl_unittest.cc',
[email protected]ae3c0b262009-10-06 17:19:37388 '../../appcache/appcache_update_job_unittest.cc',
[email protected]3367fc1d2009-11-09 00:09:21389 '../../appcache/appcache_url_request_job_unittest.cc',
[email protected]e7dff7ba2009-10-09 03:25:51390 '../../appcache/mock_appcache_service.h',
[email protected]550890e2009-10-24 21:42:25391 '../../appcache/mock_appcache_storage_unittest.cc',
[email protected]615dedfc2009-11-02 21:41:56392 '../../database/databases_table_unittest.cc',
393 '../../database/database_tracker_unittest.cc',
[email protected]3c5ed2c2009-11-13 01:30:45394 '../../database/database_util_unittest.cc',
[email protected]3ccfe532010-01-06 21:15:55395 '../../database/quota_table_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55396 '../../glue/bookmarklet_unittest.cc',
397 '../../glue/context_menu_unittest.cc',
398 '../../glue/cpp_bound_class_unittest.cc',
399 '../../glue/cpp_variant_unittest.cc',
400 '../../glue/dom_operations_unittest.cc',
401 '../../glue/dom_serializer_unittest.cc',
402 '../../glue/glue_serialize_unittest.cc',
403 '../../glue/iframe_redirect_unittest.cc',
[email protected]8e296bbd2009-07-22 21:37:17404 '../../glue/media/buffered_data_source_unittest.cc',
[email protected]8380c092009-06-25 17:45:51405 '../../glue/media/media_resource_loader_bridge_factory_unittest.cc',
[email protected]8e296bbd2009-07-22 21:37:17406 '../../glue/media/mock_media_resource_loader_bridge_factory.h',
407 '../../glue/media/simple_data_source_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55408 '../../glue/mimetype_unittest.cc',
[email protected]8e296bbd2009-07-22 21:37:17409 '../../glue/mock_resource_loader_bridge.h',
[email protected]2f80c312009-02-25 21:26:55410 '../../glue/multipart_response_delegate_unittest.cc',
[email protected]aeae18c2009-09-08 23:26:31411 '../../glue/plugins/plugin_lib_unittest.cc',
[email protected]e612d762010-03-31 04:32:30412 '../../glue/plugins/webplugin_impl_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55413 '../../glue/regular_expression_unittest.cc',
414 '../../glue/resource_fetcher_unittest.cc',
415 '../../glue/unittest_test_server.h',
[email protected]dca5e3f2009-06-26 20:24:31416 '../../glue/webcursor_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55417 '../../glue/webframe_unittest.cc',
[email protected]99432802009-11-12 21:40:31418 '../../glue/webkit_glue_unittest.cc',
[email protected]979c28b2009-11-07 01:30:48419 '../../glue/webpasswordautocompletelistener_unittest.cc',
[email protected]99432802009-11-12 21:40:31420 '../../glue/webview_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55421 '../webcore_unit_tests/BMPImageDecoder_unittest.cpp',
[email protected]2f80c312009-02-25 21:26:55422 '../webcore_unit_tests/ICOImageDecoder_unittest.cpp',
[email protected]98db79502010-02-02 21:44:57423 'event_listener_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55424 'image_decoder_unittest.cc',
425 'image_decoder_unittest.h',
[email protected]2f80c312009-02-25 21:26:55426 'layout_test_controller_unittest.cc',
[email protected]7423cb332009-08-12 09:18:06427 'listener_leak_test.cc',
[email protected]e4c745c2009-07-10 20:34:25428 'media_leak_test.cc',
[email protected]a0034092010-01-27 06:58:27429 'mock_spellcheck_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55430 'node_leak_test.cc',
431 'plugin_tests.cc',
432 'run_all_tests.cc',
433 'test_shell_test.cc',
434 'test_shell_test.h',
435 'text_input_controller_unittest.cc',
436 ],
[email protected]2f80c312009-02-25 21:26:55437 'conditions': [
[email protected]004af192009-04-09 22:35:15438 ['OS=="win"', {
[email protected]b2b41792009-06-14 17:15:50439 'resource_include_dirs': [
440 '<(SHARED_INTERMEDIATE_DIR)/webkit',
441 ],
[email protected]004af192009-04-09 22:35:15442 'sources': [ '<@(test_shell_windows_resource_files)' ],
443 }],
[email protected]17d50be2010-02-25 10:05:12444 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
[email protected]9d384032009-03-20 23:13:26445 'dependencies': [
[email protected]f4282f92009-09-14 07:00:38446 'test_shell_pak',
[email protected]7cb9b9d2010-02-10 21:11:56447 '<(DEPTH)/build/linux/system.gyp:gtk',
[email protected]9d384032009-03-20 23:13:26448 ],
[email protected]2708ec12009-03-09 18:07:23449 'sources!': [
450 # TODO(port)
451 '../../../skia/ext/platform_canvas_unittest.cc',
[email protected]2708ec12009-03-09 18:07:23452 ],
453 }],
[email protected]e9365712009-03-03 17:33:42454 ['OS=="mac"', {
455 # mac tests load the resources from the built test_shell beside the
456 # test
[email protected]7cb9b9d2010-02-10 21:11:56457 'dependencies': [
458 'test_shell',
459 ],
[email protected]61c2bae02009-05-18 21:12:37460 'sources!': [
[email protected]935a4d52009-06-11 01:05:38461 # Disable the image decoder tests because we use CoreGraphics
462 # code on mac and these tests are for the Skia image-decoders.
463 '../webcore_unit_tests/BMPImageDecoder_unittest.cpp',
464 '../webcore_unit_tests/ICOImageDecoder_unittest.cpp',
465 '../webcore_unit_tests/XBMImageDecoder_unittest.cpp',
466 'image_decoder_unittest.cc',
467 'image_decoder_unittest.h',
[email protected]3194e1ed2009-06-25 18:16:39468 ],
469 'sources': [
470 '../../../skia/ext/skia_utils_mac_unittest.mm',
471 ],
[email protected]e9365712009-03-03 17:33:42472 }],
[email protected]2f80c312009-02-25 21:26:55473 ['OS=="win"', {
474 'msvs_disabled_warnings': [ 4800 ],
[email protected]3ebf9af02009-03-04 21:04:04475 }, { # else: OS!=win
[email protected]2f80c312009-02-25 21:26:55476 'sources!': [
477 '../../../skia/ext/vector_canvas_unittest.cc',
[email protected]2f80c312009-02-25 21:26:55478 ],
479 }],
[email protected]17d50be2010-02-25 10:05:12480 ['OS=="linux" or OS=="freebsd" or OS=="solaris"', {
[email protected]d9df2b52009-12-10 12:06:15481 'conditions': [
482 ['linux_use_tcmalloc==1', {
483 'dependencies': [
[email protected]7cb9b9d2010-02-10 21:11:56484 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
[email protected]d9df2b52009-12-10 12:06:15485 ],
486 }],
487 ],
488 }],
[email protected]2f80c312009-02-25 21:26:55489 ],
490 },
[email protected]80196bd2009-11-03 21:10:23491 {
492 'target_name': 'npapi_layout_test_plugin',
493 'type': 'loadable_module',
[email protected]7cb9b9d2010-02-10 21:11:56494 'variables': {
495 'chromium_code': 1,
496 },
[email protected]80196bd2009-11-03 21:10:23497 'mac_bundle': 1,
498 'msvs_guid': 'BE6D5659-A8D5-4890-A42C-090DD10EF62C',
499 'sources': [
500 '../npapi_layout_test_plugin/PluginObject.cpp',
501 '../npapi_layout_test_plugin/TestObject.cpp',
502 '../npapi_layout_test_plugin/main.cpp',
503 '../npapi_layout_test_plugin/npapi_layout_test_plugin.def',
504 '../npapi_layout_test_plugin/npapi_layout_test_plugin.rc',
505 ],
506 'include_dirs': [
507 '../../..',
508 ],
509 'dependencies': [
[email protected]7cb9b9d2010-02-10 21:11:56510 '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
511 '<(DEPTH)/third_party/WebKit/JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf',
[email protected]80196bd2009-11-03 21:10:23512 ],
513 'msvs_disabled_warnings': [ 4996 ],
514 'mac_bundle_resources': [
515 '../npapi_layout_test_plugin/Info.r',
516 ],
517 'xcode_settings': {
[email protected]7cb9b9d2010-02-10 21:11:56518 'INFOPLIST_FILE': '<(DEPTH)/webkit/tools/npapi_layout_test_plugin/Info.plist',
[email protected]80196bd2009-11-03 21:10:23519 },
520 'conditions': [
521 ['OS!="win"', {
522 'sources!': [
[email protected]fe474ed2009-08-21 22:24:43523 '../npapi_layout_test_plugin/npapi_layout_test_plugin.def',
524 '../npapi_layout_test_plugin/npapi_layout_test_plugin.rc',
525 ],
[email protected]80196bd2009-11-03 21:10:23526 # TODO(bradnelson):
527 # This copy should really live here, as a post-build step,
528 # but it's currently being implemented via
529 # AdditionalDependencies, which tries to do the copy before
530 # the file is built...
531 #
532 }, { # OS == "win"
533 # # The old VS build would explicitly copy the .dll into the
534 # # plugins subdirectory like this. It might be possible to
535 # # use the 'product_dir' setting to build directly into
536 # # plugins/ (as is done on Linux), but we'd need to verify
537 # # that nothing breaks first.
538 # 'copies': [
539 # {
540 # 'destination': '<(PRODUCT_DIR)/plugins',
541 # 'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'],
542 # },
543 # ],
[email protected]7cb9b9d2010-02-10 21:11:56544 'variables': {
545 # This is not a relative pathname. Avoid pathname relativization
546 # by sticking it in a variable that isn't recognized as one
547 # containing pathnames, and by using the >(late) form of variable
548 # expansion.
549 'winmm_lib': 'winmm.lib',
550 },
[email protected]80196bd2009-11-03 21:10:23551 'link_settings': {
552 'libraries': [
[email protected]7cb9b9d2010-02-10 21:11:56553 '>(winmm_lib)',
554 ],
[email protected]fe474ed2009-08-21 22:24:43555 },
[email protected]80196bd2009-11-03 21:10:23556 }],
557 ['OS=="mac"', {
558 'product_name': 'TestNetscapePlugIn',
559 'product_extension': 'plugin',
560 'link_settings': {
561 'libraries': [
562 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
563 ],
564 },
565 }],
[email protected]17d50be2010-02-25 10:05:12566 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and (target_arch=="x64" or target_arch=="arm")', {
[email protected]80196bd2009-11-03 21:10:23567 # Shared libraries need -fPIC on x86-64
568 'cflags': ['-fPIC']
569 }],
570 ],
571 },
572 ],
573 'conditions': [
[email protected]08be8a72009-11-18 20:35:54574 ['target_arch!="x64" and target_arch!="arm"', {
[email protected]80196bd2009-11-03 21:10:23575 'targets': [
[email protected]7e32d6b2009-11-03 20:21:13576 {
[email protected]d20dd3d22010-03-26 18:54:29577 'target_name': 'npapi_test_common',
578 'type': 'static_library',
579 'dependencies': [
580 '<(DEPTH)/base/base.gyp:base',
581 '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
582 ],
583 'sources': [
584 '../../glue/plugins/test/npapi_constants.cc',
585 '../../glue/plugins/test/npapi_constants.h',
586 '../../glue/plugins/test/plugin_client.cc',
587 '../../glue/plugins/test/plugin_client.h',
588 '../../glue/plugins/test/plugin_test.cc',
589 '../../glue/plugins/test/plugin_test.h',
590 '../../glue/plugins/test/plugin_test_factory.h',
591 ],
592 },
593 {
[email protected]7e32d6b2009-11-03 20:21:13594 'target_name': 'npapi_test_plugin',
595 'type': 'loadable_module',
[email protected]7cb9b9d2010-02-10 21:11:56596 'variables': {
597 'chromium_code': 1,
598 },
[email protected]7e32d6b2009-11-03 20:21:13599 'mac_bundle': 1,
600 'msvs_guid': '0D04AEC1-6B68-492C-BCCF-808DFD69ABC6',
601 'dependencies': [
[email protected]7cb9b9d2010-02-10 21:11:56602 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
[email protected]d20dd3d22010-03-26 18:54:29603 'npapi_test_common',
[email protected]7e32d6b2009-11-03 20:21:13604 ],
605 'sources': [
[email protected]7e32d6b2009-11-03 20:21:13606 '../../glue/plugins/test/npapi_test.cc',
[email protected]d338629d2009-11-03 20:00:34607 '../../glue/plugins/test/npapi_test.def',
608 '../../glue/plugins/test/npapi_test.rc',
[email protected]7e32d6b2009-11-03 20:21:13609 '../../glue/plugins/test/plugin_arguments_test.cc',
610 '../../glue/plugins/test/plugin_arguments_test.h',
[email protected]7e32d6b2009-11-03 20:21:13611 '../../glue/plugins/test/plugin_create_instance_in_paint.cc',
612 '../../glue/plugins/test/plugin_create_instance_in_paint.h',
613 '../../glue/plugins/test/plugin_delete_plugin_in_stream_test.cc',
614 '../../glue/plugins/test/plugin_delete_plugin_in_stream_test.h',
615 '../../glue/plugins/test/plugin_get_javascript_url_test.cc',
616 '../../glue/plugins/test/plugin_get_javascript_url_test.h',
617 '../../glue/plugins/test/plugin_get_javascript_url2_test.cc',
618 '../../glue/plugins/test/plugin_get_javascript_url2_test.h',
619 '../../glue/plugins/test/plugin_geturl_test.cc',
620 '../../glue/plugins/test/plugin_geturl_test.h',
621 '../../glue/plugins/test/plugin_javascript_open_popup.cc',
622 '../../glue/plugins/test/plugin_javascript_open_popup.h',
623 '../../glue/plugins/test/plugin_new_fails_test.cc',
624 '../../glue/plugins/test/plugin_new_fails_test.h',
625 '../../glue/plugins/test/plugin_npobject_lifetime_test.cc',
626 '../../glue/plugins/test/plugin_npobject_lifetime_test.h',
627 '../../glue/plugins/test/plugin_npobject_proxy_test.cc',
628 '../../glue/plugins/test/plugin_npobject_proxy_test.h',
629 '../../glue/plugins/test/plugin_schedule_timer_test.cc',
630 '../../glue/plugins/test/plugin_schedule_timer_test.h',
631 '../../glue/plugins/test/plugin_thread_async_call_test.cc',
632 '../../glue/plugins/test/plugin_thread_async_call_test.h',
633 '../../glue/plugins/test/plugin_windowed_test.cc',
634 '../../glue/plugins/test/plugin_windowed_test.h',
635 '../../glue/plugins/test/plugin_private_test.cc',
636 '../../glue/plugins/test/plugin_private_test.h',
[email protected]d20dd3d22010-03-26 18:54:29637 '../../glue/plugins/test/plugin_test_factory.cc',
[email protected]7e32d6b2009-11-03 20:21:13638 '../../glue/plugins/test/plugin_window_size_test.cc',
639 '../../glue/plugins/test/plugin_window_size_test.h',
640 '../../glue/plugins/test/plugin_windowless_test.cc',
641 '../../glue/plugins/test/plugin_windowless_test.h',
642 '../../glue/plugins/test/resource.h',
[email protected]fe474ed2009-08-21 22:24:43643 ],
[email protected]7e32d6b2009-11-03 20:21:13644 'include_dirs': [
645 '../../..',
646 ],
647 'xcode_settings': {
[email protected]7cb9b9d2010-02-10 21:11:56648 'INFOPLIST_FILE': '<(DEPTH)/webkit/glue/plugins/test/Info.plist',
[email protected]fe474ed2009-08-21 22:24:43649 },
[email protected]7e32d6b2009-11-03 20:21:13650 'conditions': [
651 ['OS!="win"', {
652 'sources!': [
653 # TODO(port): Port these.
[email protected]80196bd2009-11-03 21:10:23654 # plugin_npobject_lifetime_test.cc has win32-isms
[email protected]7e32d6b2009-11-03 20:21:13655 # (HWND, CALLBACK).
656 '../../glue/plugins/test/plugin_npobject_lifetime_test.cc',
[email protected]dabbeb8b2009-12-18 17:46:36657 # The window APIs are necessarily platform-specific.
[email protected]7e32d6b2009-11-03 20:21:13658 '../../glue/plugins/test/plugin_window_size_test.cc',
659 '../../glue/plugins/test/plugin_windowed_test.cc',
[email protected]80196bd2009-11-03 21:10:23660 # Seems windows specific.
[email protected]7e32d6b2009-11-03 20:21:13661 '../../glue/plugins/test/plugin_create_instance_in_paint.cc',
662 '../../glue/plugins/test/plugin_create_instance_in_paint.h',
[email protected]80196bd2009-11-03 21:10:23663 # windows-specific resources
[email protected]7e32d6b2009-11-03 20:21:13664 '../../glue/plugins/test/npapi_test.def',
665 '../../glue/plugins/test/npapi_test.rc',
666 ],
667 }],
668 ['OS=="mac"', {
[email protected]2393d252009-12-15 19:44:15669 'product_extension': 'plugin',
[email protected]7e32d6b2009-11-03 20:21:13670 'link_settings': {
671 'libraries': [
672 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
673 ],
674 },
675 }],
[email protected]f5d01f22010-03-30 04:08:14676 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
[email protected]dabbeb8b2009-12-18 17:46:36677 'sources!': [
678 # Needs simple event record type porting
679 '../../glue/plugins/test/plugin_windowless_test.cc',
680 ],
681 }],
[email protected]17d50be2010-02-25 10:05:12682 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and (target_arch=="x64" or target_arch=="arm")', {
[email protected]80196bd2009-11-03 21:10:23683 # Shared libraries need -fPIC on x86-64
684 'cflags': ['-fPIC']
685 }],
[email protected]7e32d6b2009-11-03 20:21:13686 ],
687 },
[email protected]d20dd3d22010-03-26 18:54:29688 {
[email protected]705c3292010-03-29 16:28:40689 'target_name': 'npapi_pepper_test_plugin',
[email protected]d20dd3d22010-03-26 18:54:29690 'type': 'loadable_module',
691 'mac_bundle': 1,
[email protected]705c3292010-03-29 16:28:40692 'msvs_guid': '821F3B89-6AE1-4254-99CB-93C04D0A79BE',
[email protected]d20dd3d22010-03-26 18:54:29693 'dependencies': [
694 '<(DEPTH)/gpu/gpu.gyp:pgl',
695 '<(DEPTH)/third_party/gles2_book/gles2_book.gyp:stencil_test',
696 'npapi_test_common',
697 ],
698 'sources': [
[email protected]705c3292010-03-29 16:28:40699 '../npapi_pepper_test_plugin/main.cc',
700 '../npapi_pepper_test_plugin/pepper_3d_test.cc',
701 '../npapi_pepper_test_plugin/pepper_3d_test.h',
702 '../npapi_pepper_test_plugin/plugin.def',
703 '../npapi_pepper_test_plugin/plugin.rc',
704 '../npapi_pepper_test_plugin/test_factory.cc',
[email protected]d20dd3d22010-03-26 18:54:29705 ],
[email protected]1252b9a02010-03-31 17:42:35706 'conditions': [
707 ['OS!="win"', {
708 # windows-specific resources
709 'sources!': [
710 '../npapi_pepper_test_plugin/plugin.def',
711 '../npapi_pepper_test_plugin/plugin.rc',
712 ],
713 }],
714 ],
[email protected]d20dd3d22010-03-26 18:54:29715 'xcode_settings': {
[email protected]705c3292010-03-29 16:28:40716 'INFOPLIST_FILE': '<(DEPTH)/webkit/tools/npapi_pepper_test_plugin/Info.plist',
[email protected]d20dd3d22010-03-26 18:54:29717 },
718 },
[email protected]fe474ed2009-08-21 22:24:43719 ],
[email protected]7e32d6b2009-11-03 20:21:13720 }],
[email protected]17d50be2010-02-25 10:05:12721 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
[email protected]40c3f522009-03-06 21:33:46722 'targets': [
723 {
724 'target_name': 'test_shell_resources',
725 'type': 'none',
[email protected]bc7510e82009-05-01 17:02:42726 'actions': [
[email protected]40c3f522009-03-06 21:33:46727 {
[email protected]bc7510e82009-05-01 17:02:42728 'action_name': 'test_shell_resources',
729 'variables': {
730 'grit_path': '../../../tools/grit/grit.py',
731 'input_path': './test_shell_resources.grd',
732 'out_dir': '<(SHARED_INTERMEDIATE_DIR)/test_shell',
733 },
[email protected]40c3f522009-03-06 21:33:46734 'inputs': [
[email protected]bc7510e82009-05-01 17:02:42735 '<(input_path)',
[email protected]b22189f2010-03-23 22:07:52736 'resources/linux-fontconfig-config',
[email protected]40c3f522009-03-06 21:33:46737 ],
738 'outputs': [
[email protected]bc7510e82009-05-01 17:02:42739 '<(out_dir)/grit/test_shell_resources.h',
740 '<(out_dir)/test_shell_resources.pak',
[email protected]40c3f522009-03-06 21:33:46741 ],
[email protected]bc7510e82009-05-01 17:02:42742 'action': ['python', '<(grit_path)', '-i', '<(input_path)', 'build', '-o', '<(out_dir)'],
743 'message': 'Generating resources from <(input_path)',
[email protected]40c3f522009-03-06 21:33:46744 },
745 ],
746 'direct_dependent_settings': {
747 'include_dirs': [
[email protected]ef36c74c2009-03-11 13:32:22748 '<(SHARED_INTERMEDIATE_DIR)/test_shell',
[email protected]40c3f522009-03-06 21:33:46749 ],
750 },
751 },
752 ],
753 }],
[email protected]584adc22009-08-04 23:17:44754 ['OS=="win"', {
755 'targets': [
756 {
[email protected]04d2c302009-10-26 21:49:10757 # Helper application that disables ClearType during the
[email protected]584adc22009-08-04 23:17:44758 # running of the layout tests
759 'target_name': 'layout_test_helper',
760 'type': 'executable',
[email protected]7cb9b9d2010-02-10 21:11:56761 'variables': {
762 'chromium_code': 1,
763 },
[email protected]584adc22009-08-04 23:17:44764 'sources': [
765 'win/layout_test_helper.cc',
766 ],
767 },
768 ],
769 }],
770 ['OS=="mac"', {
[email protected]e10de002009-06-25 23:58:13771 'targets': [
772 {
773 # Helper application that manages the color sync profile on mac
774 # for the test shells run by the layout tests.
775 'target_name': 'layout_test_helper',
776 'type': 'executable',
[email protected]7cb9b9d2010-02-10 21:11:56777 'variables': {
778 'chromium_code': 1,
779 },
[email protected]e10de002009-06-25 23:58:13780 'sources': [
781 'mac/layout_test_helper.mm',
782 ],
783 'link_settings': {
784 'libraries': [
785 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
786 ],
787 },
788 },
[email protected]584adc22009-08-04 23:17:44789 ],
[email protected]e10de002009-06-25 23:58:13790 }],
[email protected]40c3f522009-03-06 21:33:46791 ],
[email protected]2f80c312009-02-25 21:26:55792}
[email protected]f5c990c2009-10-06 03:02:38793
794# Local Variables:
795# tab-width:2
796# indent-tabs-mode:nil
797# End:
798# vim: set expandtab tabstop=2 shiftwidth=2: