Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: webkit/tools/test_shell/test_shell.gypi

Issue 602006: Remove webkit.gyp:pull_in_test_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/tools/test_shell/test_shell.gyp ('k') | webkit/webkit.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 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': { 6 'variables': {
7 'chromium_code': 1,
8 'test_shell_windows_resource_files': [ 7 'test_shell_windows_resource_files': [
9 'resources/test_shell.rc', 8 'resources/test_shell.rc',
10 'resources/pan_east.cur', 9 'resources/pan_east.cur',
11 'resources/pan_middle.cur', 10 'resources/pan_middle.cur',
12 'resources/pan_north.cur', 11 'resources/pan_north.cur',
13 'resources/pan_north_east.cur', 12 'resources/pan_north_east.cur',
14 'resources/pan_north_west.cur', 13 'resources/pan_north_west.cur',
15 'resources/pan_south.cur', 14 'resources/pan_south.cur',
16 'resources/pan_south_east.cur', 15 'resources/pan_south_east.cur',
17 'resources/pan_south_west.cur', 16 'resources/pan_south_west.cur',
18 'resources/pan_west.cur', 17 'resources/pan_west.cur',
19 'resources/small.ico', 18 'resources/small.ico',
20 'resources/test_shell.ico', 19 'resources/test_shell.ico',
21 'resource.h', 20 'resource.h',
22 ], 21 ],
23 }, 22 },
24 'targets': [ 23 'targets': [
25 { 24 {
26 'target_name': 'test_shell_common', 25 'target_name': 'test_shell_common',
27 'type': '<(library)', 26 'type': '<(library)',
27 'variables': {
28 'chromium_code': 1,
29 },
28 'dependencies': [ 30 'dependencies': [
29 '../../../app/app.gyp:app_base', 31 '<(DEPTH)/app/app.gyp:app_base',
30 '../../../base/base.gyp:base', 32 '<(DEPTH)/base/base.gyp:base',
31 '../../../base/base.gyp:base_i18n', 33 '<(DEPTH)/base/base.gyp:base_i18n',
32 '../../../media/media.gyp:media', 34 '<(DEPTH)/media/media.gyp:media',
33 '../../../net/net.gyp:net', 35 '<(DEPTH)/net/net.gyp:net',
34 '../../../skia/skia.gyp:skia', 36 '<(DEPTH)/skia/skia.gyp:skia',
35 '../../../testing/gmock.gyp:gmock', 37 '<(DEPTH)/testing/gmock.gyp:gmock',
36 '../../../testing/gtest.gyp:gtest', 38 '<(DEPTH)/testing/gtest.gyp:gtest',
37 '../../../third_party/npapi/npapi.gyp:npapi', 39 '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
38 '../../../third_party/WebKit/WebCore/WebCore.gyp/WebCore.gyp:webcore', 40 '<(DEPTH)/third_party/WebKit/WebCore/WebCore.gyp/WebCore.gyp:webcore',
39 '../../../third_party/WebKit/WebKit/chromium/WebKit.gyp:webkit', 41 '<(DEPTH)/third_party/WebKit/WebKit/chromium/WebKit.gyp:webkit',
40 '../../webkit.gyp:appcache', 42 '<(DEPTH)/webkit/webkit.gyp:appcache',
41 '../../webkit.gyp:database', 43 '<(DEPTH)/webkit/webkit.gyp:database',
42 '../../webkit.gyp:glue', 44 '<(DEPTH)/webkit/webkit.gyp:glue',
43 '../../webkit.gyp:inspector_resources', 45 '<(DEPTH)/webkit/webkit.gyp:inspector_resources',
44 'npapi_layout_test_plugin', 46 'npapi_layout_test_plugin',
45 ], 47 ],
46 'msvs_guid': '77C32787-1B96-CB84-B905-7F170629F0AC', 48 'msvs_guid': '77C32787-1B96-CB84-B905-7F170629F0AC',
47 'sources': [ 49 'sources': [
48 'mac/DumpRenderTreePasteboard.h', 50 'mac/DumpRenderTreePasteboard.h',
49 'mac/DumpRenderTreePasteboard.m', 51 'mac/DumpRenderTreePasteboard.m',
50 'mac/test_shell_webview.h', 52 'mac/test_shell_webview.h',
51 'mac/test_shell_webview.mm', 53 'mac/test_shell_webview.mm',
52 'mac/test_webview_delegate.mm', 54 'mac/test_webview_delegate.mm',
53 'mac/webview_host.mm', 55 'mac/webview_host.mm',
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 'text_input_controller.cc', 118 'text_input_controller.cc',
117 'text_input_controller.h', 119 'text_input_controller.h',
118 'webview_host.h', 120 'webview_host.h',
119 'webview_host_gtk.cc', 121 'webview_host_gtk.cc',
120 'webview_host_win.cc', 122 'webview_host_win.cc',
121 'webwidget_host.h', 123 'webwidget_host.h',
122 'webwidget_host_gtk.cc', 124 'webwidget_host_gtk.cc',
123 'webwidget_host_win.cc', 125 'webwidget_host_win.cc',
124 ], 126 ],
125 'export_dependent_settings': [ 127 'export_dependent_settings': [
126 '../../../base/base.gyp:base', 128 '<(DEPTH)/base/base.gyp:base',
127 '../../../net/net.gyp:net', 129 '<(DEPTH)/net/net.gyp:net',
128 '../../../third_party/WebKit/WebCore/WebCore.gyp/WebCore.gyp:webcore', 130 '<(DEPTH)/third_party/WebKit/WebCore/WebCore.gyp/WebCore.gyp:webcore',
129 '../../../third_party/WebKit/WebKit/chromium/WebKit.gyp:webkit', 131 '<(DEPTH)/third_party/WebKit/WebKit/chromium/WebKit.gyp:webkit',
130 '../../webkit.gyp:glue', 132 '<(DEPTH)/webkit/webkit.gyp:glue',
131 ], 133 ],
132 'conditions': [ 134 'conditions': [
133 # http://code.google.com/p/chromium/issues/detail?id=18337 135 # http://code.google.com/p/chromium/issues/detail?id=18337
134 ['target_arch!="x64" and target_arch!="arm"', { 136 ['target_arch!="x64" and target_arch!="arm"', {
135 'dependencies': [ 137 'dependencies': [
136 'npapi_test_plugin', 138 'npapi_test_plugin',
137 ], 139 ],
138 }], 140 }],
139 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 141 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
140 'dependencies': [ 142 'dependencies': [
141 'test_shell_resources', 143 'test_shell_resources',
142 '../../../build/linux/system.gyp:gtk', 144 '<(DEPTH)/build/linux/system.gyp:gtk',
143 '../../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', 145 '<(DEPTH)/tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
144 ], 146 ],
145 # for: test_shell_gtk.cc 147 # for: test_shell_gtk.cc
146 'cflags': ['-Wno-multichar'], 148 'cflags': ['-Wno-multichar'],
147 }, { # else: OS!=linux
148 'sources/': [
149 ['exclude', '_gtk\\.cc$'],
150 ['exclude', '_x11\\.cc$'],
151 ],
152 }], 149 }],
153 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 150 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
154 # See below TODO in the Windows branch. 151 # See below TODO in the Windows branch.
155 'copies': [ 152 'copies': [
156 { 153 {
157 'destination': '<(PRODUCT_DIR)/plugins', 154 'destination': '<(PRODUCT_DIR)/plugins',
158 'files': ['<(PRODUCT_DIR)/libnpapi_layout_test_plugin.so'], 155 'files': ['<(PRODUCT_DIR)/libnpapi_layout_test_plugin.so'],
159 }, 156 },
160 ], 157 ],
161 }], 158 }],
162 ['OS!="mac"', {
163 'sources/': [
164 ['exclude', 'mac/[^/]*\\.(cc|mm?)$'],
165 ['exclude', '_mac\\.(cc|mm?)$'],
166 ]
167 }],
168 ['OS=="win"', { 159 ['OS=="win"', {
169 'msvs_disabled_warnings': [ 4800 ], 160 'msvs_disabled_warnings': [ 4800 ],
170 'link_settings': { 161 'link_settings': {
171 'libraries': [ 162 'libraries': [
172 '-lcomctl32.lib', 163 '-lcomctl32.lib',
173 ], 164 ],
174 }, 165 },
175 'include_dirs': [ 166 'include_dirs': [
176 '../../../chrome/third_party/wtl/include', 167 '../../../chrome/third_party/wtl/include',
177 '.', 168 '.',
178 ], 169 ],
179 'dependencies': [ 170 'dependencies': [
180 '../../../breakpad/breakpad.gyp:breakpad_handler', 171 '<(DEPTH)/breakpad/breakpad.gyp:breakpad_handler',
181 '../../default_plugin/default_plugin.gyp:default_plugin', 172 '<(DEPTH)/webkit/default_plugin/default_plugin.gyp:default_plugin',
182 ], 173 ],
183 # TODO(bradnelson): 174 # TODO(bradnelson):
184 # This should really be done in the 'npapi_layout_test_plugin' 175 # This should really be done in the 'npapi_layout_test_plugin'
185 # target, but the current VS generator handles 'copies' 176 # target, but the current VS generator handles 'copies'
186 # settings as AdditionalDependencies, which means that 177 # settings as AdditionalDependencies, which means that
187 # when it's over there, it tries to do the copy *before* 178 # when it's over there, it tries to do the copy *before*
188 # the file is built, instead of after. We work around this 179 # the file is built, instead of after. We work around this
189 # by attaching the copy here, since it depends on that 180 # by attaching the copy here, since it depends on that
190 # target. 181 # target.
191 'copies': [ 182 'copies': [
192 { 183 {
193 'destination': '<(PRODUCT_DIR)/plugins', 184 'destination': '<(PRODUCT_DIR)/plugins',
194 'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'], 185 'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'],
195 }, 186 },
196 ], 187 ],
197 }, { # else: OS!=win 188 }, { # else: OS!=win
198 'sources/': [ 189 'sources/': [
199 ['exclude', '_win\\.cc$'],
200 ['exclude', '_webtheme(control|engine)\.(cc|h)$'], 190 ['exclude', '_webtheme(control|engine)\.(cc|h)$'],
201 ], 191 ],
202 'sources!': [ 192 'sources!': [
203 'drag_delegate.cc', 193 'drag_delegate.cc',
204 'drop_delegate.cc', 194 'drop_delegate.cc',
205 ], 195 ],
206 }], 196 }],
207 ], 197 ],
208 }, 198 },
209 { 199 {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 'destination': '<(PRODUCT_DIR)', 231 'destination': '<(PRODUCT_DIR)',
242 'files': ['<(pak_path)'], 232 'files': ['<(pak_path)'],
243 }, 233 },
244 ], 234 ],
245 }], 235 }],
246 ], 236 ],
247 }, 237 },
248 { 238 {
249 'target_name': 'test_shell', 239 'target_name': 'test_shell',
250 'type': 'executable', 240 'type': 'executable',
241 'variables': {
242 'chromium_code': 1,
243 },
251 'mac_bundle': 1, 244 'mac_bundle': 1,
252 'msvs_guid': 'FA39524D-3067-4141-888D-28A86C66F2B9', 245 'msvs_guid': 'FA39524D-3067-4141-888D-28A86C66F2B9',
253 'dependencies': [ 246 'dependencies': [
254 'test_shell_common', 247 'test_shell_common',
255 '../../../tools/imagediff/image_diff.gyp:image_diff', 248 '<(DEPTH)/tools/imagediff/image_diff.gyp:image_diff',
256 ], 249 ],
257 'defines': [ 250 'defines': [
258 # Technically not a unit test but require functions available only to 251 # Technically not a unit test but require functions available only to
259 # unit tests. 252 # unit tests.
260 'UNIT_TEST' 253 'UNIT_TEST'
261 ], 254 ],
262 'sources': [ 255 'sources': [
263 'test_shell_main.cc', 256 'test_shell_main.cc',
264 ], 257 ],
265 'mac_bundle_resources': [ 258 'mac_bundle_resources': [
266 '../../data/test_shell/', 259 '../../data/test_shell/',
267 'mac/English.lproj/InfoPlist.strings', 260 'mac/English.lproj/InfoPlist.strings',
268 'mac/English.lproj/MainMenu.nib', 261 'mac/English.lproj/MainMenu.nib',
269 'mac/Info.plist', 262 'mac/Info.plist',
270 'mac/test_shell.icns', 263 'mac/test_shell.icns',
271 'resources/AHEM____.TTF', 264 'resources/AHEM____.TTF',
272 ], 265 ],
273 'mac_bundle_resources!': [ 266 'mac_bundle_resources!': [
274 # TODO(mark): Come up with a fancier way to do this (mac_info_plist?) 267 # 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 268 # that automatically sets the correct INFOPLIST_FILE setting and adds
276 # the file to a source group. 269 # the file to a source group.
277 'mac/Info.plist', 270 'mac/Info.plist',
278 ], 271 ],
279 'xcode_settings': { 272 'xcode_settings': {
280 'INFOPLIST_FILE': 'mac/Info.plist', 273 'INFOPLIST_FILE': '<(DEPTH)/webkit/tools/test_shell/mac/Info.plist',
281 }, 274 },
282 'conditions': [ 275 'conditions': [
283 ['OS=="win"', { 276 ['OS=="win"', {
284 'dependencies': ['layout_test_helper'], 277 'dependencies': [
278 'layout_test_helper',
279 ],
285 'resource_include_dirs': [ 280 'resource_include_dirs': [
286 '<(SHARED_INTERMEDIATE_DIR)/webkit', 281 '<(SHARED_INTERMEDIATE_DIR)/webkit',
287 ], 282 ],
288 'sources': [ 283 'sources': [
289 '<@(test_shell_windows_resource_files)', 284 '<@(test_shell_windows_resource_files)',
290 # TODO: It would be nice to have these pulled in 285 # TODO: It would be nice to have these pulled in
291 # automatically from direct_dependent_settings in 286 # automatically from direct_dependent_settings in
292 # their various targets (net.gyp:net_resources, etc.), 287 # their various targets (net.gyp:net_resources, etc.),
293 # but that causes errors in other targets when 288 # but that causes errors in other targets when
294 # resulting .res files get referenced multiple times. 289 # resulting .res files get referenced multiple times.
295 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc', 290 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
296 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc', 291 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
297 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc', 292 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
298 ], 293 ],
299 }], 294 }],
300 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 295 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
301 'conditions': [ 296 'conditions': [
302 ['linux_use_tcmalloc==1', { 297 ['linux_use_tcmalloc==1', {
303 'dependencies': [ 298 'dependencies': [
304 '../../../base/allocator/allocator.gyp:allocator', 299 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
305 ], 300 ],
306 }], 301 }],
307 ], 302 ],
308 'dependencies': [ 303 'dependencies': [
309 '../../../build/linux/system.gyp:gtk', 304 '<(DEPTH)/build/linux/system.gyp:gtk',
310 'test_shell_resources', 305 'test_shell_resources',
311 'test_shell_pak', 306 'test_shell_pak',
312 ], 307 ],
313 }], 308 }],
314 ['OS=="mac"', { 309 ['OS=="mac"', {
315 'product_name': 'TestShell', 310 'product_name': 'TestShell',
316 'dependencies': ['layout_test_helper'], 311 'dependencies': [
312 'layout_test_helper',
313 ],
317 'variables': { 314 'variables': {
318 'repack_path': '../../../tools/data_pack/repack.py', 315 'repack_path': '../../../tools/data_pack/repack.py',
319 }, 316 },
320 'actions': [ 317 'actions': [
321 { 318 {
322 # TODO(mark): Make this work with more languages than the 319 # TODO(mark): Make this work with more languages than the
323 # hardcoded en-US. 320 # hardcoded en-US.
324 'action_name': 'repack_locale', 321 'action_name': 'repack_locale',
325 'variables': { 322 'variables': {
326 'pak_inputs': [ 323 'pak_inputs': [
(...skipping 24 matching lines...) Expand all
351 # ffmpeg.gyp so they don't diverge. (BUG=23602) 348 # ffmpeg.gyp so they don't diverge. (BUG=23602)
352 { 349 {
353 'destination': '<(PRODUCT_DIR)/TestShell.app/Contents/MacOS/', 350 'destination': '<(PRODUCT_DIR)/TestShell.app/Contents/MacOS/',
354 'files': [ 351 'files': [
355 '<(PRODUCT_DIR)/libffmpegsumo.dylib', 352 '<(PRODUCT_DIR)/libffmpegsumo.dylib',
356 ], 353 ],
357 }, 354 },
358 ], 355 ],
359 }, { # OS != "mac" 356 }, { # OS != "mac"
360 'dependencies': [ 357 'dependencies': [
361 '../../../net/net.gyp:net_resources', 358 '<(DEPTH)/net/net.gyp:net_resources',
362 '../../webkit.gyp:webkit_resources', 359 '<(DEPTH)/webkit/webkit.gyp:webkit_resources',
363 '../../webkit.gyp:webkit_strings', 360 '<(DEPTH)/webkit/webkit.gyp:webkit_strings',
364 ] 361 ]
365 }], 362 }],
366 ], 363 ],
367 }, 364 },
368 { 365 {
369 'target_name': 'test_shell_tests', 366 'target_name': 'test_shell_tests',
370 'type': 'executable', 367 'type': 'executable',
368 'variables': {
369 'chromium_code': 1,
370 },
371 'msvs_guid': 'E6766F81-1FCD-4CD7-BC16-E36964A14867', 371 'msvs_guid': 'E6766F81-1FCD-4CD7-BC16-E36964A14867',
372 'dependencies': [ 372 'dependencies': [
373 'test_shell_common', 373 'test_shell_common',
374 '../../../skia/skia.gyp:skia', 374 '<(DEPTH)/skia/skia.gyp:skia',
375 '../../../testing/gmock.gyp:gmock', 375 '<(DEPTH)/testing/gmock.gyp:gmock',
376 '../../../testing/gtest.gyp:gtest', 376 '<(DEPTH)/testing/gtest.gyp:gtest',
377 ], 377 ],
378 'sources': [ 378 'sources': [
379 '../../../skia/ext/convolver_unittest.cc', 379 '../../../skia/ext/convolver_unittest.cc',
380 '../../../skia/ext/image_operations_unittest.cc', 380 '../../../skia/ext/image_operations_unittest.cc',
381 '../../../skia/ext/platform_canvas_unittest.cc', 381 '../../../skia/ext/platform_canvas_unittest.cc',
382 '../../../skia/ext/vector_canvas_unittest.cc', 382 '../../../skia/ext/vector_canvas_unittest.cc',
383 '../../appcache/manifest_parser_unittest.cc', 383 '../../appcache/manifest_parser_unittest.cc',
384 '../../appcache/appcache_unittest.cc', 384 '../../appcache/appcache_unittest.cc',
385 '../../appcache/appcache_database_unittest.cc', 385 '../../appcache/appcache_database_unittest.cc',
386 '../../appcache/appcache_group_unittest.cc', 386 '../../appcache/appcache_group_unittest.cc',
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 'conditions': [ 441 'conditions': [
442 ['OS=="win"', { 442 ['OS=="win"', {
443 'resource_include_dirs': [ 443 'resource_include_dirs': [
444 '<(SHARED_INTERMEDIATE_DIR)/webkit', 444 '<(SHARED_INTERMEDIATE_DIR)/webkit',
445 ], 445 ],
446 'sources': [ '<@(test_shell_windows_resource_files)' ], 446 'sources': [ '<@(test_shell_windows_resource_files)' ],
447 }], 447 }],
448 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 448 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
449 'dependencies': [ 449 'dependencies': [
450 'test_shell_pak', 450 'test_shell_pak',
451 '../../../build/linux/system.gyp:gtk', 451 '<(DEPTH)/build/linux/system.gyp:gtk',
452 ], 452 ],
453 'sources!': [ 453 'sources!': [
454 # TODO(port) 454 # TODO(port)
455 '../../../skia/ext/platform_canvas_unittest.cc', 455 '../../../skia/ext/platform_canvas_unittest.cc',
456 ], 456 ],
457 }], 457 }],
458 ['OS=="mac"', { 458 ['OS=="mac"', {
459 # mac tests load the resources from the built test_shell beside the 459 # mac tests load the resources from the built test_shell beside the
460 # test 460 # test
461 'dependencies': ['test_shell'], 461 'dependencies': [
462 'test_shell',
463 ],
462 'sources!': [ 464 'sources!': [
463 # Disable the image decoder tests because we use CoreGraphics 465 # Disable the image decoder tests because we use CoreGraphics
464 # code on mac and these tests are for the Skia image-decoders. 466 # code on mac and these tests are for the Skia image-decoders.
465 '../webcore_unit_tests/BMPImageDecoder_unittest.cpp', 467 '../webcore_unit_tests/BMPImageDecoder_unittest.cpp',
466 '../webcore_unit_tests/ICOImageDecoder_unittest.cpp', 468 '../webcore_unit_tests/ICOImageDecoder_unittest.cpp',
467 '../webcore_unit_tests/XBMImageDecoder_unittest.cpp', 469 '../webcore_unit_tests/XBMImageDecoder_unittest.cpp',
468 'image_decoder_unittest.cc', 470 'image_decoder_unittest.cc',
469 'image_decoder_unittest.h', 471 'image_decoder_unittest.h',
470 ], 472 ],
471 'sources': [ 473 'sources': [
472 '../../../skia/ext/skia_utils_mac_unittest.mm', 474 '../../../skia/ext/skia_utils_mac_unittest.mm',
473 ], 475 ],
474 }], 476 }],
475 ['OS=="win"', { 477 ['OS=="win"', {
476 'msvs_disabled_warnings': [ 4800 ], 478 'msvs_disabled_warnings': [ 4800 ],
477 }, { # else: OS!=win 479 }, { # else: OS!=win
478 'sources!': [ 480 'sources!': [
479 '../../../skia/ext/vector_canvas_unittest.cc', 481 '../../../skia/ext/vector_canvas_unittest.cc',
480 ], 482 ],
481 }], 483 }],
482 ['OS=="linux" or OS=="freebsd"', { 484 ['OS=="linux" or OS=="freebsd"', {
483 'conditions': [ 485 'conditions': [
484 ['linux_use_tcmalloc==1', { 486 ['linux_use_tcmalloc==1', {
485 'dependencies': [ 487 'dependencies': [
486 '../../../base/allocator/allocator.gyp:allocator', 488 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
487 ], 489 ],
488 }], 490 }],
489 ], 491 ],
490 }], 492 }],
491 ], 493 ],
492 }, 494 },
493 { 495 {
494 'target_name': 'npapi_layout_test_plugin', 496 'target_name': 'npapi_layout_test_plugin',
495 'type': 'loadable_module', 497 'type': 'loadable_module',
498 'variables': {
499 'chromium_code': 1,
500 },
496 'mac_bundle': 1, 501 'mac_bundle': 1,
497 'msvs_guid': 'BE6D5659-A8D5-4890-A42C-090DD10EF62C', 502 'msvs_guid': 'BE6D5659-A8D5-4890-A42C-090DD10EF62C',
498 'sources': [ 503 'sources': [
499 '../npapi_layout_test_plugin/PluginObject.cpp', 504 '../npapi_layout_test_plugin/PluginObject.cpp',
500 '../npapi_layout_test_plugin/TestObject.cpp', 505 '../npapi_layout_test_plugin/TestObject.cpp',
501 '../npapi_layout_test_plugin/main.cpp', 506 '../npapi_layout_test_plugin/main.cpp',
502 '../npapi_layout_test_plugin/npapi_layout_test_plugin.def', 507 '../npapi_layout_test_plugin/npapi_layout_test_plugin.def',
503 '../npapi_layout_test_plugin/npapi_layout_test_plugin.rc', 508 '../npapi_layout_test_plugin/npapi_layout_test_plugin.rc',
504 ], 509 ],
505 'include_dirs': [ 510 'include_dirs': [
506 '../../..', 511 '../../..',
507 ], 512 ],
508 'dependencies': [ 513 'dependencies': [
509 '../../../third_party/npapi/npapi.gyp:npapi', 514 '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
510 '../../../third_party/WebKit/JavaScriptCore/JavaScriptCore.gyp/JavaScrip tCore.gyp:wtf', 515 '<(DEPTH)/third_party/WebKit/JavaScriptCore/JavaScriptCore.gyp/JavaScrip tCore.gyp:wtf',
511 ], 516 ],
512 'msvs_disabled_warnings': [ 4996 ], 517 'msvs_disabled_warnings': [ 4996 ],
513 'mac_bundle_resources': [ 518 'mac_bundle_resources': [
514 '../npapi_layout_test_plugin/Info.r', 519 '../npapi_layout_test_plugin/Info.r',
515 ], 520 ],
516 'xcode_settings': { 521 'xcode_settings': {
517 'INFOPLIST_FILE': '../npapi_layout_test_plugin/Info.plist', 522 'INFOPLIST_FILE': '<(DEPTH)/webkit/tools/npapi_layout_test_plugin/Info.p list',
518 }, 523 },
519 'conditions': [ 524 'conditions': [
520 ['OS!="win"', { 525 ['OS!="win"', {
521 'sources!': [ 526 'sources!': [
522 '../npapi_layout_test_plugin/npapi_layout_test_plugin.def', 527 '../npapi_layout_test_plugin/npapi_layout_test_plugin.def',
523 '../npapi_layout_test_plugin/npapi_layout_test_plugin.rc', 528 '../npapi_layout_test_plugin/npapi_layout_test_plugin.rc',
524 ], 529 ],
525 # TODO(bradnelson): 530 # TODO(bradnelson):
526 # This copy should really live here, as a post-build step, 531 # This copy should really live here, as a post-build step,
527 # but it's currently being implemented via 532 # but it's currently being implemented via
528 # AdditionalDependencies, which tries to do the copy before 533 # AdditionalDependencies, which tries to do the copy before
529 # the file is built... 534 # the file is built...
530 # 535 #
531 }, { # OS == "win" 536 }, { # OS == "win"
532 # # The old VS build would explicitly copy the .dll into the 537 # # The old VS build would explicitly copy the .dll into the
533 # # plugins subdirectory like this. It might be possible to 538 # # plugins subdirectory like this. It might be possible to
534 # # use the 'product_dir' setting to build directly into 539 # # use the 'product_dir' setting to build directly into
535 # # plugins/ (as is done on Linux), but we'd need to verify 540 # # plugins/ (as is done on Linux), but we'd need to verify
536 # # that nothing breaks first. 541 # # that nothing breaks first.
537 # 'copies': [ 542 # 'copies': [
538 # { 543 # {
539 # 'destination': '<(PRODUCT_DIR)/plugins', 544 # 'destination': '<(PRODUCT_DIR)/plugins',
540 # 'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'], 545 # 'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'],
541 # }, 546 # },
542 # ], 547 # ],
548 'variables': {
549 # This is not a relative pathname. Avoid pathname relativization
550 # by sticking it in a variable that isn't recognized as one
551 # containing pathnames, and by using the >(late) form of variable
552 # expansion.
553 'winmm_lib': 'winmm.lib',
554 },
543 'link_settings': { 555 'link_settings': {
544 'libraries': [ 556 'libraries': [
545 "winmm.lib", 557 '>(winmm_lib)',
546 ], 558 ],
547 }, 559 },
548 }], 560 }],
549 ['OS=="mac"', { 561 ['OS=="mac"', {
550 'product_name': 'TestNetscapePlugIn', 562 'product_name': 'TestNetscapePlugIn',
551 'product_extension': 'plugin', 563 'product_extension': 'plugin',
552 'link_settings': { 564 'link_settings': {
553 'libraries': [ 565 'libraries': [
554 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', 566 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
555 ], 567 ],
556 }, 568 },
557 }], 569 }],
558 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd") and (target_arch=="x64 " or target_arch=="arm")', { 570 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd") and (target_arch=="x64 " or target_arch=="arm")', {
559 # Shared libraries need -fPIC on x86-64 571 # Shared libraries need -fPIC on x86-64
560 'cflags': ['-fPIC'] 572 'cflags': ['-fPIC']
561 }], 573 }],
562 ], 574 ],
563 }, 575 },
564 ], 576 ],
565 'conditions': [ 577 'conditions': [
566 ['target_arch!="x64" and target_arch!="arm"', { 578 ['target_arch!="x64" and target_arch!="arm"', {
567 'targets': [ 579 'targets': [
568 { 580 {
569 'target_name': 'npapi_test_plugin', 581 'target_name': 'npapi_test_plugin',
570 'type': 'loadable_module', 582 'type': 'loadable_module',
583 'variables': {
584 'chromium_code': 1,
585 },
571 'mac_bundle': 1, 586 'mac_bundle': 1,
572 'msvs_guid': '0D04AEC1-6B68-492C-BCCF-808DFD69ABC6', 587 'msvs_guid': '0D04AEC1-6B68-492C-BCCF-808DFD69ABC6',
573 'dependencies': [ 588 'dependencies': [
574 '../../../base/base.gyp:base', 589 '<(DEPTH)/base/base.gyp:base',
575 '../../../third_party/icu/icu.gyp:icuuc', 590 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
576 '../../../third_party/npapi/npapi.gyp:npapi', 591 '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
577 ], 592 ],
578 'sources': [ 593 'sources': [
579 '../../glue/plugins/test/npapi_constants.cc', 594 '../../glue/plugins/test/npapi_constants.cc',
580 '../../glue/plugins/test/npapi_constants.h', 595 '../../glue/plugins/test/npapi_constants.h',
581 '../../glue/plugins/test/npapi_test.cc', 596 '../../glue/plugins/test/npapi_test.cc',
582 '../../glue/plugins/test/npapi_test.def', 597 '../../glue/plugins/test/npapi_test.def',
583 '../../glue/plugins/test/npapi_test.rc', 598 '../../glue/plugins/test/npapi_test.rc',
584 '../../glue/plugins/test/plugin_arguments_test.cc', 599 '../../glue/plugins/test/plugin_arguments_test.cc',
585 '../../glue/plugins/test/plugin_arguments_test.h', 600 '../../glue/plugins/test/plugin_arguments_test.h',
586 '../../glue/plugins/test/plugin_client.cc', 601 '../../glue/plugins/test/plugin_client.cc',
(...skipping 29 matching lines...) Expand all
616 '../../glue/plugins/test/plugin_window_size_test.cc', 631 '../../glue/plugins/test/plugin_window_size_test.cc',
617 '../../glue/plugins/test/plugin_window_size_test.h', 632 '../../glue/plugins/test/plugin_window_size_test.h',
618 '../../glue/plugins/test/plugin_windowless_test.cc', 633 '../../glue/plugins/test/plugin_windowless_test.cc',
619 '../../glue/plugins/test/plugin_windowless_test.h', 634 '../../glue/plugins/test/plugin_windowless_test.h',
620 '../../glue/plugins/test/resource.h', 635 '../../glue/plugins/test/resource.h',
621 ], 636 ],
622 'include_dirs': [ 637 'include_dirs': [
623 '../../..', 638 '../../..',
624 ], 639 ],
625 'xcode_settings': { 640 'xcode_settings': {
626 'INFOPLIST_FILE': '../../glue/plugins/test/Info.plist', 641 'INFOPLIST_FILE': '<(DEPTH)/webkit/glue/plugins/test/Info.plist',
627 }, 642 },
628 'conditions': [ 643 'conditions': [
629 ['OS!="win"', { 644 ['OS!="win"', {
630 'sources!': [ 645 'sources!': [
631 # TODO(port): Port these. 646 # TODO(port): Port these.
632 # plugin_npobject_lifetime_test.cc has win32-isms 647 # plugin_npobject_lifetime_test.cc has win32-isms
633 # (HWND, CALLBACK). 648 # (HWND, CALLBACK).
634 '../../glue/plugins/test/plugin_npobject_lifetime_test.cc', 649 '../../glue/plugins/test/plugin_npobject_lifetime_test.cc',
635 # The window APIs are necessarily platform-specific. 650 # The window APIs are necessarily platform-specific.
636 '../../glue/plugins/test/plugin_window_size_test.cc', 651 '../../glue/plugins/test/plugin_window_size_test.cc',
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 }, 712 },
698 ], 713 ],
699 }], 714 }],
700 ['OS=="win"', { 715 ['OS=="win"', {
701 'targets': [ 716 'targets': [
702 { 717 {
703 # Helper application that disables ClearType during the 718 # Helper application that disables ClearType during the
704 # running of the layout tests 719 # running of the layout tests
705 'target_name': 'layout_test_helper', 720 'target_name': 'layout_test_helper',
706 'type': 'executable', 721 'type': 'executable',
722 'variables': {
723 'chromium_code': 1,
724 },
707 'sources': [ 725 'sources': [
708 'win/layout_test_helper.cc', 726 'win/layout_test_helper.cc',
709 ], 727 ],
710 }, 728 },
711 ], 729 ],
712 }], 730 }],
713 ['OS=="mac"', { 731 ['OS=="mac"', {
714 'targets': [ 732 'targets': [
715 { 733 {
716 # Helper application that manages the color sync profile on mac 734 # Helper application that manages the color sync profile on mac
717 # for the test shells run by the layout tests. 735 # for the test shells run by the layout tests.
718 'target_name': 'layout_test_helper', 736 'target_name': 'layout_test_helper',
719 'type': 'executable', 737 'type': 'executable',
738 'variables': {
739 'chromium_code': 1,
740 },
720 'sources': [ 741 'sources': [
721 'mac/layout_test_helper.mm', 742 'mac/layout_test_helper.mm',
722 ], 743 ],
723 'link_settings': { 744 'link_settings': {
724 'libraries': [ 745 'libraries': [
725 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', 746 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
726 ], 747 ],
727 }, 748 },
728 }, 749 },
729 ], 750 ],
730 }], 751 }],
731 ], 752 ],
732 } 753 }
733 754
734 # Local Variables: 755 # Local Variables:
735 # tab-width:2 756 # tab-width:2
736 # indent-tabs-mode:nil 757 # indent-tabs-mode:nil
737 # End: 758 # End:
738 # vim: set expandtab tabstop=2 shiftwidth=2: 759 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell.gyp ('k') | webkit/webkit.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698