Chromium Code Reviews| 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 # WHAT IS THIS FILE? | 6 # WHAT IS THIS FILE? |
| 7 # ============================================================================= | 7 # ============================================================================= |
| 8 # | 8 # |
| 9 # This is the master GN build configuration. This file is loaded after the | 9 # This is the master GN build configuration. This file is loaded after the |
| 10 # build args (args.gn) for the build directory and after the toplevel ".gn" | 10 # build args (args.gn) for the build directory and after the toplevel ".gn" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 155 } | 155 } |
| 156 | 156 |
| 157 declare_args() { | 157 declare_args() { |
| 158 # Component build. Setting to true compiles targets declared as "components" | 158 # Component build. Setting to true compiles targets declared as "components" |
| 159 # as shared libraries loaded dynamically. This speeds up development time. | 159 # as shared libraries loaded dynamically. This speeds up development time. |
| 160 # When false, components will be linked statically. | 160 # When false, components will be linked statically. |
| 161 # | 161 # |
| 162 # For more information see | 162 # For more information see |
| 163 # https://chromium.googlesource.com/chromium/src/+/master/docs/component_build .md | 163 # https://chromium.googlesource.com/chromium/src/+/master/docs/component_build .md |
| 164 is_component_build = is_debug && current_os != "ios" | 164 is_component_build = is_debug && current_os != "ios" |
| 165 | |
| 166 # Run-Time Type Identification. | |
| 167 use_rtti = false | |
|
kjellander_chromium
2017/01/02 07:47:14
Let me know if there's a better place to put this.
| |
| 165 } | 168 } |
| 166 | 169 |
| 167 assert(!(is_debug && is_official_build), "Can't do official debug builds") | 170 assert(!(is_debug && is_official_build), "Can't do official debug builds") |
| 168 | 171 |
| 169 # ============================================================================== | 172 # ============================================================================== |
| 170 # TOOLCHAIN SETUP | 173 # TOOLCHAIN SETUP |
| 171 # ============================================================================== | 174 # ============================================================================== |
| 172 # | 175 # |
| 173 # Here we set the default toolchain, as well as the variable host_toolchain | 176 # Here we set the default toolchain, as well as the variable host_toolchain |
| 174 # which will identify the toolchain corresponding to the local system when | 177 # which will identify the toolchain corresponding to the local system when |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 473 "//build/config/compiler:compiler", | 476 "//build/config/compiler:compiler", |
| 474 "//build/config/compiler:pthread", | 477 "//build/config/compiler:pthread", |
| 475 "//build/config/compiler:clang_stackrealign", | 478 "//build/config/compiler:clang_stackrealign", |
| 476 "//build/config/compiler:compiler_arm_fpu", | 479 "//build/config/compiler:compiler_arm_fpu", |
| 477 "//build/config/compiler:compiler_arm_thumb", | 480 "//build/config/compiler:compiler_arm_thumb", |
| 478 "//build/config/compiler:chromium_code", | 481 "//build/config/compiler:chromium_code", |
| 479 "//build/config/compiler:default_include_dirs", | 482 "//build/config/compiler:default_include_dirs", |
| 480 "//build/config/compiler:default_optimization", | 483 "//build/config/compiler:default_optimization", |
| 481 "//build/config/compiler:default_stack_frames", | 484 "//build/config/compiler:default_stack_frames", |
| 482 "//build/config/compiler:default_symbols", | 485 "//build/config/compiler:default_symbols", |
| 483 "//build/config/compiler:no_rtti", | |
| 484 "//build/config/compiler:runtime_library", | 486 "//build/config/compiler:runtime_library", |
| 485 "//build/config/sanitizers:default_sanitizer_flags", | 487 "//build/config/sanitizers:default_sanitizer_flags", |
| 486 ] | 488 ] |
| 489 if (use_rtti) { | |
| 490 default_compiler_configs += [ "//build/config/compiler:rtti" ] | |
| 491 } else { | |
| 492 default_compiler_configs += [ "//build/config/compiler:no_rtti" ] | |
| 493 } | |
| 487 if (is_win) { | 494 if (is_win) { |
| 488 default_compiler_configs += [ | 495 default_compiler_configs += [ |
| 489 "//build/config/win:default_crt", | 496 "//build/config/win:default_crt", |
| 490 "//build/config/win:lean_and_mean", | 497 "//build/config/win:lean_and_mean", |
| 491 "//build/config/win:nominmax", | 498 "//build/config/win:nominmax", |
| 492 "//build/config/win:unicode", | 499 "//build/config/win:unicode", |
| 493 "//build/config/win:winver", | 500 "//build/config/win:winver", |
| 494 "//build/config/win:vs_code_analysis", | 501 "//build/config/win:vs_code_analysis", |
| 495 ] | 502 ] |
| 496 } | 503 } |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 646 set_defaults("component") { | 653 set_defaults("component") { |
| 647 if (is_component_build) { | 654 if (is_component_build) { |
| 648 configs = default_shared_library_configs | 655 configs = default_shared_library_configs |
| 649 if (is_android) { | 656 if (is_android) { |
| 650 configs -= [ "//build/config/android:hide_native_jni_exports" ] | 657 configs -= [ "//build/config/android:hide_native_jni_exports" ] |
| 651 } | 658 } |
| 652 } else { | 659 } else { |
| 653 configs = default_compiler_configs | 660 configs = default_compiler_configs |
| 654 } | 661 } |
| 655 } | 662 } |
| OLD | NEW |