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 4175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4186 '-Wno-unnamed-type-template-args', | 4186 '-Wno-unnamed-type-template-args', |
4187 # Match OS X clang C++11 warning settings. | 4187 # Match OS X clang C++11 warning settings. |
4188 '-Wno-c++11-narrowing', | 4188 '-Wno-c++11-narrowing', |
4189 ], | 4189 ], |
4190 }, | 4190 }, |
4191 'target_conditions': [ | 4191 'target_conditions': [ |
4192 ['_toolset=="host"', { | 4192 ['_toolset=="host"', { |
4193 'xcode_settings': { | 4193 'xcode_settings': { |
4194 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot | 4194 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot |
4195 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', | 4195 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', |
4196 'ARCHS': [ | |
4197 'x86_64' | |
4198 ], | |
4196 }, | 4199 }, |
4197 'conditions': [ | |
4198 ['"<(GENERATOR)"!="xcode"', { | |
4199 'xcode_settings': { 'ARCHS': [ 'x86_64' ] }, | |
4200 }], | |
4201 ], | |
4202 }], | 4200 }], |
4203 ['_toolset=="target"', { | 4201 ['_toolset=="target"', { |
4204 'xcode_settings': { | 4202 'xcode_settings': { |
4205 # This section should be for overriding host settings. But, | 4203 # This section should be for overriding host settings. But, |
4206 # since we can't negate the iphone deployment target above, we | 4204 # since we can't negate the iphone deployment target above, we |
4207 # instead set it here for target only. | 4205 # instead set it here for target only. |
4208 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)', | 4206 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)', |
4209 }, | 4207 }, |
4210 'conditions': [ | |
4211 ['target_arch=="armv7" and "<(GENERATOR)"!="xcode"', { | |
4212 'xcode_settings': { 'ARCHS': [ 'armv7' ]}, | |
4213 }, { | |
4214 'xcode_settings': { 'ARCHS': [ 'i386' ] }, | |
4215 }], | |
4216 ], | |
4217 }], | 4208 }], |
4218 ['_type=="executable"', { | 4209 ['_type=="executable"', { |
4219 'configurations': { | 4210 'configurations': { |
4220 'Release_Base': { | 4211 'Release_Base': { |
4221 'xcode_settings': { | 4212 'xcode_settings': { |
4222 'DEPLOYMENT_POSTPROCESSING': 'YES', | 4213 'DEPLOYMENT_POSTPROCESSING': 'YES', |
4223 'STRIP_INSTALLED_PRODUCT': 'YES', | 4214 'STRIP_INSTALLED_PRODUCT': 'YES', |
4224 }, | 4215 }, |
4225 }, | 4216 }, |
4226 'Debug_Base': { | 4217 'Debug_Base': { |
(...skipping 11 matching lines...) Expand all Loading... | |
4238 ['chromium_ios_signing', { | 4229 ['chromium_ios_signing', { |
4239 # iOS SDK wants everything for device signed. | 4230 # iOS SDK wants everything for device signed. |
4240 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer', | 4231 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer', |
4241 }, { | 4232 }, { |
4242 'CODE_SIGNING_REQUIRED': 'NO', | 4233 'CODE_SIGNING_REQUIRED': 'NO', |
4243 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '', | 4234 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '', |
4244 }], | 4235 }], |
4245 ], | 4236 ], |
4246 }, | 4237 }, |
4247 }], | 4238 }], |
4248 ['"<(GENERATOR)"=="xcode" and clang!=1', { | |
4249 'xcode_settings': { | |
4250 # It is necessary to link with the -fobjc-arc flag to use | |
4251 # subscripting on iOS < 6. | |
4252 'OTHER_LDFLAGS': [ | |
4253 '-fobjc-arc', | |
4254 ], | |
4255 }, | |
4256 }], | |
4257 ['clang==1', { | |
Nico
2013/10/07 15:33:00
Don't you still need (bits of) this to build with
justincohen
2013/10/07 16:08:02
None of this is needed anymore since we dropped iO
| |
4258 'target_conditions': [ | |
4259 ['_toolset=="target"', { | |
4260 'variables': { | |
4261 'developer_dir': '<!(xcode-select -print-path)', | |
4262 'arc_toolchain_path': '<(developer_dir)/Toolchains/XcodeDe fault.xctoolchain/usr/lib/arc', | |
4263 }, | |
4264 # It is necessary to force load libarclite from Xcode for | |
4265 # third_party/llvm-build because libarclite_* is only | |
4266 # distributed by Xcode. | |
4267 'conditions': [ | |
4268 ['"<(GENERATOR)"=="ninja" and target_arch=="armv7"', { | |
4269 'xcode_settings': { | |
4270 'OTHER_LDFLAGS': [ | |
4271 '-force_load', | |
4272 '<(arc_toolchain_path)/libarclite_iphoneos.a', | |
4273 ], | |
4274 }, | |
4275 }], | |
4276 ['"<(GENERATOR)"=="ninja" and target_arch!="armv7"', { | |
4277 'xcode_settings': { | |
4278 'OTHER_LDFLAGS': [ | |
4279 '-force_load', | |
4280 '<(arc_toolchain_path)/libarclite_iphonesimulator.a' , | |
4281 ], | |
4282 }, | |
4283 }], | |
4284 # Xcode sets target_arch at compile-time. | |
4285 ['"<(GENERATOR)"=="xcode"', { | |
4286 'xcode_settings': { | |
4287 'OTHER_LDFLAGS[arch=armv7]': [ | |
4288 '$(inherited)', | |
4289 '-force_load', | |
4290 '<(arc_toolchain_path)/libarclite_iphoneos.a', | |
4291 ], | |
4292 'OTHER_LDFLAGS[arch=i386]': [ | |
4293 '$(inherited)', | |
4294 '-force_load', | |
4295 '<(arc_toolchain_path)/libarclite_iphonesimulator.a' , | |
4296 ], | |
4297 }, | |
4298 }], | |
4299 ], | |
4300 }], | |
4301 ], | |
4302 }], | |
4303 ], | 4239 ], |
4304 }], | 4240 }], |
4305 ], # target_conditions | 4241 ], # target_conditions |
4306 }, # target_defaults | 4242 }, # target_defaults |
4307 }], # OS=="ios" | 4243 }], # OS=="ios" |
4308 ['OS=="win"', { | 4244 ['OS=="win"', { |
4309 'target_defaults': { | 4245 'target_defaults': { |
4310 'defines': [ | 4246 'defines': [ |
4311 '_WIN32_WINNT=0x0602', | 4247 '_WIN32_WINNT=0x0602', |
4312 'WINVER=0x0602', | 4248 'WINVER=0x0602', |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4638 }], | 4574 }], |
4639 ['OS=="linux" and target_arch=="mipsel"', { | 4575 ['OS=="linux" and target_arch=="mipsel"', { |
4640 'make_global_settings': [ | 4576 'make_global_settings': [ |
4641 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'], | 4577 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'], |
4642 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'], | 4578 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'], |
4643 ['CC.host', '<!(which gcc)'], | 4579 ['CC.host', '<!(which gcc)'], |
4644 ['CXX.host', '<!(which g++)'], | 4580 ['CXX.host', '<!(which g++)'], |
4645 ], | 4581 ], |
4646 }], | 4582 }], |
4647 ], | 4583 ], |
4648 'configurations': { | |
4649 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! | |
4650 # This block adds *project-wide* configuration settings to each project | |
4651 # file. It's almost always wrong to put things here. Specify your | |
4652 # custom |configurations| in target_defaults to add them to targets instead. | |
4653 'conditions': [ | |
4654 ['OS=="ios"', { | |
4655 'Debug': { | |
4656 'xcode_settings': { | |
4657 # Enable 'Build Active Architecture Only' for Debug. This | |
4658 # avoids a project-level warning in Xcode. | |
4659 # Note that this configuration uses the default VALID_ARCHS value | |
4660 # because if there is a device connected Xcode sets the active arch | |
4661 # to the arch of the device. In cases where the device's arch is not | |
4662 # in VALID_ARCHS (e.g. iPhone5 is armv7s) Xcode complains because it | |
4663 # can't determine what arch to compile for. | |
4664 'ONLY_ACTIVE_ARCH': 'YES', | |
4665 }, | |
4666 }, | |
4667 'Release': { | |
4668 'xcode_settings': { | |
4669 # Override VALID_ARCHS and omit armv7s. Otherwise Xcode compiles for | |
4670 # both armv7 and armv7s, doubling the binary size. | |
4671 'VALID_ARCHS': 'armv7 i386', | |
4672 }, | |
4673 }, | |
4674 }], | |
4675 ], | |
4676 }, | |
4677 'xcode_settings': { | 4584 'xcode_settings': { |
4678 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! | 4585 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! |
4679 # This block adds *project-wide* configuration settings to each project | 4586 # This block adds *project-wide* configuration settings to each project |
4680 # file. It's almost always wrong to put things here. Specify your | 4587 # file. It's almost always wrong to put things here. Specify your |
4681 # custom xcode_settings in target_defaults to add them to targets instead. | 4588 # custom xcode_settings in target_defaults to add them to targets instead. |
4682 | 4589 |
4683 'conditions': [ | 4590 'conditions': [ |
4684 # In an Xcode Project Info window, the "Base SDK for All Configurations" | 4591 # In an Xcode Project Info window, the "Base SDK for All Configurations" |
4685 # setting sets the SDK on a project-wide basis. In order to get the | 4592 # setting sets the SDK on a project-wide basis. In order to get the |
4686 # configured SDK to show properly in the Xcode UI, SDKROOT must be set | 4593 # configured SDK to show properly in the Xcode UI, SDKROOT must be set |
4687 # here at the project level. | 4594 # here at the project level. |
4688 ['OS=="mac"', { | 4595 ['OS=="mac"', { |
4689 'conditions': [ | 4596 'conditions': [ |
4690 ['mac_sdk_path==""', { | 4597 ['mac_sdk_path==""', { |
4691 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot | 4598 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot |
4692 }, { | 4599 }, { |
4693 'SDKROOT': '<(mac_sdk_path)', # -isysroot | 4600 'SDKROOT': '<(mac_sdk_path)', # -isysroot |
4694 }], | 4601 }], |
4695 ], | 4602 ], |
4696 }], | 4603 }], |
4697 ['OS=="ios"', { | 4604 ['OS=="ios"', { |
4698 'conditions': [ | 4605 'conditions': [ |
4699 ['ios_sdk_path==""', { | 4606 ['ios_sdk_path==""', { |
4700 'conditions': [ | 4607 'conditions': [ |
4701 # TODO(justincohen): Ninja only supports simulator for now. | 4608 # TODO(justincohen): Ninja only supports simulator for now. |
Nico
2013/10/07 16:44:33
Is this still true?
| |
4702 ['"<(GENERATOR)"=="xcode" or ("<(GENERATOR)"=="ninja" and target_a rch=="armv7")', { | 4609 ['"<(GENERATOR)"=="xcode"', { |
4703 'SDKROOT': 'iphoneos<(ios_sdk)', # -isysroot | 4610 'SDKROOT': 'iphoneos<(ios_sdk)', # -isysroot |
4704 }, { | 4611 }, { |
4705 'SDKROOT': 'iphonesimulator<(ios_sdk)', # -isysroot | 4612 'SDKROOT': 'iphonesimulator<(ios_sdk)', # -isysroot |
4706 }], | 4613 }], |
4707 ], | 4614 ], |
4708 }, { | 4615 }, { |
4709 'SDKROOT': '<(ios_sdk_path)', # -isysroot | 4616 'SDKROOT': '<(ios_sdk_path)', # -isysroot |
4710 }], | 4617 }], |
4711 ], | 4618 ], |
4712 }], | 4619 }], |
4713 ['OS=="ios"', { | 4620 ['OS=="ios"', { |
4714 # Target both iPhone and iPad. | 4621 # Target both iPhone and iPad. |
4715 'TARGETED_DEVICE_FAMILY': '1,2', | 4622 'TARGETED_DEVICE_FAMILY': '1,2', |
4623 'VALID_ARCHS': 'armv7 i386', | |
4716 }], | 4624 }], |
4717 ['target_arch=="x64"', { | 4625 ['target_arch=="x64"', { |
4718 'ARCHS': [ | 4626 'ARCHS': [ |
4719 'x86_64' | 4627 'x86_64' |
4720 ], | 4628 ], |
4721 }], | 4629 }], |
4722 ], | 4630 ], |
4723 | 4631 |
4724 # The Xcode generator will look for an xcode_settings section at the root | 4632 # The Xcode generator will look for an xcode_settings section at the root |
4725 # of each dict and use it to apply settings on a file-wide basis. Most | 4633 # of each dict and use it to apply settings on a file-wide basis. Most |
4726 # settings should not be here, they should be in target-specific | 4634 # settings should not be here, they should be in target-specific |
4727 # xcode_settings sections, or better yet, should use non-Xcode-specific | 4635 # xcode_settings sections, or better yet, should use non-Xcode-specific |
4728 # settings in target dicts. SYMROOT is a special case, because many other | 4636 # settings in target dicts. SYMROOT is a special case, because many other |
4729 # Xcode variables depend on it, including variables such as | 4637 # Xcode variables depend on it, including variables such as |
4730 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4638 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4731 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4639 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4732 # files to appear (when present) in the UI as actual files and not red | 4640 # files to appear (when present) in the UI as actual files and not red |
4733 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4641 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4734 # and therefore SYMROOT, needs to be set at the project level. | 4642 # and therefore SYMROOT, needs to be set at the project level. |
4735 'SYMROOT': '<(DEPTH)/xcodebuild', | 4643 'SYMROOT': '<(DEPTH)/xcodebuild', |
4736 }, | 4644 }, |
4737 } | 4645 } |
OLD | NEW |