OLD | NEW |
| (Empty) |
1 # Copyright (c) 2009 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. | |
4 | |
5 { | |
6 'variables': { | |
7 'chromium_code': 1, | |
8 'test_shell_windows_resource_files': [ | |
9 'resources/test_shell.rc', | |
10 'resources/pan_east.cur', | |
11 'resources/pan_middle.cur', | |
12 'resources/pan_north.cur', | |
13 'resources/pan_north_east.cur', | |
14 'resources/pan_north_west.cur', | |
15 'resources/pan_south.cur', | |
16 'resources/pan_south_east.cur', | |
17 'resources/pan_south_west.cur', | |
18 'resources/pan_west.cur', | |
19 'resources/small.ico', | |
20 'resources/test_shell.ico', | |
21 'resource.h', | |
22 ], | |
23 }, | |
24 'targets': [ | |
25 { | |
26 'target_name': 'test_shell_common', | |
27 'type': '<(library)', | |
28 'dependencies': [ | |
29 '../../../app/app.gyp:app_base', | |
30 '../../../base/base.gyp:base', | |
31 '../../../base/base.gyp:base_i18n', | |
32 '../../../media/media.gyp:media', | |
33 '../../../net/net.gyp:net', | |
34 '../../../skia/skia.gyp:skia', | |
35 '../../../testing/gmock.gyp:gmock', | |
36 '../../../testing/gtest.gyp:gtest', | |
37 '../../../third_party/npapi/npapi.gyp:npapi', | |
38 '../../../third_party/WebKit/WebCore/WebCore.gyp/WebCore.gyp:webcore', | |
39 '../../../third_party/WebKit/WebKit/chromium/WebKit.gyp:webkit', | |
40 '../../webkit.gyp:appcache', | |
41 '../../webkit.gyp:database', | |
42 '../../webkit.gyp:glue', | |
43 '../../webkit.gyp:inspector_resources', | |
44 'npapi_layout_test_plugin', | |
45 ], | |
46 'msvs_guid': '77C32787-1B96-CB84-B905-7F170629F0AC', | |
47 'sources': [ | |
48 'mac/DumpRenderTreePasteboard.h', | |
49 'mac/DumpRenderTreePasteboard.m', | |
50 'mac/test_shell_webview.h', | |
51 'mac/test_shell_webview.mm', | |
52 'mac/test_webview_delegate.mm', | |
53 'mac/webview_host.mm', | |
54 'mac/webwidget_host.mm', | |
55 'accessibility_controller.cc', | |
56 'accessibility_controller.h', | |
57 'accessibility_ui_element.cc', | |
58 'accessibility_ui_element.h', | |
59 'drag_delegate.cc', | |
60 'drag_delegate.h', | |
61 'drop_delegate.cc', | |
62 'drop_delegate.h', | |
63 'event_sending_controller.cc', | |
64 'event_sending_controller.h', | |
65 'foreground_helper.h', | |
66 'layout_test_controller.cc', | |
67 'layout_test_controller.h', | |
68 'mock_spellcheck.cc', | |
69 'mock_spellcheck.h', | |
70 'mock_webclipboard_impl.cc', | |
71 'mock_webclipboard_impl.h', | |
72 'plain_text_controller.cc', | |
73 'plain_text_controller.h', | |
74 'resource.h', | |
75 'simple_appcache_system.cc', | |
76 'simple_appcache_system.h', | |
77 'simple_clipboard_impl.cc', | |
78 'simple_database_system.cc', | |
79 'simple_database_system.h', | |
80 'simple_resource_loader_bridge.cc', | |
81 'simple_resource_loader_bridge.h', | |
82 'simple_socket_stream_bridge.cc', | |
83 'simple_socket_stream_bridge.h', | |
84 'test_navigation_controller.cc', | |
85 'test_navigation_controller.h', | |
86 'test_shell.cc', | |
87 'test_shell.h', | |
88 'test_shell_devtools_agent.cc', | |
89 'test_shell_devtools_agent.h', | |
90 'test_shell_devtools_callargs.cc', | |
91 'test_shell_devtools_callargs.h', | |
92 'test_shell_devtools_client.cc', | |
93 'test_shell_devtools_client.h', | |
94 'test_shell_gtk.cc', | |
95 'test_shell_x11.cc', | |
96 'test_shell_mac.mm', | |
97 'test_shell_platform_delegate.h', | |
98 'test_shell_platform_delegate_gtk.cc', | |
99 'test_shell_platform_delegate_mac.mm', | |
100 'test_shell_platform_delegate_win.cc', | |
101 'test_shell_request_context.cc', | |
102 'test_shell_request_context.h', | |
103 'test_shell_switches.cc', | |
104 'test_shell_switches.h', | |
105 'test_shell_win.cc', | |
106 'test_shell_webkit_init.h', | |
107 'test_shell_webthemecontrol.h', | |
108 'test_shell_webthemecontrol.cc', | |
109 'test_shell_webthemeengine.h', | |
110 'test_shell_webthemeengine.cc', | |
111 'test_web_worker.h', | |
112 'test_webview_delegate.cc', | |
113 'test_webview_delegate.h', | |
114 'test_webview_delegate_gtk.cc', | |
115 'test_webview_delegate_win.cc', | |
116 'text_input_controller.cc', | |
117 'text_input_controller.h', | |
118 'webview_host.h', | |
119 'webview_host_gtk.cc', | |
120 'webview_host_win.cc', | |
121 'webwidget_host.h', | |
122 'webwidget_host_gtk.cc', | |
123 'webwidget_host_win.cc', | |
124 ], | |
125 'export_dependent_settings': [ | |
126 '../../../base/base.gyp:base', | |
127 '../../../net/net.gyp:net', | |
128 '../../../third_party/WebKit/WebCore/WebCore.gyp/WebCore.gyp:webcore', | |
129 '../../../third_party/WebKit/WebKit/chromium/WebKit.gyp:webkit', | |
130 '../../webkit.gyp:glue', | |
131 ], | |
132 'conditions': [ | |
133 # http://code.google.com/p/chromium/issues/detail?id=18337 | |
134 ['target_arch!="x64" and target_arch!="arm"', { | |
135 'dependencies': [ | |
136 'npapi_test_plugin', | |
137 ], | |
138 }], | |
139 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | |
140 'dependencies': [ | |
141 'test_shell_resources', | |
142 '../../../build/linux/system.gyp:gtk', | |
143 '../../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | |
144 ], | |
145 # for: test_shell_gtk.cc | |
146 'cflags': ['-Wno-multichar'], | |
147 }, { # else: OS!=linux | |
148 'sources/': [ | |
149 ['exclude', '_gtk\\.cc$'], | |
150 ['exclude', '_x11\\.cc$'], | |
151 ], | |
152 }], | |
153 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | |
154 # See below TODO in the Windows branch. | |
155 'copies': [ | |
156 { | |
157 'destination': '<(PRODUCT_DIR)/plugins', | |
158 'files': ['<(PRODUCT_DIR)/libnpapi_layout_test_plugin.so'], | |
159 }, | |
160 ], | |
161 }], | |
162 ['OS!="mac"', { | |
163 'sources/': [ | |
164 ['exclude', 'mac/[^/]*\\.(cc|mm?)$'], | |
165 ['exclude', '_mac\\.(cc|mm?)$'], | |
166 ] | |
167 }], | |
168 ['OS=="win"', { | |
169 'msvs_disabled_warnings': [ 4800 ], | |
170 'link_settings': { | |
171 'libraries': [ | |
172 '-lcomctl32.lib', | |
173 ], | |
174 }, | |
175 'include_dirs': [ | |
176 '../../../chrome/third_party/wtl/include', | |
177 '.', | |
178 ], | |
179 'dependencies': [ | |
180 '../../../breakpad/breakpad.gyp:breakpad_handler', | |
181 '../../default_plugin/default_plugin.gyp:default_plugin', | |
182 ], | |
183 # TODO(bradnelson): | |
184 # This should really be done in the 'npapi_layout_test_plugin' | |
185 # target, but the current VS generator handles 'copies' | |
186 # settings as AdditionalDependencies, which means that | |
187 # when it's over there, it tries to do the copy *before* | |
188 # the file is built, instead of after. We work around this | |
189 # by attaching the copy here, since it depends on that | |
190 # target. | |
191 'copies': [ | |
192 { | |
193 'destination': '<(PRODUCT_DIR)/plugins', | |
194 'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'], | |
195 }, | |
196 ], | |
197 }, { # else: OS!=win | |
198 'sources/': [ | |
199 ['exclude', '_win\\.cc$'], | |
200 ['exclude', '_webtheme(control|engine)\.(cc|h)$'], | |
201 ], | |
202 'sources!': [ | |
203 'drag_delegate.cc', | |
204 'drop_delegate.cc', | |
205 ], | |
206 }], | |
207 ], | |
208 }, | |
209 { | |
210 'target_name': 'test_shell_pak', | |
211 'type': 'none', | |
212 'variables': { | |
213 'repack_path': '../../../tools/data_pack/repack.py', | |
214 'pak_path': '<(INTERMEDIATE_DIR)/repack/test_shell.pak', | |
215 }, | |
216 'conditions': [ | |
217 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | |
218 'actions': [ | |
219 { | |
220 'action_name': 'test_shell_repack', | |
221 'variables': { | |
222 'pak_inputs': [ | |
223 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', | |
224 '<(SHARED_INTERMEDIATE_DIR)/test_shell/test_shell_resources.pa
k', | |
225 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak', | |
226 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak', | |
227 ], | |
228 }, | |
229 'inputs': [ | |
230 '<(repack_path)', | |
231 '<@(pak_inputs)', | |
232 ], | |
233 'outputs': [ | |
234 '<(pak_path)', | |
235 ], | |
236 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], | |
237 }, | |
238 ], | |
239 'copies': [ | |
240 { | |
241 'destination': '<(PRODUCT_DIR)', | |
242 'files': ['<(pak_path)'], | |
243 }, | |
244 ], | |
245 }], | |
246 ], | |
247 }, | |
248 { | |
249 'target_name': 'test_shell', | |
250 'type': 'executable', | |
251 'mac_bundle': 1, | |
252 'msvs_guid': 'FA39524D-3067-4141-888D-28A86C66F2B9', | |
253 'dependencies': [ | |
254 'test_shell_common', | |
255 '../../../tools/imagediff/image_diff.gyp:image_diff', | |
256 ], | |
257 'defines': [ | |
258 # Technically not a unit test but require functions available only to | |
259 # unit tests. | |
260 'UNIT_TEST' | |
261 ], | |
262 'sources': [ | |
263 'test_shell_main.cc', | |
264 ], | |
265 'mac_bundle_resources': [ | |
266 '../../data/test_shell/', | |
267 'mac/English.lproj/InfoPlist.strings', | |
268 'mac/English.lproj/MainMenu.nib', | |
269 'mac/Info.plist', | |
270 'mac/test_shell.icns', | |
271 'resources/AHEM____.TTF', | |
272 ], | |
273 'mac_bundle_resources!': [ | |
274 # TODO(mark): Come up with a fancier way to do this (mac_info_plist?) | |
275 # that automatically sets the correct INFOPLIST_FILE setting and adds | |
276 # the file to a source group. | |
277 'mac/Info.plist', | |
278 ], | |
279 'xcode_settings': { | |
280 'INFOPLIST_FILE': 'mac/Info.plist', | |
281 }, | |
282 'conditions': [ | |
283 ['OS=="win"', { | |
284 'dependencies': ['layout_test_helper'], | |
285 'resource_include_dirs': [ | |
286 '<(SHARED_INTERMEDIATE_DIR)/webkit', | |
287 ], | |
288 'sources': [ | |
289 '<@(test_shell_windows_resource_files)', | |
290 # TODO: It would be nice to have these pulled in | |
291 # automatically from direct_dependent_settings in | |
292 # their various targets (net.gyp:net_resources, etc.), | |
293 # but that causes errors in other targets when | |
294 # resulting .res files get referenced multiple times. | |
295 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc', | |
296 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc', | |
297 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc', | |
298 ], | |
299 }], | |
300 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | |
301 'conditions': [ | |
302 ['linux_use_tcmalloc==1', { | |
303 'dependencies': [ | |
304 '../../../base/allocator/allocator.gyp:allocator', | |
305 ], | |
306 }], | |
307 ], | |
308 'dependencies': [ | |
309 '../../../build/linux/system.gyp:gtk', | |
310 'test_shell_resources', | |
311 'test_shell_pak', | |
312 ], | |
313 }], | |
314 ['OS=="mac"', { | |
315 'product_name': 'TestShell', | |
316 'dependencies': ['layout_test_helper'], | |
317 'variables': { | |
318 'repack_path': '../../../tools/data_pack/repack.py', | |
319 }, | |
320 'actions': [ | |
321 { | |
322 # TODO(mark): Make this work with more languages than the | |
323 # hardcoded en-US. | |
324 'action_name': 'repack_locale', | |
325 'variables': { | |
326 'pak_inputs': [ | |
327 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak', | |
328 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak', | |
329 ], | |
330 }, | |
331 'inputs': [ | |
332 '<(repack_path)', | |
333 '<@(pak_inputs)', | |
334 ], | |
335 'outputs': [ | |
336 '<(INTERMEDIATE_DIR)/repack/test_shell.pak', | |
337 ], | |
338 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inp
uts)'], | |
339 'process_outputs_as_mac_bundle_resources': 1, | |
340 }, | |
341 ], | |
342 'copies': [ | |
343 { | |
344 'destination': '<(PRODUCT_DIR)/TestShell.app/Contents/PlugIns/', | |
345 'files': [ | |
346 '<(PRODUCT_DIR)/TestNetscapePlugIn.plugin/', | |
347 ], | |
348 }, | |
349 # TODO(ajwong): This, and the parallel chromium stanza below | |
350 # really should find a way to share file paths with | |
351 # ffmpeg.gyp so they don't diverge. (BUG=23602) | |
352 { | |
353 'destination': '<(PRODUCT_DIR)/TestShell.app/Contents/MacOS/', | |
354 'files': [ | |
355 '<(PRODUCT_DIR)/libffmpegsumo.dylib', | |
356 ], | |
357 }, | |
358 ], | |
359 }, { # OS != "mac" | |
360 'dependencies': [ | |
361 '../../../net/net.gyp:net_resources', | |
362 '../../webkit.gyp:webkit_resources', | |
363 '../../webkit.gyp:webkit_strings', | |
364 ] | |
365 }], | |
366 ], | |
367 }, | |
368 { | |
369 'target_name': 'test_shell_tests', | |
370 'type': 'executable', | |
371 'msvs_guid': 'E6766F81-1FCD-4CD7-BC16-E36964A14867', | |
372 'dependencies': [ | |
373 'test_shell_common', | |
374 '../../../skia/skia.gyp:skia', | |
375 '../../../testing/gmock.gyp:gmock', | |
376 '../../../testing/gtest.gyp:gtest', | |
377 ], | |
378 'sources': [ | |
379 '../../../skia/ext/convolver_unittest.cc', | |
380 '../../../skia/ext/image_operations_unittest.cc', | |
381 '../../../skia/ext/platform_canvas_unittest.cc', | |
382 '../../../skia/ext/vector_canvas_unittest.cc', | |
383 '../../appcache/manifest_parser_unittest.cc', | |
384 '../../appcache/appcache_unittest.cc', | |
385 '../../appcache/appcache_database_unittest.cc', | |
386 '../../appcache/appcache_group_unittest.cc', | |
387 '../../appcache/appcache_host_unittest.cc', | |
388 '../../appcache/appcache_request_handler_unittest.cc', | |
389 '../../appcache/appcache_response_unittest.cc', | |
390 '../../appcache/appcache_storage_unittest.cc', | |
391 '../../appcache/appcache_storage_impl_unittest.cc', | |
392 '../../appcache/appcache_update_job_unittest.cc', | |
393 '../../appcache/appcache_url_request_job_unittest.cc', | |
394 '../../appcache/mock_appcache_service.h', | |
395 '../../appcache/mock_appcache_storage_unittest.cc', | |
396 '../../database/databases_table_unittest.cc', | |
397 '../../database/database_tracker_unittest.cc', | |
398 '../../database/database_util_unittest.cc', | |
399 '../../database/quota_table_unittest.cc', | |
400 '../../glue/bookmarklet_unittest.cc', | |
401 '../../glue/context_menu_unittest.cc', | |
402 '../../glue/cpp_bound_class_unittest.cc', | |
403 '../../glue/cpp_variant_unittest.cc', | |
404 '../../glue/dom_operations_unittest.cc', | |
405 '../../glue/dom_serializer_unittest.cc', | |
406 '../../glue/glue_serialize_unittest.cc', | |
407 '../../glue/iframe_redirect_unittest.cc', | |
408 '../../glue/media/buffered_data_source_unittest.cc', | |
409 '../../glue/media/media_resource_loader_bridge_factory_unittest.cc', | |
410 '../../glue/media/mock_media_resource_loader_bridge_factory.h', | |
411 '../../glue/media/simple_data_source_unittest.cc', | |
412 '../../glue/mimetype_unittest.cc', | |
413 '../../glue/mock_resource_loader_bridge.h', | |
414 '../../glue/multipart_response_delegate_unittest.cc', | |
415 '../../glue/plugins/plugin_lib_unittest.cc', | |
416 '../../glue/regular_expression_unittest.cc', | |
417 '../../glue/resource_fetcher_unittest.cc', | |
418 '../../glue/unittest_test_server.h', | |
419 '../../glue/webcursor_unittest.cc', | |
420 '../../glue/webframe_unittest.cc', | |
421 '../../glue/webkit_glue_unittest.cc', | |
422 '../../glue/webpasswordautocompletelistener_unittest.cc', | |
423 '../../glue/webplugin_impl_unittest.cc', | |
424 '../../glue/webview_unittest.cc', | |
425 '../webcore_unit_tests/BMPImageDecoder_unittest.cpp', | |
426 '../webcore_unit_tests/ICOImageDecoder_unittest.cpp', | |
427 'event_listener_unittest.cc', | |
428 'image_decoder_unittest.cc', | |
429 'image_decoder_unittest.h', | |
430 'layout_test_controller_unittest.cc', | |
431 'listener_leak_test.cc', | |
432 'media_leak_test.cc', | |
433 'mock_spellcheck_unittest.cc', | |
434 'node_leak_test.cc', | |
435 'plugin_tests.cc', | |
436 'run_all_tests.cc', | |
437 'test_shell_test.cc', | |
438 'test_shell_test.h', | |
439 'text_input_controller_unittest.cc', | |
440 ], | |
441 'conditions': [ | |
442 ['OS=="win"', { | |
443 'resource_include_dirs': [ | |
444 '<(SHARED_INTERMEDIATE_DIR)/webkit', | |
445 ], | |
446 'sources': [ '<@(test_shell_windows_resource_files)' ], | |
447 }], | |
448 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | |
449 'dependencies': [ | |
450 'test_shell_pak', | |
451 '../../../build/linux/system.gyp:gtk', | |
452 ], | |
453 'sources!': [ | |
454 # TODO(port) | |
455 '../../../skia/ext/platform_canvas_unittest.cc', | |
456 ], | |
457 }], | |
458 ['OS=="mac"', { | |
459 # mac tests load the resources from the built test_shell beside the | |
460 # test | |
461 'dependencies': ['test_shell'], | |
462 'sources!': [ | |
463 # Disable the image decoder tests because we use CoreGraphics | |
464 # code on mac and these tests are for the Skia image-decoders. | |
465 '../webcore_unit_tests/BMPImageDecoder_unittest.cpp', | |
466 '../webcore_unit_tests/ICOImageDecoder_unittest.cpp', | |
467 '../webcore_unit_tests/XBMImageDecoder_unittest.cpp', | |
468 'image_decoder_unittest.cc', | |
469 'image_decoder_unittest.h', | |
470 ], | |
471 'sources': [ | |
472 '../../../skia/ext/skia_utils_mac_unittest.mm', | |
473 ], | |
474 }], | |
475 ['OS=="win"', { | |
476 'msvs_disabled_warnings': [ 4800 ], | |
477 }, { # else: OS!=win | |
478 'sources!': [ | |
479 '../../../skia/ext/vector_canvas_unittest.cc', | |
480 ], | |
481 }], | |
482 ['OS=="linux" or OS=="freebsd"', { | |
483 'conditions': [ | |
484 ['linux_use_tcmalloc==1', { | |
485 'dependencies': [ | |
486 '../../../base/allocator/allocator.gyp:allocator', | |
487 ], | |
488 }], | |
489 ], | |
490 }], | |
491 ], | |
492 }, | |
493 { | |
494 'target_name': 'npapi_layout_test_plugin', | |
495 'type': 'loadable_module', | |
496 'mac_bundle': 1, | |
497 'msvs_guid': 'BE6D5659-A8D5-4890-A42C-090DD10EF62C', | |
498 'sources': [ | |
499 '../npapi_layout_test_plugin/PluginObject.cpp', | |
500 '../npapi_layout_test_plugin/TestObject.cpp', | |
501 '../npapi_layout_test_plugin/main.cpp', | |
502 '../npapi_layout_test_plugin/npapi_layout_test_plugin.def', | |
503 '../npapi_layout_test_plugin/npapi_layout_test_plugin.rc', | |
504 ], | |
505 'include_dirs': [ | |
506 '../../..', | |
507 ], | |
508 'dependencies': [ | |
509 '../../../third_party/npapi/npapi.gyp:npapi', | |
510 '../../../third_party/WebKit/JavaScriptCore/JavaScriptCore.gyp/JavaScrip
tCore.gyp:wtf', | |
511 ], | |
512 'msvs_disabled_warnings': [ 4996 ], | |
513 'mac_bundle_resources': [ | |
514 '../npapi_layout_test_plugin/Info.r', | |
515 ], | |
516 'xcode_settings': { | |
517 'INFOPLIST_FILE': '../npapi_layout_test_plugin/Info.plist', | |
518 }, | |
519 'conditions': [ | |
520 ['OS!="win"', { | |
521 'sources!': [ | |
522 '../npapi_layout_test_plugin/npapi_layout_test_plugin.def', | |
523 '../npapi_layout_test_plugin/npapi_layout_test_plugin.rc', | |
524 ], | |
525 # TODO(bradnelson): | |
526 # This copy should really live here, as a post-build step, | |
527 # but it's currently being implemented via | |
528 # AdditionalDependencies, which tries to do the copy before | |
529 # the file is built... | |
530 # | |
531 }, { # OS == "win" | |
532 # # The old VS build would explicitly copy the .dll into the | |
533 # # plugins subdirectory like this. It might be possible to | |
534 # # use the 'product_dir' setting to build directly into | |
535 # # plugins/ (as is done on Linux), but we'd need to verify | |
536 # # that nothing breaks first. | |
537 # 'copies': [ | |
538 # { | |
539 # 'destination': '<(PRODUCT_DIR)/plugins', | |
540 # 'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'], | |
541 # }, | |
542 # ], | |
543 'link_settings': { | |
544 'libraries': [ | |
545 "winmm.lib", | |
546 ], | |
547 }, | |
548 }], | |
549 ['OS=="mac"', { | |
550 'product_name': 'TestNetscapePlugIn', | |
551 'product_extension': 'plugin', | |
552 'link_settings': { | |
553 'libraries': [ | |
554 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', | |
555 ], | |
556 }, | |
557 }], | |
558 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd") and (target_arch=="x64
" or target_arch=="arm")', { | |
559 # Shared libraries need -fPIC on x86-64 | |
560 'cflags': ['-fPIC'] | |
561 }], | |
562 ], | |
563 }, | |
564 ], | |
565 'conditions': [ | |
566 ['target_arch!="x64" and target_arch!="arm"', { | |
567 'targets': [ | |
568 { | |
569 'target_name': 'npapi_test_plugin', | |
570 'type': 'loadable_module', | |
571 'mac_bundle': 1, | |
572 'msvs_guid': '0D04AEC1-6B68-492C-BCCF-808DFD69ABC6', | |
573 'dependencies': [ | |
574 '../../../base/base.gyp:base', | |
575 '../../../third_party/icu/icu.gyp:icuuc', | |
576 '../../../third_party/npapi/npapi.gyp:npapi', | |
577 ], | |
578 'sources': [ | |
579 '../../glue/plugins/test/npapi_constants.cc', | |
580 '../../glue/plugins/test/npapi_constants.h', | |
581 '../../glue/plugins/test/npapi_test.cc', | |
582 '../../glue/plugins/test/npapi_test.def', | |
583 '../../glue/plugins/test/npapi_test.rc', | |
584 '../../glue/plugins/test/plugin_arguments_test.cc', | |
585 '../../glue/plugins/test/plugin_arguments_test.h', | |
586 '../../glue/plugins/test/plugin_client.cc', | |
587 '../../glue/plugins/test/plugin_client.h', | |
588 '../../glue/plugins/test/plugin_create_instance_in_paint.cc', | |
589 '../../glue/plugins/test/plugin_create_instance_in_paint.h', | |
590 '../../glue/plugins/test/plugin_delete_plugin_in_stream_test.cc', | |
591 '../../glue/plugins/test/plugin_delete_plugin_in_stream_test.h', | |
592 '../../glue/plugins/test/plugin_get_javascript_url_test.cc', | |
593 '../../glue/plugins/test/plugin_get_javascript_url_test.h', | |
594 '../../glue/plugins/test/plugin_get_javascript_url2_test.cc', | |
595 '../../glue/plugins/test/plugin_get_javascript_url2_test.h', | |
596 '../../glue/plugins/test/plugin_geturl_test.cc', | |
597 '../../glue/plugins/test/plugin_geturl_test.h', | |
598 '../../glue/plugins/test/plugin_javascript_open_popup.cc', | |
599 '../../glue/plugins/test/plugin_javascript_open_popup.h', | |
600 '../../glue/plugins/test/plugin_new_fails_test.cc', | |
601 '../../glue/plugins/test/plugin_new_fails_test.h', | |
602 '../../glue/plugins/test/plugin_npobject_lifetime_test.cc', | |
603 '../../glue/plugins/test/plugin_npobject_lifetime_test.h', | |
604 '../../glue/plugins/test/plugin_npobject_proxy_test.cc', | |
605 '../../glue/plugins/test/plugin_npobject_proxy_test.h', | |
606 '../../glue/plugins/test/plugin_schedule_timer_test.cc', | |
607 '../../glue/plugins/test/plugin_schedule_timer_test.h', | |
608 '../../glue/plugins/test/plugin_thread_async_call_test.cc', | |
609 '../../glue/plugins/test/plugin_thread_async_call_test.h', | |
610 '../../glue/plugins/test/plugin_windowed_test.cc', | |
611 '../../glue/plugins/test/plugin_windowed_test.h', | |
612 '../../glue/plugins/test/plugin_private_test.cc', | |
613 '../../glue/plugins/test/plugin_private_test.h', | |
614 '../../glue/plugins/test/plugin_test.cc', | |
615 '../../glue/plugins/test/plugin_test.h', | |
616 '../../glue/plugins/test/plugin_window_size_test.cc', | |
617 '../../glue/plugins/test/plugin_window_size_test.h', | |
618 '../../glue/plugins/test/plugin_windowless_test.cc', | |
619 '../../glue/plugins/test/plugin_windowless_test.h', | |
620 '../../glue/plugins/test/resource.h', | |
621 ], | |
622 'include_dirs': [ | |
623 '../../..', | |
624 ], | |
625 'xcode_settings': { | |
626 'INFOPLIST_FILE': '../../glue/plugins/test/Info.plist', | |
627 }, | |
628 'conditions': [ | |
629 ['OS!="win"', { | |
630 'sources!': [ | |
631 # TODO(port): Port these. | |
632 # plugin_npobject_lifetime_test.cc has win32-isms | |
633 # (HWND, CALLBACK). | |
634 '../../glue/plugins/test/plugin_npobject_lifetime_test.cc', | |
635 # The window APIs are necessarily platform-specific. | |
636 '../../glue/plugins/test/plugin_window_size_test.cc', | |
637 '../../glue/plugins/test/plugin_windowed_test.cc', | |
638 # Seems windows specific. | |
639 '../../glue/plugins/test/plugin_create_instance_in_paint.cc', | |
640 '../../glue/plugins/test/plugin_create_instance_in_paint.h', | |
641 # windows-specific resources | |
642 '../../glue/plugins/test/npapi_test.def', | |
643 '../../glue/plugins/test/npapi_test.rc', | |
644 ], | |
645 }], | |
646 ['OS=="mac"', { | |
647 'product_extension': 'plugin', | |
648 'link_settings': { | |
649 'libraries': [ | |
650 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', | |
651 ], | |
652 }, | |
653 }], | |
654 ['OS=="linux"', { | |
655 'sources!': [ | |
656 # Needs simple event record type porting | |
657 '../../glue/plugins/test/plugin_windowless_test.cc', | |
658 ], | |
659 }], | |
660 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd") and (target_arch==
"x64" or target_arch=="arm")', { | |
661 # Shared libraries need -fPIC on x86-64 | |
662 'cflags': ['-fPIC'] | |
663 }], | |
664 ], | |
665 }, | |
666 ], | |
667 }], | |
668 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | |
669 'targets': [ | |
670 { | |
671 'target_name': 'test_shell_resources', | |
672 'type': 'none', | |
673 'actions': [ | |
674 { | |
675 'action_name': 'test_shell_resources', | |
676 'variables': { | |
677 'grit_path': '../../../tools/grit/grit.py', | |
678 'input_path': './test_shell_resources.grd', | |
679 'out_dir': '<(SHARED_INTERMEDIATE_DIR)/test_shell', | |
680 }, | |
681 'inputs': [ | |
682 '<(input_path)', | |
683 ], | |
684 'outputs': [ | |
685 '<(out_dir)/grit/test_shell_resources.h', | |
686 '<(out_dir)/test_shell_resources.pak', | |
687 ], | |
688 'action': ['python', '<(grit_path)', '-i', '<(input_path)', 'build
', '-o', '<(out_dir)'], | |
689 'message': 'Generating resources from <(input_path)', | |
690 }, | |
691 ], | |
692 'direct_dependent_settings': { | |
693 'include_dirs': [ | |
694 '<(SHARED_INTERMEDIATE_DIR)/test_shell', | |
695 ], | |
696 }, | |
697 }, | |
698 ], | |
699 }], | |
700 ['OS=="win"', { | |
701 'targets': [ | |
702 { | |
703 # Helper application that disables ClearType during the | |
704 # running of the layout tests | |
705 'target_name': 'layout_test_helper', | |
706 'type': 'executable', | |
707 'sources': [ | |
708 'win/layout_test_helper.cc', | |
709 ], | |
710 }, | |
711 ], | |
712 }], | |
713 ['OS=="mac"', { | |
714 'targets': [ | |
715 { | |
716 # Helper application that manages the color sync profile on mac | |
717 # for the test shells run by the layout tests. | |
718 'target_name': 'layout_test_helper', | |
719 'type': 'executable', | |
720 'sources': [ | |
721 'mac/layout_test_helper.mm', | |
722 ], | |
723 'link_settings': { | |
724 'libraries': [ | |
725 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', | |
726 ], | |
727 }, | |
728 }, | |
729 ], | |
730 }], | |
731 ], | |
732 } | |
733 | |
734 # Local Variables: | |
735 # tab-width:2 | |
736 # indent-tabs-mode:nil | |
737 # End: | |
738 # vim: set expandtab tabstop=2 shiftwidth=2: | |
OLD | NEW |