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

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

Issue 7011032: Make the gyp files more cross-platform across the Unices (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: updated to trunk and added spaces, collapsed one check Created 9 years, 7 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
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 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 'test_shell_windows_resource_files': [ 7 'test_shell_windows_resource_files': [
8 'resources/test_shell.rc', 8 'resources/test_shell.rc',
9 '../../glue/resources/pan_east.cur', 9 '../../glue/resources/pan_east.cur',
10 '../../glue/resources/pan_middle.cur', 10 '../../glue/resources/pan_middle.cur',
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 '<(DEPTH)/net/net.gyp:net', 113 '<(DEPTH)/net/net.gyp:net',
114 '<(DEPTH)/third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit', 114 '<(DEPTH)/third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
115 '<(DEPTH)/webkit/support/webkit_support.gyp:glue', 115 '<(DEPTH)/webkit/support/webkit_support.gyp:glue',
116 ], 116 ],
117 'conditions': [ 117 'conditions': [
118 ['target_arch!="arm"', { 118 ['target_arch!="arm"', {
119 'dependencies': [ 119 'dependencies': [
120 'copy_npapi_test_plugin', 120 'copy_npapi_test_plugin',
121 ], 121 ],
122 }], 122 }],
123 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 123 ['toolkit_uses_gtk == 1', {
124 'dependencies': [ 124 'dependencies': [
125 'test_shell_resources', 125 'test_shell_resources',
126 '<(DEPTH)/build/linux/system.gyp:gtk', 126 '<(DEPTH)/build/linux/system.gyp:gtk',
127 '<(DEPTH)/tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', 127 '<(DEPTH)/tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
128 ], 128 ],
129 # for: test_shell_gtk.cc 129 # for: test_shell_gtk.cc
130 'cflags': ['-Wno-multichar'], 130 'cflags': ['-Wno-multichar'],
131 }], 131 }],
132 ['OS=="win"', { 132 ['OS=="win"', {
133 'msvs_disabled_warnings': [ 4800 ], 133 'msvs_disabled_warnings': [ 4800 ],
(...skipping 20 matching lines...) Expand all
154 ], 154 ],
155 }, 155 },
156 { 156 {
157 'target_name': 'test_shell_pak', 157 'target_name': 'test_shell_pak',
158 'type': 'none', 158 'type': 'none',
159 'variables': { 159 'variables': {
160 'repack_path': '../../../tools/data_pack/repack.py', 160 'repack_path': '../../../tools/data_pack/repack.py',
161 'pak_path': '<(INTERMEDIATE_DIR)/repack/test_shell.pak', 161 'pak_path': '<(INTERMEDIATE_DIR)/repack/test_shell.pak',
162 }, 162 },
163 'conditions': [ 163 'conditions': [
164 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 164 ['os_posix == 1 and OS != "mac"', {
165 'actions': [ 165 'actions': [
166 { 166 {
167 'action_name': 'test_shell_repack', 167 'action_name': 'test_shell_repack',
168 'variables': { 168 'variables': {
169 'pak_inputs': [ 169 'pak_inputs': [
170 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.pak', 170 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.pak',
171 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', 171 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
172 '<(SHARED_INTERMEDIATE_DIR)/test_shell/test_shell_resources.pa k', 172 '<(SHARED_INTERMEDIATE_DIR)/test_shell/test_shell_resources.pa k',
173 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.p ak', 173 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.p ak',
174 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak', 174 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 'configurations': { 258 'configurations': {
259 'Debug_Base': { 259 'Debug_Base': {
260 'msvs_settings': { 260 'msvs_settings': {
261 'VCLinkerTool': { 261 'VCLinkerTool': {
262 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', 262 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
263 }, 263 },
264 }, 264 },
265 }, 265 },
266 }, 266 },
267 }], 267 }],
268 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 268 ['toolkit_uses_gtk == 1', {
269 'conditions': [ 269 'conditions': [
270 ['linux_use_tcmalloc==1', { 270 ['linux_use_tcmalloc==1', {
271 'dependencies': [ 271 'dependencies': [
272 '<(DEPTH)/base/allocator/allocator.gyp:allocator', 272 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
273 ], 273 ],
274 }], 274 }],
275 ], 275 ],
276 'dependencies': [ 276 'dependencies': [
277 '<(DEPTH)/build/linux/system.gyp:gtk', 277 '<(DEPTH)/build/linux/system.gyp:gtk',
278 'test_shell_resources', 278 'test_shell_resources',
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 'configurations': { 454 'configurations': {
455 'Debug_Base': { 455 'Debug_Base': {
456 'msvs_settings': { 456 'msvs_settings': {
457 'VCLinkerTool': { 457 'VCLinkerTool': {
458 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', 458 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
459 }, 459 },
460 }, 460 },
461 }, 461 },
462 }, 462 },
463 }], 463 }],
464 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 464 ['toolkit_uses_gtk == 1', {
465 'dependencies': [ 465 'dependencies': [
466 'test_shell_pak', 466 'test_shell_pak',
467 '<(DEPTH)/build/linux/system.gyp:gtk', 467 '<(DEPTH)/build/linux/system.gyp:gtk',
468 ], 468 ],
469 'sources!': [ 469 'sources!': [
470 # TODO(port) 470 # TODO(port)
471 '../../../skia/ext/platform_canvas_unittest.cc', 471 '../../../skia/ext/platform_canvas_unittest.cc',
472 ], 472 ],
473 }], 473 }],
474 ['chromeos==1', { 474 ['chromeos==1', {
(...skipping 21 matching lines...) Expand all
496 '../../../skia/ext/bitmap_platform_device_mac_unittest.cc', 496 '../../../skia/ext/bitmap_platform_device_mac_unittest.cc',
497 ], 497 ],
498 }], 498 }],
499 ['OS=="win"', { 499 ['OS=="win"', {
500 'msvs_disabled_warnings': [ 4800 ], 500 'msvs_disabled_warnings': [ 4800 ],
501 }, { # else: OS!=win 501 }, { # else: OS!=win
502 'sources!': [ 502 'sources!': [
503 '../../../skia/ext/vector_canvas_unittest.cc', 503 '../../../skia/ext/vector_canvas_unittest.cc',
504 ], 504 ],
505 }], 505 }],
506 ['OS=="linux" or OS=="freebsd" or OS=="solaris"', { 506 ['os_posix == 1 and OS != "mac"', {
507 'conditions': [ 507 'conditions': [
508 ['linux_use_tcmalloc==1', { 508 ['linux_use_tcmalloc==1', {
509 'dependencies': [ 509 'dependencies': [
510 '<(DEPTH)/base/allocator/allocator.gyp:allocator', 510 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
511 ], 511 ],
512 }], 512 }],
513 ], 513 ],
514 }], 514 }],
515 ], 515 ],
516 }, 516 },
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 ], 616 ],
617 }], 617 }],
618 ['OS=="mac"', { 618 ['OS=="mac"', {
619 'product_extension': 'plugin', 619 'product_extension': 'plugin',
620 'link_settings': { 620 'link_settings': {
621 'libraries': [ 621 'libraries': [
622 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', 622 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
623 ], 623 ],
624 }, 624 },
625 }], 625 }],
626 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 626 ['os_posix == 1 and OS != "mac"', {
627 'sources!': [ 627 'sources!': [
628 # Needs simple event record type porting 628 # Needs simple event record type porting
629 '../../plugins/npapi/test/plugin_windowless_test.cc', 629 '../../plugins/npapi/test/plugin_windowless_test.cc',
630 ], 630 ],
631 }], 631 }],
632 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") a nd (target_arch=="x64" or target_arch=="arm")', { 632 ['os_posix == 1 and OS != "mac" and (target_arch == "x64" or target_ arch == "arm")', {
633 # Shared libraries need -fPIC on x86-64 633 # Shared libraries need -fPIC on x86-64
634 'cflags': ['-fPIC'] 634 'cflags': ['-fPIC']
635 }], 635 }],
636 ], 636 ],
637 }, 637 },
638 { 638 {
639 'target_name': 'copy_npapi_test_plugin', 639 'target_name': 'copy_npapi_test_plugin',
640 'type': 'none', 640 'type': 'none',
641 'dependencies': [ 641 'dependencies': [
642 'npapi_test_plugin', 642 'npapi_test_plugin',
643 ], 643 ],
644 'conditions': [ 644 'conditions': [
645 ['OS=="win"', { 645 ['OS=="win"', {
646 'copies': [ 646 'copies': [
647 { 647 {
648 'destination': '<(PRODUCT_DIR)/plugins', 648 'destination': '<(PRODUCT_DIR)/plugins',
649 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.dll'], 649 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.dll'],
650 }, 650 },
651 ], 651 ],
652 }], 652 }],
653 ['OS=="mac"', { 653 ['OS=="mac"', {
654 'copies': [ 654 'copies': [
655 { 655 {
656 'destination': '<(PRODUCT_DIR)/plugins/', 656 'destination': '<(PRODUCT_DIR)/plugins/',
657 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.plugin'], 657 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.plugin'],
658 }, 658 },
659 ] 659 ]
660 }], 660 }],
661 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 661 ['os_posix == 1 and OS != "mac"', {
662 'copies': [ 662 'copies': [
663 { 663 {
664 'destination': '<(PRODUCT_DIR)/plugins', 664 'destination': '<(PRODUCT_DIR)/plugins',
665 'files': ['<(PRODUCT_DIR)/libnpapi_test_plugin.so'], 665 'files': ['<(PRODUCT_DIR)/libnpapi_test_plugin.so'],
666 }, 666 },
667 ], 667 ],
668 }], 668 }],
669 ], 669 ],
670 }, 670 },
671 ], 671 ],
672 }], 672 }],
673 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 673 ['os_posix == 1 and OS != "mac"', {
674 'targets': [ 674 'targets': [
675 { 675 {
676 'target_name': 'test_shell_resources', 676 'target_name': 'test_shell_resources',
677 'type': 'none', 677 'type': 'none',
678 'actions': [ 678 'actions': [
679 { 679 {
680 'action_name': 'test_shell_resources', 680 'action_name': 'test_shell_resources',
681 'variables': { 681 'variables': {
682 'grit_path': '../../../tools/grit/grit.py', 682 'grit_path': '../../../tools/grit/grit.py',
683 'input_path': './test_shell_resources.grd', 683 'input_path': './test_shell_resources.grd',
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 ], 752 ],
753 }], 753 }],
754 ], 754 ],
755 } 755 }
756 756
757 # Local Variables: 757 # Local Variables:
758 # tab-width:2 758 # tab-width:2
759 # indent-tabs-mode:nil 759 # indent-tabs-mode:nil
760 # End: 760 # End:
761 # vim: set expandtab tabstop=2 shiftwidth=2: 761 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« chrome/chrome_tests.gypi ('K') | « webkit/tools/pepper_test_plugin/pepper_test_plugin.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698