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