| 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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 # Holds all configs used for running the compiler. | 467 # Holds all configs used for running the compiler. |
| 468 default_compiler_configs = [ | 468 default_compiler_configs = [ |
| 469 "//build/config:feature_flags", | 469 "//build/config:feature_flags", |
| 470 "//build/config/compiler:compiler", | 470 "//build/config/compiler:compiler", |
| 471 "//build/config/compiler:clang_stackrealign", | 471 "//build/config/compiler:clang_stackrealign", |
| 472 "//build/config/compiler:compiler_arm_fpu", | 472 "//build/config/compiler:compiler_arm_fpu", |
| 473 "//build/config/compiler:chromium_code", | 473 "//build/config/compiler:chromium_code", |
| 474 "//build/config/compiler:default_include_dirs", | 474 "//build/config/compiler:default_include_dirs", |
| 475 "//build/config/compiler:default_optimization", | 475 "//build/config/compiler:default_optimization", |
| 476 "//build/config/compiler:default_symbols", | 476 "//build/config/compiler:default_symbols", |
| 477 "//build/config/compiler:no_exceptions", |
| 477 "//build/config/compiler:no_rtti", | 478 "//build/config/compiler:no_rtti", |
| 478 "//build/config/compiler:runtime_library", | 479 "//build/config/compiler:runtime_library", |
| 479 "//build/config/sanitizers:default_sanitizer_flags", | 480 "//build/config/sanitizers:default_sanitizer_flags", |
| 480 ] | 481 ] |
| 481 if (is_win) { | 482 if (is_win) { |
| 482 default_compiler_configs += [ | 483 default_compiler_configs += [ |
| 483 "//build/config/win:lean_and_mean", | 484 "//build/config/win:lean_and_mean", |
| 484 "//build/config/win:nominmax", | 485 "//build/config/win:nominmax", |
| 485 "//build/config/win:unicode", | 486 "//build/config/win:unicode", |
| 486 "//build/config/win:winver", | 487 "//build/config/win:winver", |
| 487 "//build/config/win:vs_code_analysis", | 488 "//build/config/win:vs_code_analysis", |
| 488 ] | 489 ] |
| 489 } | 490 } |
| 490 if (current_os == "winrt_81" || current_os == "winrt_81_phone" || | 491 if (current_os == "winrt_81" || current_os == "winrt_81_phone" || |
| 491 current_os == "winrt_10") { | 492 current_os == "winrt_10") { |
| 492 default_compiler_configs += [ "//build/config/win:target_winrt" ] | 493 default_compiler_configs += [ "//build/config/win:target_winrt" ] |
| 493 } | 494 } |
| 494 if (is_posix) { | 495 if (is_posix) { |
| 495 default_compiler_configs += [ | 496 default_compiler_configs += [ "//build/config/gcc:symbol_visibility_hidden" ] |
| 496 "//build/config/gcc:no_exceptions", | |
| 497 "//build/config/gcc:symbol_visibility_hidden", | |
| 498 ] | |
| 499 } | 497 } |
| 500 | 498 |
| 501 if (is_android) { | 499 if (is_android) { |
| 502 default_compiler_configs += | 500 default_compiler_configs += |
| 503 [ "//build/config/android:default_cygprofile_instrumentation" ] | 501 [ "//build/config/android:default_cygprofile_instrumentation" ] |
| 504 } | 502 } |
| 505 | 503 |
| 506 if (is_clang && !is_nacl) { | 504 if (is_clang && !is_nacl) { |
| 507 default_compiler_configs += [ | 505 default_compiler_configs += [ |
| 508 "//build/config/clang:find_bad_constructs", | 506 "//build/config/clang:find_bad_constructs", |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 set_defaults("component") { | 637 set_defaults("component") { |
| 640 if (is_component_build) { | 638 if (is_component_build) { |
| 641 configs = default_shared_library_configs | 639 configs = default_shared_library_configs |
| 642 if (is_android) { | 640 if (is_android) { |
| 643 configs -= [ "//build/config/android:hide_native_jni_exports" ] | 641 configs -= [ "//build/config/android:hide_native_jni_exports" ] |
| 644 } | 642 } |
| 645 } else { | 643 } else { |
| 646 configs = default_compiler_configs | 644 configs = default_compiler_configs |
| 647 } | 645 } |
| 648 } | 646 } |
| OLD | NEW |