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 }, | 8 }, |
9 'includes': [ | 9 'includes': [ |
10 '../build/common.gypi', | 10 '../build/common.gypi', |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
359 'direct_dependent_settings': { | 359 'direct_dependent_settings': { |
360 'include_dirs': [ | 360 'include_dirs': [ |
361 '..', | 361 '..', |
362 ], | 362 ], |
363 }, | 363 }, |
364 # These warnings are needed for the files in third_party\dmg_fp. | 364 # These warnings are needed for the files in third_party\dmg_fp. |
365 'msvs_disabled_warnings': [ | 365 'msvs_disabled_warnings': [ |
366 4244, 4554, 4018, 4102, | 366 4244, 4554, 4018, 4102, |
367 ], | 367 ], |
368 'conditions': [ | 368 'conditions': [ |
369 [ 'OS == "linux"', { | 369 [ 'OS == "linux" or OS == "freebsd"', { |
370 'variables' : { | 370 'variables' : { |
371 'linux_use_tcmalloc%': 0, | 371 'linux_use_tcmalloc%': 0, |
372 }, | 372 }, |
373 'sources/': [ ['exclude', '_(mac|win|chromeos)\\.cc$'], | 373 'sources/': [ ['exclude', '_(mac|win|chromeos)\\.cc$'], |
374 ['exclude', '\\.mm?$' ] ], | 374 ['exclude', '\\.mm?$' ] ], |
375 'sources!': [ | 375 'sources!': [ |
376 # Linux has an implementation of idle_timer that depends | 376 # Linux has an implementation of idle_timer that depends |
377 # on XScreenSaver, but it's unclear if we want it yet, | 377 # on XScreenSaver, but it's unclear if we want it yet, |
378 # so use idle_timer_none.cc instead. | 378 # so use idle_timer_none.cc instead. |
379 'idle_timer.cc', | 379 'idle_timer.cc', |
(...skipping 11 matching lines...) Expand all Loading... | |
391 ], | 391 ], |
392 ], | 392 ], |
393 'dependencies': [ | 393 'dependencies': [ |
394 '../build/util/build_util.gyp:lastchange', | 394 '../build/util/build_util.gyp:lastchange', |
395 '../build/linux/system.gyp:gtk', | 395 '../build/linux/system.gyp:gtk', |
396 '../build/linux/system.gyp:nss', | 396 '../build/linux/system.gyp:nss', |
397 ], | 397 ], |
398 'cflags': [ | 398 'cflags': [ |
399 '-Wno-write-strings', | 399 '-Wno-write-strings', |
400 ], | 400 ], |
401 'link_settings': { | 401 » 'conditions': [ |
Nico
2009/09/07 18:32:15
Since this is a python dict, this 'conditions' (si
| |
402 'libraries': [ | 402 » [ 'OS == "linux"', { |
403 # We need rt for clock_gettime(). | 403 » 'link_settings': { |
404 '-lrt', | 404 » » 'libraries': [ |
405 ], | 405 # We need rt for clock_gettime(). |
406 }, | 406 '-lrt', |
407 ], | |
408 }, | |
409 }, | |
410 ] ], | |
407 'export_dependent_settings': [ | 411 'export_dependent_settings': [ |
408 '../build/linux/system.gyp:gtk', | 412 '../build/linux/system.gyp:gtk', |
409 ], | 413 ], |
410 }, | 414 }, |
411 { # else: OS != "linux" | 415 { # else: OS != "linux" && OS != "freebsd" |
412 'sources/': [ | 416 'sources/': [ |
413 ['exclude', '/xdg_mime/'], | 417 ['exclude', '/xdg_mime/'], |
414 ], | 418 ], |
415 'sources!': [ | 419 'sources!': [ |
416 'crypto/signature_verifier_nss.cc', | 420 'crypto/signature_verifier_nss.cc', |
417 'atomicops_internals_x86_gcc.cc', | 421 'atomicops_internals_x86_gcc.cc', |
418 'directory_watcher_inotify.cc', | 422 'directory_watcher_inotify.cc', |
419 'hmac_nss.cc', | 423 'hmac_nss.cc', |
420 'idle_timer_none.cc', | 424 'idle_timer_none.cc', |
421 'linux_util.cc', | 425 'linux_util.cc', |
422 'message_pump_glib.cc', | 426 'message_pump_glib.cc', |
423 'nss_init.cc', | 427 'nss_init.cc', |
424 'nss_init.h', | 428 'nss_init.h', |
425 'time_posix.cc', | 429 'time_posix.cc', |
426 ], | 430 ], |
427 } | 431 } |
428 ], | 432 ], |
429 [ 'GENERATOR == "quentin"', { | 433 [ 'GENERATOR == "quentin"', { |
430 # Quentin builds don't have a recent enough glibc to include the | 434 # Quentin builds don't have a recent enough glibc to include the |
431 # inotify headers | 435 # inotify headers |
432 'sources!': [ | 436 'sources!': [ |
433 'directory_watcher_inotify.cc', | 437 'directory_watcher_inotify.cc', |
434 ], | 438 ], |
435 'sources': [ | 439 'sources': [ |
436 'directory_watcher_stub.cc', | 440 'directory_watcher_stub.cc', |
437 ], | 441 ], |
438 }, | 442 }, |
439 ], | 443 ], |
444 [ 'OS == "freebsd"', { | |
445 'sources!': [ | |
446 'directory_watcher_inotify.cc', | |
447 ], | |
448 'sources': [ | |
449 'directory_watcher_stub.cc', | |
450 ], | |
451 }, | |
452 ], | |
440 [ 'OS == "mac"', { | 453 [ 'OS == "mac"', { |
441 'sources/': [ ['exclude', '_(linux|win|chromeos)\\.cc$'] ], | 454 'sources/': [ ['exclude', '_(linux|win|chromeos)\\.cc$'] ], |
442 'sources!': [ | 455 'sources!': [ |
443 ], | 456 ], |
444 'link_settings': { | 457 'link_settings': { |
445 'libraries': [ | 458 'libraries': [ |
446 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', | 459 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
447 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', | 460 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
448 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', | 461 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', |
449 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 462 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
537 'base', | 550 'base', |
538 '../skia/skia.gyp:skia', | 551 '../skia/skia.gyp:skia', |
539 '../third_party/libjpeg/libjpeg.gyp:libjpeg', | 552 '../third_party/libjpeg/libjpeg.gyp:libjpeg', |
540 '../third_party/libpng/libpng.gyp:libpng', | 553 '../third_party/libpng/libpng.gyp:libpng', |
541 '../third_party/zlib/zlib.gyp:zlib', | 554 '../third_party/zlib/zlib.gyp:zlib', |
542 ], | 555 ], |
543 'export_dependent_settings': [ | 556 'export_dependent_settings': [ |
544 'base', | 557 'base', |
545 ], | 558 ], |
546 'conditions': [ | 559 'conditions': [ |
547 ['OS == "linux"', { | 560 ['OS == "linux" or OS == "freebsd"', { |
548 'dependencies': [ | 561 'dependencies': [ |
549 '../build/linux/system.gyp:gtk', | 562 '../build/linux/system.gyp:gtk', |
550 ], | 563 ], |
551 }], | 564 }], |
552 [ 'OS != "win"', { 'sources!': [ | 565 [ 'OS != "win"', { 'sources!': [ |
553 'gfx/gdi_util.cc', | 566 'gfx/gdi_util.cc', |
554 'gfx/native_theme.cc', | 567 'gfx/native_theme.cc', |
555 ], | 568 ], |
556 }], | 569 }], |
557 [ 'OS != "linux"', { 'sources!': [ | 570 [ 'OS != "linux" and OS != "freebsd"', { 'sources!': [ |
558 'gfx/gtk_native_view_id_manager.cc', | 571 'gfx/gtk_native_view_id_manager.cc', |
559 'gfx/gtk_util.cc', | 572 'gfx/gtk_util.cc', |
560 'gfx/native_widget_types_gtk.cc', | 573 'gfx/native_widget_types_gtk.cc', |
561 ], | 574 ], |
562 }], | 575 }], |
563 ], | 576 ], |
564 }, | 577 }, |
565 { | 578 { |
566 'target_name': 'base_unittests', | 579 'target_name': 'base_unittests', |
567 'type': 'executable', | 580 'type': 'executable', |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
656 '../third_party/icu38/public/common', | 669 '../third_party/icu38/public/common', |
657 ], | 670 ], |
658 'dependencies': [ | 671 'dependencies': [ |
659 'base', | 672 'base', |
660 'base_gfx', | 673 'base_gfx', |
661 '../skia/skia.gyp:skia', | 674 '../skia/skia.gyp:skia', |
662 '../testing/gmock.gyp:gmock', | 675 '../testing/gmock.gyp:gmock', |
663 '../testing/gtest.gyp:gtest', | 676 '../testing/gtest.gyp:gtest', |
664 ], | 677 ], |
665 'conditions': [ | 678 'conditions': [ |
666 ['OS == "linux"', { | 679 ['OS == "linux" or OS == "freebsd"', { |
667 'sources!': [ | 680 'sources!': [ |
668 'file_version_info_unittest.cc', | 681 'file_version_info_unittest.cc', |
669 # Linux has an implementation of idle_timer, but it's unclear | 682 # Linux has an implementation of idle_timer, but it's unclear |
670 # if we want it yet, so leave it 'unported' for now. | 683 # if we want it yet, so leave it 'unported' for now. |
671 'idletimer_unittest.cc', | 684 'idletimer_unittest.cc', |
672 'worker_pool_linux_unittest.cc', | 685 'worker_pool_linux_unittest.cc', |
673 ], | 686 ], |
674 'dependencies': [ | 687 'dependencies': [ |
675 '../build/linux/system.gyp:gtk', | 688 '../build/linux/system.gyp:gtk', |
676 '../build/linux/system.gyp:nss', | 689 '../build/linux/system.gyp:nss', |
677 ], | 690 ], |
678 }, { # OS != "linux" | 691 }, { # OS != "linux" and OS != "freebsd" |
679 'sources!': [ | 692 'sources!': [ |
680 'message_pump_glib_unittest.cc', | 693 'message_pump_glib_unittest.cc', |
681 ] | 694 ] |
682 }], | 695 }], |
683 ['OS != "mac"', { | 696 ['OS != "mac"', { |
684 'sources!': [ | 697 'sources!': [ |
685 'mac_util_unittest.cc', | 698 'mac_util_unittest.cc', |
686 ], | 699 ], |
687 }], | 700 }], |
688 # This is needed to trigger the dll copy step on windows. | 701 # This is needed to trigger the dll copy step on windows. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
720 'base', | 733 'base', |
721 ], | 734 ], |
722 'sources': [ | 735 'sources': [ |
723 'test_file_util.h', | 736 'test_file_util.h', |
724 'test_file_util_linux.cc', | 737 'test_file_util_linux.cc', |
725 'test_file_util_mac.cc', | 738 'test_file_util_mac.cc', |
726 'test_file_util_posix.cc', | 739 'test_file_util_posix.cc', |
727 'test_file_util_win.cc', | 740 'test_file_util_win.cc', |
728 ], | 741 ], |
729 'conditions': [ | 742 'conditions': [ |
730 [ 'OS == "linux"', { | 743 [ 'OS == "linux" or OS == "freebsd"', { |
731 'sources/': [ ['exclude', '_(mac|win|chromeos)\\.cc$'], | 744 'sources/': [ ['exclude', '_(mac|win|chromeos)\\.cc$'], |
732 ['exclude', '\\.mm?$' ] ], | 745 ['exclude', '\\.mm?$' ] ], |
733 'conditions': [ | 746 'conditions': [ |
734 [ 'chromeos==1', { | 747 [ 'chromeos==1', { |
735 'sources/': [ ['include', '_chromeos\\.cc$'] ] | 748 'sources/': [ ['include', '_chromeos\\.cc$'] ] |
736 }, | 749 }, |
737 ], | 750 ], |
738 ], | 751 ], |
739 }, | 752 }, |
740 ], | 753 ], |
(...skipping 18 matching lines...) Expand all Loading... | |
759 'sources': [ | 772 'sources': [ |
760 'perftimer.cc', | 773 'perftimer.cc', |
761 'run_all_perftests.cc', | 774 'run_all_perftests.cc', |
762 ], | 775 ], |
763 'direct_dependent_settings': { | 776 'direct_dependent_settings': { |
764 'defines': [ | 777 'defines': [ |
765 'PERF_TEST', | 778 'PERF_TEST', |
766 ], | 779 ], |
767 }, | 780 }, |
768 'conditions': [ | 781 'conditions': [ |
769 ['OS == "linux"', { | 782 ['OS == "linux" or OS == "freebsd"', { |
770 'dependencies': [ | 783 'dependencies': [ |
771 # Needed to handle the #include chain: | 784 # Needed to handle the #include chain: |
772 # base/perf_test_suite.h | 785 # base/perf_test_suite.h |
773 # base/test_suite.h | 786 # base/test_suite.h |
774 # gtk/gtk.h | 787 # gtk/gtk.h |
775 '../build/linux/system.gyp:gtk', | 788 '../build/linux/system.gyp:gtk', |
776 ], | 789 ], |
777 }], | 790 }], |
778 ], | 791 ], |
779 }, | 792 }, |
780 ], | 793 ], |
781 'conditions': [ | 794 'conditions': [ |
782 [ 'OS == "win"', { | 795 [ 'OS == "win"', { |
783 'targets': [ | 796 'targets': [ |
784 { | 797 { |
785 'target_name': 'debug_message', | 798 'target_name': 'debug_message', |
786 'type': 'executable', | 799 'type': 'executable', |
787 'sources': [ | 800 'sources': [ |
788 'debug_message.cc', | 801 'debug_message.cc', |
789 ], | 802 ], |
790 'msvs_settings': { | 803 'msvs_settings': { |
791 'VCLinkerTool': { | 804 'VCLinkerTool': { |
792 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS | 805 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
793 }, | 806 }, |
794 }, | 807 }, |
795 }, | 808 }, |
796 ], | 809 ], |
797 }], | 810 }], |
798 [ 'OS == "linux"', { | 811 [ 'OS == "linux" or OS == "freebsd"', { |
799 'targets': [ | 812 'targets': [ |
800 { | 813 { |
801 'target_name': 'linux_versioninfo', | 814 'target_name': 'linux_versioninfo', |
802 'type': '<(library)', | 815 'type': '<(library)', |
803 'sources': [ | 816 'sources': [ |
804 'file_version_info_linux.cc', | 817 'file_version_info_linux.cc', |
805 ], | 818 ], |
806 'include_dirs': [ | 819 'include_dirs': [ |
807 '..', | 820 '..', |
808 '<(SHARED_INTERMEDIATE_DIR)', | 821 '<(SHARED_INTERMEDIATE_DIR)', |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
849 '<@(_outputs)', | 862 '<@(_outputs)', |
850 ], | 863 ], |
851 'message': 'Generating version information', | 864 'message': 'Generating version information', |
852 }, | 865 }, |
853 ], | 866 ], |
854 }, | 867 }, |
855 ], | 868 ], |
856 }], | 869 }], |
857 ], | 870 ], |
858 } | 871 } |
OLD | NEW |