OLD | NEW |
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, | 7 'chromium_code': 1, |
8 'test_shell_windows_resource_files': [ | 8 'test_shell_windows_resource_files': [ |
9 'resources/test_shell.rc', | 9 'resources/test_shell.rc', |
10 'resources/pan_east.cur', | 10 'resources/pan_east.cur', |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 '../../../base/base.gyp:base', | 115 '../../../base/base.gyp:base', |
116 '../../../net/net.gyp:net', | 116 '../../../net/net.gyp:net', |
117 '../../../third_party/WebKit/WebCore/WebCore.gyp/WebCore.gyp:webcore', | 117 '../../../third_party/WebKit/WebCore/WebCore.gyp/WebCore.gyp:webcore', |
118 '../../webkit.gyp:glue', | 118 '../../webkit.gyp:glue', |
119 '../../api/WebKit.gyp:webkit', | 119 '../../api/WebKit.gyp:webkit', |
120 ], | 120 ], |
121 'conditions': [ | 121 'conditions': [ |
122 # http://code.google.com/p/chromium/issues/detail?id=18337 | 122 # http://code.google.com/p/chromium/issues/detail?id=18337 |
123 ['target_arch!="x64"', { | 123 ['target_arch!="x64"', { |
124 'dependencies': [ | 124 'dependencies': [ |
125 'npapi_layout_test_plugin', | |
126 'npapi_test_plugin', | 125 'npapi_test_plugin', |
127 ], | 126 ], |
128 }], | 127 }], |
129 ['OS=="linux"', { | 128 ['OS=="linux"', { |
130 'dependencies': [ | 129 'dependencies': [ |
131 'test_shell_resources', | 130 'test_shell_resources', |
132 '../../../build/linux/system.gyp:gtk', | 131 '../../../build/linux/system.gyp:gtk', |
133 '../../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | 132 '../../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
134 ], | 133 ], |
135 # for: test_shell_gtk.cc | 134 # for: test_shell_gtk.cc |
136 'cflags': ['-Wno-multichar'], | 135 'cflags': ['-Wno-multichar'], |
137 }, { # else: OS!=linux | 136 }, { # else: OS!=linux |
138 'sources/': [ | 137 'sources/': [ |
139 ['exclude', '_gtk\\.cc$'], | 138 ['exclude', '_gtk\\.cc$'], |
140 ['exclude', '_x11\\.cc$'], | 139 ['exclude', '_x11\\.cc$'], |
141 ], | 140 ], |
142 }], | 141 }], |
143 ['OS=="linux" and target_arch!="x64"', { | 142 ['OS=="linux"', { |
144 # See below TODO in the Windows branch. | 143 # See below TODO in the Windows branch. |
145 'copies': [ | 144 'copies': [ |
146 { | 145 { |
147 'destination': '<(PRODUCT_DIR)/plugins', | 146 'destination': '<(PRODUCT_DIR)/plugins', |
148 'files': ['<(PRODUCT_DIR)/libnpapi_layout_test_plugin.so'], | 147 'files': ['<(PRODUCT_DIR)/libnpapi_layout_test_plugin.so'], |
149 }, | 148 }, |
150 ], | 149 ], |
151 }], | 150 }], |
152 ['OS!="mac"', { | 151 ['OS!="mac"', { |
153 'sources/': [ | 152 'sources/': [ |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 'msvs_disabled_warnings': [ 4800 ], | 460 'msvs_disabled_warnings': [ 4800 ], |
462 }, { # else: OS!=win | 461 }, { # else: OS!=win |
463 'sources!': [ | 462 'sources!': [ |
464 '../../../skia/ext/vector_canvas_unittest.cc', | 463 '../../../skia/ext/vector_canvas_unittest.cc', |
465 '../webcore_unit_tests/UniscribeHelper_unittest.cpp', | 464 '../webcore_unit_tests/UniscribeHelper_unittest.cpp', |
466 '../webcore_unit_tests/TransparencyWin_unittest.cpp', | 465 '../webcore_unit_tests/TransparencyWin_unittest.cpp', |
467 ], | 466 ], |
468 }], | 467 }], |
469 ], | 468 ], |
470 }, | 469 }, |
| 470 { |
| 471 'target_name': 'npapi_layout_test_plugin', |
| 472 'type': 'loadable_module', |
| 473 'mac_bundle': 1, |
| 474 'msvs_guid': 'BE6D5659-A8D5-4890-A42C-090DD10EF62C', |
| 475 'sources': [ |
| 476 '../npapi_layout_test_plugin/PluginObject.cpp', |
| 477 '../npapi_layout_test_plugin/TestObject.cpp', |
| 478 '../npapi_layout_test_plugin/main.cpp', |
| 479 '../npapi_layout_test_plugin/npapi_layout_test_plugin.def', |
| 480 '../npapi_layout_test_plugin/npapi_layout_test_plugin.rc', |
| 481 ], |
| 482 'include_dirs': [ |
| 483 '../../..', |
| 484 ], |
| 485 'dependencies': [ |
| 486 '../../../third_party/npapi/npapi.gyp:npapi', |
| 487 '../../../third_party/WebKit/JavaScriptCore/JavaScriptCore.gyp/JavaScrip
tCore.gyp:wtf', |
| 488 ], |
| 489 'msvs_disabled_warnings': [ 4996 ], |
| 490 'mac_bundle_resources': [ |
| 491 '../npapi_layout_test_plugin/Info.r', |
| 492 ], |
| 493 'xcode_settings': { |
| 494 'INFOPLIST_FILE': '../npapi_layout_test_plugin/Info.plist', |
| 495 }, |
| 496 'conditions': [ |
| 497 ['OS!="win"', { |
| 498 'sources!': [ |
| 499 '../npapi_layout_test_plugin/npapi_layout_test_plugin.def', |
| 500 '../npapi_layout_test_plugin/npapi_layout_test_plugin.rc', |
| 501 ], |
| 502 # TODO(bradnelson): |
| 503 # This copy should really live here, as a post-build step, |
| 504 # but it's currently being implemented via |
| 505 # AdditionalDependencies, which tries to do the copy before |
| 506 # the file is built... |
| 507 # |
| 508 }, { # OS == "win" |
| 509 # # The old VS build would explicitly copy the .dll into the |
| 510 # # plugins subdirectory like this. It might be possible to |
| 511 # # use the 'product_dir' setting to build directly into |
| 512 # # plugins/ (as is done on Linux), but we'd need to verify |
| 513 # # that nothing breaks first. |
| 514 # 'copies': [ |
| 515 # { |
| 516 # 'destination': '<(PRODUCT_DIR)/plugins', |
| 517 # 'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'], |
| 518 # }, |
| 519 # ], |
| 520 'link_settings': { |
| 521 'libraries': [ |
| 522 "winmm.lib", |
| 523 ], |
| 524 }, |
| 525 }], |
| 526 ['OS=="mac"', { |
| 527 'product_name': 'TestNetscapePlugIn', |
| 528 'product_extension': 'plugin', |
| 529 'link_settings': { |
| 530 'libraries': [ |
| 531 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
| 532 ], |
| 533 }, |
| 534 }], |
| 535 ['OS=="linux" and target_arch=="x64"', { |
| 536 # Shared libraries need -fPIC on x86-64 |
| 537 'cflags': ['-fPIC'] |
| 538 }], |
| 539 ], |
| 540 }, |
471 ], | 541 ], |
472 'conditions': [ | 542 'conditions': [ |
473 # http://code.google.com/p/chromium/issues/detail?id=18337 | |
474 ['target_arch!="x64"', { | 543 ['target_arch!="x64"', { |
475 'targets': [ | 544 'targets': [ |
476 { | 545 { |
477 'target_name': 'npapi_layout_test_plugin', | |
478 'type': 'loadable_module', | |
479 'mac_bundle': 1, | |
480 'msvs_guid': 'BE6D5659-A8D5-4890-A42C-090DD10EF62C', | |
481 'sources': [ | |
482 '../npapi_layout_test_plugin/PluginObject.cpp', | |
483 '../npapi_layout_test_plugin/TestObject.cpp', | |
484 '../npapi_layout_test_plugin/main.cpp', | |
485 '../npapi_layout_test_plugin/npapi_layout_test_plugin.def', | |
486 '../npapi_layout_test_plugin/npapi_layout_test_plugin.rc', | |
487 ], | |
488 'include_dirs': [ | |
489 '../../..', | |
490 ], | |
491 'dependencies': [ | |
492 '../../../third_party/npapi/npapi.gyp:npapi', | |
493 '../../../third_party/WebKit/JavaScriptCore/JavaScriptCore.gyp/JavaS
criptCore.gyp:wtf', | |
494 ], | |
495 'msvs_disabled_warnings': [ 4996 ], | |
496 'mac_bundle_resources': [ | |
497 '../npapi_layout_test_plugin/Info.r', | |
498 ], | |
499 'xcode_settings': { | |
500 'INFOPLIST_FILE': '../npapi_layout_test_plugin/Info.plist', | |
501 }, | |
502 'conditions': [ | |
503 ['OS!="win"', { | |
504 'sources!': [ | |
505 '../npapi_layout_test_plugin/npapi_layout_test_plugin.def', | |
506 '../npapi_layout_test_plugin/npapi_layout_test_plugin.rc', | |
507 ], | |
508 # TODO(bradnelson): | |
509 # This copy should really live here, as a post-build step, | |
510 # but it's currently being implemented via | |
511 # AdditionalDependencies, which tries to do the copy before | |
512 # the file is built... | |
513 # | |
514 }, { # OS == "win" | |
515 # # The old VS build would explicitly copy the .dll into the | |
516 # # plugins subdirectory like this. It might be possible to | |
517 # # use the 'product_dir' setting to build directly into | |
518 # # plugins/ (as is done on Linux), but we'd need to verify | |
519 # # that nothing breaks first. | |
520 # 'copies': [ | |
521 # { | |
522 # 'destination': '<(PRODUCT_DIR)/plugins', | |
523 # 'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'], | |
524 # }, | |
525 # ], | |
526 'link_settings': { | |
527 'libraries': [ | |
528 "winmm.lib", | |
529 ], | |
530 }, | |
531 }], | |
532 ['OS=="mac"', { | |
533 'product_name': 'TestNetscapePlugIn', | |
534 'product_extension': 'plugin', | |
535 'link_settings': { | |
536 'libraries': [ | |
537 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', | |
538 ], | |
539 }, | |
540 }], | |
541 ], | |
542 }, | |
543 { | |
544 'target_name': 'npapi_test_plugin', | 546 'target_name': 'npapi_test_plugin', |
545 'type': 'loadable_module', | 547 'type': 'loadable_module', |
546 'mac_bundle': 1, | 548 'mac_bundle': 1, |
547 'msvs_guid': '0D04AEC1-6B68-492C-BCCF-808DFD69ABC6', | 549 'msvs_guid': '0D04AEC1-6B68-492C-BCCF-808DFD69ABC6', |
548 'dependencies': [ | 550 'dependencies': [ |
549 '../../../base/base.gyp:base', | 551 '../../../base/base.gyp:base', |
550 '../../../third_party/icu/icu.gyp:icuuc', | 552 '../../../third_party/icu/icu.gyp:icuuc', |
551 '../../../third_party/npapi/npapi.gyp:npapi', | 553 '../../../third_party/npapi/npapi.gyp:npapi', |
552 ], | 554 ], |
553 'sources': [ | 555 'sources': [ |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 'include_dirs': [ | 599 'include_dirs': [ |
598 '../../..', | 600 '../../..', |
599 ], | 601 ], |
600 'xcode_settings': { | 602 'xcode_settings': { |
601 'INFOPLIST_FILE': '../../glue/plugins/test/Info.plist', | 603 'INFOPLIST_FILE': '../../glue/plugins/test/Info.plist', |
602 }, | 604 }, |
603 'conditions': [ | 605 'conditions': [ |
604 ['OS!="win"', { | 606 ['OS!="win"', { |
605 'sources!': [ | 607 'sources!': [ |
606 # TODO(port): Port these. | 608 # TODO(port): Port these. |
607 | 609 # plugin_npobject_lifetime_test.cc has win32-isms |
608 # plugin_npobject_lifetime_test.cc has win32-isms | |
609 # (HWND, CALLBACK). | 610 # (HWND, CALLBACK). |
610 '../../glue/plugins/test/plugin_npobject_lifetime_test.cc', | 611 '../../glue/plugins/test/plugin_npobject_lifetime_test.cc', |
611 | 612 # The windowed/windowless APIs are necessarily |
612 # The windowed/windowless APIs are necessarily | |
613 # platform-specific. | 613 # platform-specific. |
614 '../../glue/plugins/test/plugin_window_size_test.cc', | 614 '../../glue/plugins/test/plugin_window_size_test.cc', |
615 '../../glue/plugins/test/plugin_windowed_test.cc', | 615 '../../glue/plugins/test/plugin_windowed_test.cc', |
616 '../../glue/plugins/test/plugin_windowless_test.cc', | 616 '../../glue/plugins/test/plugin_windowless_test.cc', |
617 | 617 # Seems windows specific. |
618 # Seems windows specific. | |
619 '../../glue/plugins/test/plugin_create_instance_in_paint.cc', | 618 '../../glue/plugins/test/plugin_create_instance_in_paint.cc', |
620 '../../glue/plugins/test/plugin_create_instance_in_paint.h', | 619 '../../glue/plugins/test/plugin_create_instance_in_paint.h', |
621 | 620 # windows-specific resources |
622 # windows-specific resources | |
623 '../../glue/plugins/test/npapi_test.def', | 621 '../../glue/plugins/test/npapi_test.def', |
624 '../../glue/plugins/test/npapi_test.rc', | 622 '../../glue/plugins/test/npapi_test.rc', |
625 ], | 623 ], |
626 }], | 624 }], |
627 ['OS=="mac"', { | 625 ['OS=="mac"', { |
628 'link_settings': { | 626 'link_settings': { |
629 'libraries': [ | 627 'libraries': [ |
630 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', | 628 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
631 ], | 629 ], |
632 }, | 630 }, |
633 }], | 631 }], |
| 632 ['OS=="linux" and target_arch=="x64"', { |
| 633 # Shared libraries need -fPIC on x86-64 |
| 634 'cflags': ['-fPIC'] |
| 635 }], |
634 ], | 636 ], |
635 }, | 637 }, |
636 ], | 638 ], |
637 }], | 639 }], |
638 ['OS=="linux"', { | 640 ['OS=="linux"', { |
639 'targets': [ | 641 'targets': [ |
640 { | 642 { |
641 'target_name': 'test_shell_resources', | 643 'target_name': 'test_shell_resources', |
642 'type': 'none', | 644 'type': 'none', |
643 'actions': [ | 645 'actions': [ |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 ], | 701 ], |
700 }], | 702 }], |
701 ], | 703 ], |
702 } | 704 } |
703 | 705 |
704 # Local Variables: | 706 # Local Variables: |
705 # tab-width:2 | 707 # tab-width:2 |
706 # indent-tabs-mode:nil | 708 # indent-tabs-mode:nil |
707 # End: | 709 # End: |
708 # vim: set expandtab tabstop=2 shiftwidth=2: | 710 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |