OLD | NEW |
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 # ============================================================================= | 5 # ============================================================================= |
6 # BUILD FLAGS | 6 # BUILD FLAGS |
7 # ============================================================================= | 7 # ============================================================================= |
8 # | 8 # |
9 # This block lists input arguments to the build, along with their default | 9 # This block lists input arguments to the build, along with their default |
10 # values. GN requires listing them explicitly so it can validate input and have | 10 # values. GN requires listing them explicitly so it can validate input and have |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 ] | 380 ] |
381 } | 381 } |
382 | 382 |
383 set_defaults("executable") { | 383 set_defaults("executable") { |
384 configs = native_compiler_configs + [ | 384 configs = native_compiler_configs + [ |
385 "//build/config:default_libs", | 385 "//build/config:default_libs", |
386 ] | 386 ] |
387 if (is_win) { | 387 if (is_win) { |
388 configs += windows_linker_configs | 388 configs += windows_linker_configs |
389 } else if (is_mac) { | 389 } else if (is_mac) { |
390 configs += [ "//build/config/mac:mac_dynamic_flags" ] | 390 configs += [ |
| 391 "//build/config/mac:mac_dynamic_flags", |
| 392 "//build/config/mac:mac_executable_flags" ] |
391 } else if (is_linux || is_android) { | 393 } else if (is_linux || is_android) { |
392 configs += [ "//build/config/linux:executable_ldconfig" ] | 394 configs += [ "//build/config/linux:executable_ldconfig" ] |
393 } | 395 } |
394 } | 396 } |
395 | 397 |
396 set_defaults("static_library") { | 398 set_defaults("static_library") { |
397 configs = native_compiler_configs | 399 configs = native_compiler_configs |
398 } | 400 } |
399 | 401 |
400 set_defaults("shared_library") { | 402 set_defaults("shared_library") { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 } else if (is_linux) { | 443 } else if (is_linux) { |
442 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" | 444 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" |
443 set_default_toolchain("//build/toolchain/linux:$cpu_arch") | 445 set_default_toolchain("//build/toolchain/linux:$cpu_arch") |
444 } else if (is_mac) { | 446 } else if (is_mac) { |
445 host_toolchain = "//build/toolchain/mac:clang" | 447 host_toolchain = "//build/toolchain/mac:clang" |
446 set_default_toolchain(host_toolchain) | 448 set_default_toolchain(host_toolchain) |
447 } else if (is_ios) { | 449 } else if (is_ios) { |
448 host_toolchain = "//build/toolchain/mac:host_clang" | 450 host_toolchain = "//build/toolchain/mac:host_clang" |
449 set_default_toolchain("//build/toolchain/mac:clang") | 451 set_default_toolchain("//build/toolchain/mac:clang") |
450 } | 452 } |
OLD | NEW |