OLD | NEW |
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 # IMPORTANT: | 5 # IMPORTANT: |
6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
8 { | 8 { |
9 # Variables expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
(...skipping 4181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4192 '-Wno-unnamed-type-template-args', | 4192 '-Wno-unnamed-type-template-args', |
4193 # Match OS X clang C++11 warning settings. | 4193 # Match OS X clang C++11 warning settings. |
4194 '-Wno-c++11-narrowing', | 4194 '-Wno-c++11-narrowing', |
4195 ], | 4195 ], |
4196 }, | 4196 }, |
4197 'target_conditions': [ | 4197 'target_conditions': [ |
4198 ['_toolset=="host"', { | 4198 ['_toolset=="host"', { |
4199 'xcode_settings': { | 4199 'xcode_settings': { |
4200 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot | 4200 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot |
4201 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', | 4201 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', |
| 4202 'ARCHS': [ |
| 4203 'x86_64' |
| 4204 ], |
4202 }, | 4205 }, |
4203 'conditions': [ | |
4204 ['"<(GENERATOR)"!="xcode"', { | |
4205 'xcode_settings': { 'ARCHS': [ 'x86_64' ] }, | |
4206 }], | |
4207 ], | |
4208 }], | 4206 }], |
4209 ['_toolset=="target"', { | 4207 ['_toolset=="target"', { |
4210 'xcode_settings': { | 4208 'xcode_settings': { |
4211 # This section should be for overriding host settings. But, | 4209 # This section should be for overriding host settings. But, |
4212 # since we can't negate the iphone deployment target above, we | 4210 # since we can't negate the iphone deployment target above, we |
4213 # instead set it here for target only. | 4211 # instead set it here for target only. |
4214 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)', | 4212 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)', |
4215 }, | 4213 }, |
4216 'conditions': [ | |
4217 ['target_arch=="armv7" and "<(GENERATOR)"!="xcode"', { | |
4218 'xcode_settings': { 'ARCHS': [ 'armv7' ]}, | |
4219 }, { | |
4220 'xcode_settings': { 'ARCHS': [ 'i386' ] }, | |
4221 }], | |
4222 ], | |
4223 }], | 4214 }], |
4224 ['_type=="executable"', { | 4215 ['_type=="executable"', { |
4225 'configurations': { | 4216 'configurations': { |
4226 'Release_Base': { | 4217 'Release_Base': { |
4227 'xcode_settings': { | 4218 'xcode_settings': { |
4228 'DEPLOYMENT_POSTPROCESSING': 'YES', | 4219 'DEPLOYMENT_POSTPROCESSING': 'YES', |
4229 'STRIP_INSTALLED_PRODUCT': 'YES', | 4220 'STRIP_INSTALLED_PRODUCT': 'YES', |
4230 }, | 4221 }, |
4231 }, | 4222 }, |
4232 'Debug_Base': { | 4223 'Debug_Base': { |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4644 }], | 4635 }], |
4645 ['OS=="linux" and target_arch=="mipsel"', { | 4636 ['OS=="linux" and target_arch=="mipsel"', { |
4646 'make_global_settings': [ | 4637 'make_global_settings': [ |
4647 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'], | 4638 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'], |
4648 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'], | 4639 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'], |
4649 ['CC.host', '<!(which gcc)'], | 4640 ['CC.host', '<!(which gcc)'], |
4650 ['CXX.host', '<!(which g++)'], | 4641 ['CXX.host', '<!(which g++)'], |
4651 ], | 4642 ], |
4652 }], | 4643 }], |
4653 ], | 4644 ], |
4654 'configurations': { | |
4655 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! | |
4656 # This block adds *project-wide* configuration settings to each project | |
4657 # file. It's almost always wrong to put things here. Specify your | |
4658 # custom |configurations| in target_defaults to add them to targets instead. | |
4659 'conditions': [ | |
4660 ['OS=="ios"', { | |
4661 'Debug': { | |
4662 'xcode_settings': { | |
4663 # Enable 'Build Active Architecture Only' for Debug. This | |
4664 # avoids a project-level warning in Xcode. | |
4665 # Note that this configuration uses the default VALID_ARCHS value | |
4666 # because if there is a device connected Xcode sets the active arch | |
4667 # to the arch of the device. In cases where the device's arch is not | |
4668 # in VALID_ARCHS (e.g. iPhone5 is armv7s) Xcode complains because it | |
4669 # can't determine what arch to compile for. | |
4670 'ONLY_ACTIVE_ARCH': 'YES', | |
4671 }, | |
4672 }, | |
4673 'Release': { | |
4674 'xcode_settings': { | |
4675 # Override VALID_ARCHS and omit armv7s. Otherwise Xcode compiles for | |
4676 # both armv7 and armv7s, doubling the binary size. | |
4677 'VALID_ARCHS': 'armv7 i386', | |
4678 }, | |
4679 }, | |
4680 }], | |
4681 ], | |
4682 }, | |
4683 'xcode_settings': { | 4645 'xcode_settings': { |
4684 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! | 4646 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! |
4685 # This block adds *project-wide* configuration settings to each project | 4647 # This block adds *project-wide* configuration settings to each project |
4686 # file. It's almost always wrong to put things here. Specify your | 4648 # file. It's almost always wrong to put things here. Specify your |
4687 # custom xcode_settings in target_defaults to add them to targets instead. | 4649 # custom xcode_settings in target_defaults to add them to targets instead. |
4688 | 4650 |
4689 'conditions': [ | 4651 'conditions': [ |
4690 # In an Xcode Project Info window, the "Base SDK for All Configurations" | 4652 # In an Xcode Project Info window, the "Base SDK for All Configurations" |
4691 # setting sets the SDK on a project-wide basis. In order to get the | 4653 # setting sets the SDK on a project-wide basis. In order to get the |
4692 # configured SDK to show properly in the Xcode UI, SDKROOT must be set | 4654 # configured SDK to show properly in the Xcode UI, SDKROOT must be set |
(...skipping 19 matching lines...) Expand all Loading... |
4712 }], | 4674 }], |
4713 ], | 4675 ], |
4714 }, { | 4676 }, { |
4715 'SDKROOT': '<(ios_sdk_path)', # -isysroot | 4677 'SDKROOT': '<(ios_sdk_path)', # -isysroot |
4716 }], | 4678 }], |
4717 ], | 4679 ], |
4718 }], | 4680 }], |
4719 ['OS=="ios"', { | 4681 ['OS=="ios"', { |
4720 # Target both iPhone and iPad. | 4682 # Target both iPhone and iPad. |
4721 'TARGETED_DEVICE_FAMILY': '1,2', | 4683 'TARGETED_DEVICE_FAMILY': '1,2', |
| 4684 'VALID_ARCHS': 'armv7 i386', |
4722 }], | 4685 }], |
4723 ['target_arch=="x64"', { | 4686 ['target_arch=="x64"', { |
4724 'ARCHS': [ | 4687 'ARCHS': [ |
4725 'x86_64' | 4688 'x86_64' |
4726 ], | 4689 ], |
4727 }], | 4690 }], |
4728 ], | 4691 ], |
4729 | 4692 |
4730 # The Xcode generator will look for an xcode_settings section at the root | 4693 # The Xcode generator will look for an xcode_settings section at the root |
4731 # of each dict and use it to apply settings on a file-wide basis. Most | 4694 # of each dict and use it to apply settings on a file-wide basis. Most |
4732 # settings should not be here, they should be in target-specific | 4695 # settings should not be here, they should be in target-specific |
4733 # xcode_settings sections, or better yet, should use non-Xcode-specific | 4696 # xcode_settings sections, or better yet, should use non-Xcode-specific |
4734 # settings in target dicts. SYMROOT is a special case, because many other | 4697 # settings in target dicts. SYMROOT is a special case, because many other |
4735 # Xcode variables depend on it, including variables such as | 4698 # Xcode variables depend on it, including variables such as |
4736 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4699 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4737 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4700 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4738 # files to appear (when present) in the UI as actual files and not red | 4701 # files to appear (when present) in the UI as actual files and not red |
4739 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4702 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4740 # and therefore SYMROOT, needs to be set at the project level. | 4703 # and therefore SYMROOT, needs to be set at the project level. |
4741 'SYMROOT': '<(DEPTH)/xcodebuild', | 4704 'SYMROOT': '<(DEPTH)/xcodebuild', |
4742 }, | 4705 }, |
4743 } | 4706 } |
OLD | NEW |