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

Side by Side Diff: base/base.gypi

Issue 14597007: Support target/host architecture with ninja iOS builds (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 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
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 'target_defaults': { 6 'target_defaults': {
7 'variables': { 7 'variables': {
8 'base_target': 0, 8 'base_target': 0,
9 }, 9 },
10 'target_conditions': [ 10 'target_conditions': [
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 ], 665 ],
666 'sources/': [ 666 'sources/': [
667 ['include', '^files/file_path_watcher_linux\\.cc$'], 667 ['include', '^files/file_path_watcher_linux\\.cc$'],
668 ['include', '^process_util_linux\\.cc$'], 668 ['include', '^process_util_linux\\.cc$'],
669 ['include', '^posix/unix_domain_socket_linux\\.cc$'], 669 ['include', '^posix/unix_domain_socket_linux\\.cc$'],
670 ['include', '^strings/sys_string_conversions_posix\\.cc$'], 670 ['include', '^strings/sys_string_conversions_posix\\.cc$'],
671 ['include', '^sys_info_linux\\.cc$'], 671 ['include', '^sys_info_linux\\.cc$'],
672 ['include', '^worker_pool_linux\\.cc$'], 672 ['include', '^worker_pool_linux\\.cc$'],
673 ], 673 ],
674 }], 674 }],
675 ['OS == "ios"', { 675 ['OS == "ios" and _toolset != "host"', {
676 'sources/': [ 676 'sources/': [
677 # Pull in specific Mac files for iOS (which have been filtered out 677 # Pull in specific Mac files for iOS (which have been filtered out
678 # by file name rules). 678 # by file name rules).
679 ['include', '^atomicops_internals_mac\\.'], 679 ['include', '^atomicops_internals_mac\\.'],
680 ['include', '^base_paths_mac\\.'], 680 ['include', '^base_paths_mac\\.'],
681 ['include', '^file_util_mac\\.'], 681 ['include', '^file_util_mac\\.'],
682 ['include', '^file_version_info_mac\\.'], 682 ['include', '^file_version_info_mac\\.'],
683 ['include', '^mac/bundle_locations\\.'], 683 ['include', '^mac/bundle_locations\\.'],
684 ['include', '^mac/foundation_util\\.'], 684 ['include', '^mac/foundation_util\\.'],
685 ['include', '^mac/mac_logging\\.'], 685 ['include', '^mac/mac_logging\\.'],
686 ['include', '^mac/objc_property_releaser\\.'], 686 ['include', '^mac/objc_property_releaser\\.'],
687 ['include', '^mac/scoped_mach_port\\.'], 687 ['include', '^mac/scoped_mach_port\\.'],
688 ['include', '^mac/scoped_nsautorelease_pool\\.'], 688 ['include', '^mac/scoped_nsautorelease_pool\\.'],
689 ['include', '^memory/discardable_memory_mac\\.'], 689 ['include', '^memory/discardable_memory_mac\\.'],
690 ['include', '^message_pump_mac\\.'], 690 ['include', '^message_pump_mac\\.'],
691 ['include', '^threading/platform_thread_mac\\.'], 691 ['include', '^threading/platform_thread_mac\\.'],
692 ['include', '^strings/sys_string_conversions_mac\\.'], 692 ['include', '^strings/sys_string_conversions_mac\\.'],
693 ['include', '^time_mac\\.'], 693 ['include', '^time_mac\\.'],
694 ['include', '^worker_pool_mac\\.'], 694 ['include', '^worker_pool_mac\\.'],
695 # Exclude all process_util except the minimal implementation 695 # Exclude all process_util except the minimal implementation
696 # needed on iOS (mostly for unit tests). 696 # needed on iOS (mostly for unit tests).
697 ['exclude', '^process_util'], 697 ['exclude', '^process_util'],
698 ['include', '^process_util_ios\\.mm$'], 698 ['include', '^process_util_ios\\.mm$'],
699 ], 699 ],
700 'sources!': [ 700 'sources!': [
701 'message_pump_libevent.cc' 701 'message_pump_libevent.cc'
702 ], 702 ],
703 }], 703 }],
704 ['OS == "ios" and _toolset == "host"', {
705 'sources/': [
706 # Copied filename_rules to switch from iOS to Mac inclusions.
707 ['include', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'],
708 ['include', '(^|/)(cocoa|mac)/'],
709 ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'],
710 ['exclude', '(^|/)ios/'],
711 ]
712 }],
704 ['OS != "mac" or >(nacl_untrusted_build)==1', { 713 ['OS != "mac" or >(nacl_untrusted_build)==1', {
705 'sources!': [ 714 'sources!': [
706 'mac/scoped_aedesc.h' 715 'mac/scoped_aedesc.h'
707 ], 716 ],
708 }], 717 }],
709 # For now, just test the *BSD platforms enough to exclude them. 718 # For now, just test the *BSD platforms enough to exclude them.
710 # Subsequent changes will include them further. 719 # Subsequent changes will include them further.
711 ['OS != "freebsd" or >(nacl_untrusted_build)==1', { 720 ['OS != "freebsd" or >(nacl_untrusted_build)==1', {
712 'sources/': [ ['exclude', '_freebsd\\.cc$'] ], 721 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
713 }, 722 },
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 ['<(use_system_nspr)==1 and >(nacl_untrusted_build)==0', { 792 ['<(use_system_nspr)==1 and >(nacl_untrusted_build)==0', {
784 'sources/': [ 793 'sources/': [
785 ['exclude', '^third_party/nspr/'], 794 ['exclude', '^third_party/nspr/'],
786 ], 795 ],
787 }], 796 }],
788 ], 797 ],
789 }], 798 }],
790 ], 799 ],
791 }, 800 },
792 } 801 }
OLDNEW
« no previous file with comments | « base/base.gyp ('k') | breakpad/breakpad.gyp » ('j') | breakpad/breakpad.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698