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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 # corresponding target. Target definitions can add or remove to the settings | 311 # corresponding target. Target definitions can add or remove to the settings |
312 # here as needed. | 312 # here as needed. |
313 | 313 |
314 # Holds all configs used for making native executables and libraries, to avoid | 314 # Holds all configs used for making native executables and libraries, to avoid |
315 # duplication in each target below. | 315 # duplication in each target below. |
316 _native_compiler_configs = [ | 316 _native_compiler_configs = [ |
317 "//build/config:feature_flags", | 317 "//build/config:feature_flags", |
318 | 318 |
319 "//build/config/compiler:compiler", | 319 "//build/config/compiler:compiler", |
320 "//build/config/compiler:chromium_code", | 320 "//build/config/compiler:chromium_code", |
| 321 "//build/config/compiler:default_include_dirs", |
321 "//build/config/compiler:default_warnings", | 322 "//build/config/compiler:default_warnings", |
322 "//build/config/compiler:no_rtti", | 323 "//build/config/compiler:no_rtti", |
323 "//build/config/compiler:runtime_library", | 324 "//build/config/compiler:runtime_library", |
324 ] | 325 ] |
325 if (is_win) { | 326 if (is_win) { |
326 _native_compiler_configs += [ | 327 _native_compiler_configs += [ |
327 "//build/config/win:lean_and_mean", | 328 "//build/config/win:lean_and_mean", |
328 "//build/config/win:nominmax", | 329 "//build/config/win:nominmax", |
329 "//build/config/win:sdk", | 330 "//build/config/win:sdk", |
330 "//build/config/win:unicode", | 331 "//build/config/win:unicode", |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 } else if (is_linux) { | 465 } else if (is_linux) { |
465 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" | 466 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" |
466 set_default_toolchain("//build/toolchain/linux:$cpu_arch") | 467 set_default_toolchain("//build/toolchain/linux:$cpu_arch") |
467 } else if (is_mac) { | 468 } else if (is_mac) { |
468 host_toolchain = "//build/toolchain/mac:clang" | 469 host_toolchain = "//build/toolchain/mac:clang" |
469 set_default_toolchain(host_toolchain) | 470 set_default_toolchain(host_toolchain) |
470 } else if (is_ios) { | 471 } else if (is_ios) { |
471 host_toolchain = "//build/toolchain/mac:host_clang" | 472 host_toolchain = "//build/toolchain/mac:host_clang" |
472 set_default_toolchain("//build/toolchain/mac:clang") | 473 set_default_toolchain("//build/toolchain/mac:clang") |
473 } | 474 } |
OLD | NEW |