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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 _default_symbols_config = "//build/config/compiler:minimal_symbols" | 409 _default_symbols_config = "//build/config/compiler:minimal_symbols" |
410 } else if (symbol_level == 0) { | 410 } else if (symbol_level == 0) { |
411 _default_symbols_config = "//build/config/compiler:no_symbols" | 411 _default_symbols_config = "//build/config/compiler:no_symbols" |
412 } else { | 412 } else { |
413 assert(false, "Bad value for symbol_level.") | 413 assert(false, "Bad value for symbol_level.") |
414 } | 414 } |
415 _native_compiler_configs += [ _default_symbols_config ] | 415 _native_compiler_configs += [ _default_symbols_config ] |
416 | 416 |
417 # Windows linker setup for EXEs and DLLs. | 417 # Windows linker setup for EXEs and DLLs. |
418 if (is_win) { | 418 if (is_win) { |
419 if (is_debug) { | |
420 _default_incremental_linking_config = | |
421 "//build/config/win:incremental_linking" | |
422 } else { | |
423 _default_incremental_linking_config = | |
424 "//build/config/win:no_incremental_linking" | |
425 } | |
426 _windows_linker_configs = [ | 419 _windows_linker_configs = [ |
427 _default_incremental_linking_config, | 420 "//build/config/win:default_incremental_linking", |
428 "//build/config/win:sdk_link", | 421 "//build/config/win:sdk_link", |
429 "//build/config/win:common_linker_setup", | 422 "//build/config/win:common_linker_setup", |
430 | 423 |
431 # Default to console-mode apps. Most of our targets are tests and such | 424 # Default to console-mode apps. Most of our targets are tests and such |
432 # that shouldn't use the windows subsystem. | 425 # that shouldn't use the windows subsystem. |
433 "//build/config/win:console", | 426 "//build/config/win:console", |
434 ] | 427 ] |
435 } | 428 } |
436 | 429 |
437 # Executable defaults. | 430 # Executable defaults. |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 } | 744 } |
752 if (defined(invoker.testonly)) { | 745 if (defined(invoker.testonly)) { |
753 testonly = invoker.testonly | 746 testonly = invoker.testonly |
754 } | 747 } |
755 if (defined(invoker.visibility)) { | 748 if (defined(invoker.visibility)) { |
756 visibility = invoker.visibility | 749 visibility = invoker.visibility |
757 } | 750 } |
758 } | 751 } |
759 } | 752 } |
760 } | 753 } |
OLD | NEW |