Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Side by Side Diff: build/config/ios/rules.gni

Issue 2166663003: [iOS] Define build/config/ios:ios_dynamic_flags for default linker flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove -Xlinker -objc_abi_version -Xlinker 2. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/ios/BUILD.gn ('k') | ios/web/shell/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 import("//build/config/ios/ios_sdk.gni") 5 import("//build/config/ios/ios_sdk.gni")
6 import("//build/config/mac/base_rules.gni") 6 import("//build/config/mac/base_rules.gni")
7 import("//build/config/mac/symbols.gni") 7 import("//build/config/mac/symbols.gni")
8 8
9 # Generates Info.plist files for Mac apps and frameworks. 9 # Generates Info.plist files for Mac apps and frameworks.
10 # 10 #
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 if (defined(visibility)) { 170 if (defined(visibility)) {
171 visibility += [ ":*($default_toolchain)" ] 171 visibility += [ ":*($default_toolchain)" ]
172 } 172 }
173 173
174 output_name = _output_name 174 output_name = _output_name
175 if (!defined(libs)) { 175 if (!defined(libs)) {
176 libs = [] 176 libs = []
177 } 177 }
178 libs += [ "UIKit.framework" ] 178 libs += [ "UIKit.framework" ]
179 if (!defined(ldflags)) {
180 ldflags = []
181 }
182 ldflags += [ "-ObjC" ]
183 } 179 }
184 } else { 180 } else {
185 # This is either a thin build or the default toolchain of a fat-build. 181 # This is either a thin build or the default toolchain of a fat-build.
186 # The template will expand in many different target ($target_name is the 182 # The template will expand in many different target ($target_name is the
187 # create_bundle target) used as input to the create_bundle target. 183 # create_bundle target) used as input to the create_bundle target.
188 _generate_info_plist = target_name + "_generate_info_plist" 184 _generate_info_plist = target_name + "_generate_info_plist"
189 _bundle_data_info_plist = target_name + "_bundle_data_info_plist" 185 _bundle_data_info_plist = target_name + "_bundle_data_info_plist"
190 186
191 ios_info_plist(_generate_info_plist) { 187 ios_info_plist(_generate_info_plist) {
192 visibility = [ ":$_bundle_data_info_plist" ] 188 visibility = [ ":$_bundle_data_info_plist" ]
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 if (_is_fat_build) { 252 if (_is_fat_build) {
257 output_name = rebase_path(_arch_executable_path, root_build_dir) 253 output_name = rebase_path(_arch_executable_path, root_build_dir)
258 } else { 254 } else {
259 output_name = rebase_path(_executable_path, root_build_dir) 255 output_name = rebase_path(_executable_path, root_build_dir)
260 } 256 }
261 257
262 if (!defined(libs)) { 258 if (!defined(libs)) {
263 libs = [] 259 libs = []
264 } 260 }
265 libs += [ "UIKit.framework" ] 261 libs += [ "UIKit.framework" ]
266 if (!defined(ldflags)) {
267 ldflags = []
268 }
269 ldflags += [ "-ObjC" ]
270 } 262 }
271 263
272 if (_is_fat_build) { 264 if (_is_fat_build) {
273 # Create the multi-architecture binary from all the single architecture 265 # Create the multi-architecture binary from all the single architecture
274 # binaries using "lipo". This target exists for the default toolchain 266 # binaries using "lipo". This target exists for the default toolchain
275 # of a fat-build only and depends on the expansion of "ios_app_bundle" 267 # of a fat-build only and depends on the expansion of "ios_app_bundle"
276 # for the other toolchains (i.e. a single "executable" target). 268 # for the other toolchains (i.e. a single "executable" target).
277 # 269 #
278 # This action only happens once per "ios_app_bundle" template (for the 270 # This action only happens once per "ios_app_bundle" template (for the
279 # main toolchain). 271 # main toolchain).
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 public_deps = [ 840 public_deps = [
849 ":$_framework_target+link$_toolchain_suffix", 841 ":$_framework_target+link$_toolchain_suffix",
850 ] 842 ]
851 } 843 }
852 } 844 }
853 } 845 }
854 846
855 set_defaults("ios_framework_bundle") { 847 set_defaults("ios_framework_bundle") {
856 configs = default_shared_library_configs 848 configs = default_shared_library_configs
857 } 849 }
OLDNEW
« no previous file with comments | « build/config/ios/BUILD.gn ('k') | ios/web/shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698