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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 configs = native_compiler_configs + [ | 411 configs = native_compiler_configs + [ |
412 "//build/config:default_libs", | 412 "//build/config:default_libs", |
413 ] | 413 ] |
414 if (is_win) { | 414 if (is_win) { |
415 configs += windows_linker_configs | 415 configs += windows_linker_configs |
416 } else if (is_mac) { | 416 } else if (is_mac) { |
417 configs += [ | 417 configs += [ |
418 "//build/config/mac:mac_dynamic_flags", | 418 "//build/config/mac:mac_dynamic_flags", |
419 "//build/config/mac:mac_executable_flags" ] | 419 "//build/config/mac:mac_executable_flags" ] |
420 } else if (is_linux || is_android) { | 420 } else if (is_linux || is_android) { |
421 configs += [ "//build/config/linux:executable_ldconfig" ] | 421 configs += [ "//build/config/gcc:executable_ldconfig" ] |
422 } | 422 } |
423 } | 423 } |
424 | 424 |
425 set_defaults("static_library") { | 425 set_defaults("static_library") { |
426 configs = native_compiler_configs | 426 configs = native_compiler_configs |
427 } | 427 } |
428 | 428 |
429 set_defaults("shared_library") { | 429 set_defaults("shared_library") { |
430 configs = native_compiler_configs + [ | 430 configs = native_compiler_configs + [ |
431 "//build/config:default_libs", | 431 "//build/config:default_libs", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 } else if (is_linux) { | 470 } else if (is_linux) { |
471 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" | 471 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" |
472 set_default_toolchain("//build/toolchain/linux:$cpu_arch") | 472 set_default_toolchain("//build/toolchain/linux:$cpu_arch") |
473 } else if (is_mac) { | 473 } else if (is_mac) { |
474 host_toolchain = "//build/toolchain/mac:clang" | 474 host_toolchain = "//build/toolchain/mac:clang" |
475 set_default_toolchain(host_toolchain) | 475 set_default_toolchain(host_toolchain) |
476 } else if (is_ios) { | 476 } else if (is_ios) { |
477 host_toolchain = "//build/toolchain/mac:host_clang" | 477 host_toolchain = "//build/toolchain/mac:host_clang" |
478 set_default_toolchain("//build/toolchain/mac:clang") | 478 set_default_toolchain("//build/toolchain/mac:clang") |
479 } | 479 } |
OLD | NEW |