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

Side by Side Diff: build/config/BUILD.gn

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 | « no previous file | build/config/ios/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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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/allocator.gni") 5 import("//build/config/allocator.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 import("//build/config/chromecast_build.gni") 7 import("//build/config/chromecast_build.gni")
8 import("//build/config/crypto.gni") 8 import("//build/config/crypto.gni")
9 import("//build/config/dcheck_always_on.gni") 9 import("//build/config/dcheck_always_on.gni")
10 import("//build/config/features.gni") 10 import("//build/config/features.gni")
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 config("executable_config") { 382 config("executable_config") {
383 configs = [] 383 configs = []
384 384
385 if (is_win) { 385 if (is_win) {
386 configs += _windows_linker_configs 386 configs += _windows_linker_configs
387 } else if (is_mac) { 387 } else if (is_mac) {
388 configs += [ 388 configs += [
389 "//build/config/mac:mac_dynamic_flags", 389 "//build/config/mac:mac_dynamic_flags",
390 "//build/config/mac:mac_executable_flags", 390 "//build/config/mac:mac_executable_flags",
391 ] 391 ]
392 } else if (is_ios) {
393 configs += [ "//build/config/ios:ios_dynamic_flags" ]
392 } else if (is_linux || is_android) { 394 } else if (is_linux || is_android) {
393 configs += [ "//build/config/gcc:executable_ldconfig" ] 395 configs += [ "//build/config/gcc:executable_ldconfig" ]
394 if (is_android) { 396 if (is_android) {
395 configs += [ "//build/config/android:executable_config" ] 397 configs += [ "//build/config/android:executable_config" ]
396 } else if (is_chromecast) { 398 } else if (is_chromecast) {
397 configs += [ "//build/config/chromecast:executable_config" ] 399 configs += [ "//build/config/chromecast:executable_config" ]
398 } 400 }
399 } 401 }
400 402
401 # If we're using the prebuilt instrumented libraries with the sanitizers, we 403 # If we're using the prebuilt instrumented libraries with the sanitizers, we
402 # need to add ldflags to every binary to make sure they are picked up. 404 # need to add ldflags to every binary to make sure they are picked up.
403 if (prebuilt_instrumented_libraries_available) { 405 if (prebuilt_instrumented_libraries_available) {
404 configs += [ "//third_party/instrumented_libraries:prebuilt_ldflags" ] 406 configs += [ "//third_party/instrumented_libraries:prebuilt_ldflags" ]
405 } 407 }
406 if (use_locally_built_instrumented_libraries) { 408 if (use_locally_built_instrumented_libraries) {
407 configs += [ "//third_party/instrumented_libraries:locally_built_ldflags" ] 409 configs += [ "//third_party/instrumented_libraries:locally_built_ldflags" ]
408 } 410 }
409 } 411 }
410 412
411 # Shared library configs ------------------------------------------------------- 413 # Shared library configs -------------------------------------------------------
412 414
413 # This config defines the configs applied to all shared libraries. 415 # This config defines the configs applied to all shared libraries.
414 config("shared_library_config") { 416 config("shared_library_config") {
415 configs = [] 417 configs = []
416 418
417 if (is_win) { 419 if (is_win) {
418 configs += _windows_linker_configs 420 configs += _windows_linker_configs
419 } else if (is_mac) { 421 } else if (is_mac) {
420 configs += [ "//build/config/mac:mac_dynamic_flags" ] 422 configs += [ "//build/config/mac:mac_dynamic_flags" ]
423 } else if (is_ios) {
424 configs += [ "//build/config/ios:ios_dynamic_flags" ]
421 } else if (is_chromecast) { 425 } else if (is_chromecast) {
422 configs += [ "//build/config/chromecast:shared_library_config" ] 426 configs += [ "//build/config/chromecast:shared_library_config" ]
423 } 427 }
424 428
425 # If we're using the prebuilt instrumented libraries with the sanitizers, we 429 # If we're using the prebuilt instrumented libraries with the sanitizers, we
426 # need to add ldflags to every binary to make sure they are picked up. 430 # need to add ldflags to every binary to make sure they are picked up.
427 if (prebuilt_instrumented_libraries_available) { 431 if (prebuilt_instrumented_libraries_available) {
428 configs += [ "//third_party/instrumented_libraries:prebuilt_ldflags" ] 432 configs += [ "//third_party/instrumented_libraries:prebuilt_ldflags" ]
429 } 433 }
430 if (use_locally_built_instrumented_libraries) { 434 if (use_locally_built_instrumented_libraries) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 # file doesn't exist, no error will be generated (probably MS tested this 469 # file doesn't exist, no error will be generated (probably MS tested this
466 # case but forgot the other one?). To reproduce this error, do a build, 470 # case but forgot the other one?). To reproduce this error, do a build,
467 # then delete the precompile.c.obj file, then build again. 471 # then delete the precompile.c.obj file, then build again.
468 cflags_c = [ "/wd4206" ] 472 cflags_c = [ "/wd4206" ]
469 } else if (is_mac) { 473 } else if (is_mac) {
470 precompiled_header = "build/precompile.h" 474 precompiled_header = "build/precompile.h"
471 precompiled_source = "//build/precompile.h" 475 precompiled_source = "//build/precompile.h"
472 } 476 }
473 } 477 }
474 } 478 }
OLDNEW
« no previous file with comments | « no previous file | build/config/ios/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698