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