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 # It is necessary to link with the -fobjc-arc flag to use | |
4044 # subscripting on iOS < 6. | |
4045 'OTHER_LDFLAGS': [ | |
4046 '-fobjc-arc', | |
4047 ], | |
Nico
2013/05/21 20:02:38
Shouldn't this part be gated on clang!=1 too?
justincohen
2013/05/21 23:33:15
I wonder if we will ever do iOS Xcode builds with
| |
4048 # TODO(justincohen): ninja builds don't support signing yet. | |
4051 'conditions': [ | 4049 'conditions': [ |
4052 ['chromium_ios_signing', { | 4050 ['chromium_ios_signing', { |
4053 # iOS SDK wants everything for device signed. | 4051 # iOS SDK wants everything for device signed. |
4054 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer', | 4052 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer', |
4055 }, { | 4053 }, { |
4056 'CODE_SIGNING_REQUIRED': 'NO', | 4054 'CODE_SIGNING_REQUIRED': 'NO', |
4057 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '', | 4055 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '', |
4058 }], | 4056 }], |
4059 ], | 4057 ], |
4060 }, | 4058 }, |
4061 }], | 4059 }], |
4060 ['clang==1', { | |
4061 'target_conditions': [ | |
4062 ['_toolset=="target"', { | |
4063 'variables': { | |
4064 'developer_dir': '<!(xcode-select -print-path)', | |
4065 'arc_toolchain_path': '<(developer_dir)/Toolchains/XcodeDe fault.xctoolchain/usr/lib/arc', | |
4066 }, | |
4067 # It is necessary to force load libarclite from Xcode for | |
4068 # third_party/llvm-build because libarclite_* is only | |
4069 # distributed by Xcode. | |
4070 'conditions': [ | |
4071 ['target_arch=="armv7"', { | |
4072 'xcode_settings': { | |
4073 'OTHER_LDFLAGS': [ | |
4074 '-force_load', | |
4075 '<(arc_toolchain_path)/libarclite_iphoneos.a', | |
4076 ], | |
4077 }, | |
4078 }, { | |
4079 'xcode_settings': { | |
4080 'OTHER_LDFLAGS': [ | |
4081 '-force_load', | |
4082 '<(arc_toolchain_path)/libarclite_iphonesimulator.a' , | |
4083 ], | |
4084 }, | |
4085 }], | |
4086 ], | |
4087 }], | |
4088 ], | |
4089 }], | |
4062 ], | 4090 ], |
4063 }], | 4091 }], |
4064 ], # target_conditions | 4092 ], # target_conditions |
4065 }, # target_defaults | 4093 }, # target_defaults |
4066 }], # OS=="ios" | 4094 }], # OS=="ios" |
4067 ['OS=="win"', { | 4095 ['OS=="win"', { |
4068 'target_defaults': { | 4096 'target_defaults': { |
4069 'defines': [ | 4097 'defines': [ |
4070 '_WIN32_WINNT=0x0602', | 4098 '_WIN32_WINNT=0x0602', |
4071 'WINVER=0x0602', | 4099 '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 | 4470 # settings in target dicts. SYMROOT is a special case, because many other |
4443 # Xcode variables depend on it, including variables such as | 4471 # Xcode variables depend on it, including variables such as |
4444 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4472 # 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 | 4473 # 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 | 4474 # 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, | 4475 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4448 # and therefore SYMROOT, needs to be set at the project level. | 4476 # and therefore SYMROOT, needs to be set at the project level. |
4449 'SYMROOT': '<(DEPTH)/xcodebuild', | 4477 'SYMROOT': '<(DEPTH)/xcodebuild', |
4450 }, | 4478 }, |
4451 } | 4479 } |
OLD | NEW |