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 4019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4030 'STRIP_INSTALLED_PRODUCT': 'YES', | 4030 'STRIP_INSTALLED_PRODUCT': 'YES', |
4031 }, | 4031 }, |
4032 }, | 4032 }, |
4033 'Debug_Base': { | 4033 'Debug_Base': { |
4034 'xcode_settings': { | 4034 'xcode_settings': { |
4035 # Remove dSYM to reduce build time. | 4035 # Remove dSYM to reduce build time. |
4036 'DEBUG_INFORMATION_FORMAT': 'dwarf', | 4036 'DEBUG_INFORMATION_FORMAT': 'dwarf', |
4037 }, | 4037 }, |
4038 }, | 4038 }, |
4039 }, | 4039 }, |
4040 'xcode_settings': { | |
4041 # It is necessary to link with the -fobjc-arc flag to use | |
4042 # subscripting on iOS < 6. | |
4043 'OTHER_LDFLAGS': [ | |
4044 '-fobjc-arc', | |
4045 ], | |
4046 }, | |
4047 'conditions': [ | 4040 'conditions': [ |
4048 # TODO(justincohen): ninja builds don't support signing yet. | 4041 ['"<(GENERATOR)"=="xcode"', { |
4049 ['"<(GENERATOR)"!="ninja"', { | |
4050 'xcode_settings': { | 4042 'xcode_settings': { |
4043 # TODO(justincohen): ninja builds don't support signing yet. | |
4051 'conditions': [ | 4044 'conditions': [ |
4052 ['chromium_ios_signing', { | 4045 ['chromium_ios_signing', { |
4053 # iOS SDK wants everything for device signed. | 4046 # iOS SDK wants everything for device signed. |
4054 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer', | 4047 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer', |
4055 }, { | 4048 }, { |
4056 'CODE_SIGNING_REQUIRED': 'NO', | 4049 'CODE_SIGNING_REQUIRED': 'NO', |
4057 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '', | 4050 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '', |
4058 }], | 4051 }], |
4059 ], | 4052 ], |
4060 }, | 4053 }, |
4061 }], | 4054 }], |
4055 ['"<(GENERATOR)"=="xcode" and clang!=1', { | |
4056 'xcode_settings': { | |
4057 # It is necessary to link with the -fobjc-arc flag to use | |
4058 # subscripting on iOS < 6. | |
4059 'OTHER_LDFLAGS': [ | |
4060 '-fobjc-arc', | |
4061 ], | |
4062 }, | |
4063 }], | |
4064 ['clang==1', { | |
4065 'target_conditions': [ | |
4066 ['_toolset=="target"', { | |
4067 'variables': { | |
4068 'developer_dir': '<!(xcode-select -print-path)', | |
4069 'arc_toolchain_path': '<(developer_dir)/Toolchains/XcodeDe fault.xctoolchain/usr/lib/arc', | |
4070 }, | |
4071 # It is necessary to force load libarclite from Xcode for | |
4072 # third_party/llvm-build because libarclite_* is only | |
4073 # distributed by Xcode. | |
4074 'conditions': [ | |
4075 ['target_arch=="armv7"', { | |
stuartmorgan
2013/05/22 09:06:13
This section doesn't make sense for Xcode (target_
justincohen
2013/05/22 13:50:52
Done.
| |
4076 'xcode_settings': { | |
4077 'OTHER_LDFLAGS': [ | |
4078 '-force_load', | |
4079 '<(arc_toolchain_path)/libarclite_iphoneos.a', | |
4080 ], | |
4081 }, | |
4082 }, { | |
4083 'xcode_settings': { | |
4084 'OTHER_LDFLAGS': [ | |
4085 '-force_load', | |
4086 '<(arc_toolchain_path)/libarclite_iphonesimulator.a' , | |
4087 ], | |
4088 }, | |
4089 }], | |
4090 ], | |
4091 }], | |
4092 ], | |
4093 }], | |
4062 ], | 4094 ], |
4063 }], | 4095 }], |
4064 ], # target_conditions | 4096 ], # target_conditions |
4065 }, # target_defaults | 4097 }, # target_defaults |
4066 }], # OS=="ios" | 4098 }], # OS=="ios" |
4067 ['OS=="win"', { | 4099 ['OS=="win"', { |
4068 'target_defaults': { | 4100 'target_defaults': { |
4069 'defines': [ | 4101 'defines': [ |
4070 '_WIN32_WINNT=0x0602', | 4102 '_WIN32_WINNT=0x0602', |
4071 'WINVER=0x0602', | 4103 'WINVER=0x0602', |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4442 # settings in target dicts. SYMROOT is a special case, because many other | 4474 # settings in target dicts. SYMROOT is a special case, because many other |
4443 # Xcode variables depend on it, including variables such as | 4475 # Xcode variables depend on it, including variables such as |
4444 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4476 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4445 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4477 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4446 # files to appear (when present) in the UI as actual files and not red | 4478 # files to appear (when present) in the UI as actual files and not red |
4447 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4479 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4448 # and therefore SYMROOT, needs to be set at the project level. | 4480 # and therefore SYMROOT, needs to be set at the project level. |
4449 'SYMROOT': '<(DEPTH)/xcodebuild', | 4481 'SYMROOT': '<(DEPTH)/xcodebuild', |
4450 }, | 4482 }, |
4451 } | 4483 } |
OLD | NEW |