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

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: 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 'configurations': { 455 'configurations': {
456 'Debug_Base': { 456 'Debug_Base': {
457 'msvs_settings': { 457 'msvs_settings': {
458 'VCLinkerTool': { 458 'VCLinkerTool': {
459 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', 459 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
460 }, 460 },
461 }, 461 },
462 }, 462 },
463 }, 463 },
464 }], 464 }],
465 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 465 ['toolkit_uses_gtk==1', {
466 'dependencies': [ 466 'dependencies': [
467 'test_shell_pak', 467 'test_shell_pak',
468 '<(DEPTH)/build/linux/system.gyp:gtk', 468 '<(DEPTH)/build/linux/system.gyp:gtk',
469 ], 469 ],
470 'sources!': [ 470 'sources!': [
471 # TODO(port) 471 # TODO(port)
472 '../../../skia/ext/platform_canvas_unittest.cc', 472 '../../../skia/ext/platform_canvas_unittest.cc',
473 ], 473 ],
474 }], 474 }],
475 ['chromeos==1', { 475 ['chromeos==1', {
(...skipping 21 matching lines...) Expand all
497 '../../../skia/ext/bitmap_platform_device_mac_unittest.cc', 497 '../../../skia/ext/bitmap_platform_device_mac_unittest.cc',
498 ], 498 ],
499 }], 499 }],
500 ['OS=="win"', { 500 ['OS=="win"', {
501 'msvs_disabled_warnings': [ 4800 ], 501 'msvs_disabled_warnings': [ 4800 ],
502 }, { # else: OS!=win 502 }, { # else: OS!=win
503 'sources!': [ 503 'sources!': [
504 '../../../skia/ext/vector_canvas_unittest.cc', 504 '../../../skia/ext/vector_canvas_unittest.cc',
505 ], 505 ],
506 }], 506 }],
507 ['OS=="linux" or OS=="freebsd" or OS=="solaris"', { 507 ['os_posix==1 and OS!="mac"', {
508 'conditions': [ 508 'conditions': [
509 ['linux_use_tcmalloc==1', { 509 ['linux_use_tcmalloc==1', {
510 'dependencies': [ 510 'dependencies': [
511 '<(DEPTH)/base/allocator/allocator.gyp:allocator', 511 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
512 ], 512 ],
513 }], 513 }],
514 ], 514 ],
515 }], 515 }],
516 ], 516 ],
517 }, 517 },
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 ], 617 ],
618 }], 618 }],
619 ['OS=="mac"', { 619 ['OS=="mac"', {
620 'product_extension': 'plugin', 620 'product_extension': 'plugin',
621 'link_settings': { 621 'link_settings': {
622 'libraries': [ 622 'libraries': [
623 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', 623 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
624 ], 624 ],
625 }, 625 },
626 }], 626 }],
627 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 627 ['os_posix==1 and OS!="mac"', {
628 'sources!': [ 628 'sources!': [
629 # Needs simple event record type porting 629 # Needs simple event record type porting
630 '../../plugins/npapi/test/plugin_windowless_test.cc', 630 '../../plugins/npapi/test/plugin_windowless_test.cc',
631 ], 631 ],
632 }], 632 }],
633 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") a nd (target_arch=="x64" or target_arch=="arm")', { 633 ['os_posix==1 and OS!="mac" and (target_arch=="x64" or target_arch== "arm")', {
634 # Shared libraries need -fPIC on x86-64 634 # Shared libraries need -fPIC on x86-64
635 'cflags': ['-fPIC'] 635 'cflags': ['-fPIC']
636 }], 636 }],
637 ], 637 ],
638 }, 638 },
639 { 639 {
640 'target_name': 'copy_npapi_test_plugin', 640 'target_name': 'copy_npapi_test_plugin',
641 'type': 'none', 641 'type': 'none',
642 'dependencies': [ 642 'dependencies': [
643 'npapi_test_plugin', 643 'npapi_test_plugin',
644 ], 644 ],
645 'conditions': [ 645 'conditions': [
646 ['OS=="win"', { 646 ['OS=="win"', {
647 'copies': [ 647 'copies': [
648 { 648 {
649 'destination': '<(PRODUCT_DIR)/plugins', 649 'destination': '<(PRODUCT_DIR)/plugins',
650 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.dll'], 650 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.dll'],
651 }, 651 },
652 ], 652 ],
653 }], 653 }],
654 ['OS=="mac"', { 654 ['OS=="mac"', {
655 'copies': [ 655 'copies': [
656 { 656 {
657 'destination': '<(PRODUCT_DIR)/plugins/', 657 'destination': '<(PRODUCT_DIR)/plugins/',
658 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.plugin'], 658 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.plugin'],
659 }, 659 },
660 ] 660 ]
661 }], 661 }],
662 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 662 ['os_posix==1 and OS!="mac"', {
663 'copies': [ 663 'copies': [
664 { 664 {
665 'destination': '<(PRODUCT_DIR)/plugins', 665 'destination': '<(PRODUCT_DIR)/plugins',
666 'files': ['<(PRODUCT_DIR)/libnpapi_test_plugin.so'], 666 'files': ['<(PRODUCT_DIR)/libnpapi_test_plugin.so'],
667 }, 667 },
668 ], 668 ],
669 }], 669 }],
670 ], 670 ],
671 }, 671 },
672 ], 672 ],
673 }], 673 }],
674 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 674 ['os_posix==1 and OS!="mac"', {
675 'targets': [ 675 'targets': [
676 { 676 {
677 'target_name': 'test_shell_resources', 677 'target_name': 'test_shell_resources',
678 'type': 'none', 678 'type': 'none',
679 'actions': [ 679 'actions': [
680 { 680 {
681 'action_name': 'test_shell_resources', 681 'action_name': 'test_shell_resources',
682 'variables': { 682 'variables': {
683 'grit_path': '../../../tools/grit/grit.py', 683 'grit_path': '../../../tools/grit/grit.py',
684 'input_path': './test_shell_resources.grd', 684 'input_path': './test_shell_resources.grd',
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 ], 753 ],
754 }], 754 }],
755 ], 755 ],
756 } 756 }
757 757
758 # Local Variables: 758 # Local Variables:
759 # tab-width:2 759 # tab-width:2
760 # indent-tabs-mode:nil 760 # indent-tabs-mode:nil
761 # End: 761 # End:
762 # vim: set expandtab tabstop=2 shiftwidth=2: 762 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« ui/ui.gyp ('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