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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 | 561 |
562 # Shared library and loadable module defaults (also for components in component | 562 # Shared library and loadable module defaults (also for components in component |
563 # mode). | 563 # mode). |
564 default_shared_library_configs = default_compiler_configs + [ | 564 default_shared_library_configs = default_compiler_configs + [ |
565 "//build/config:default_libs", | 565 "//build/config:default_libs", |
566 "//build/config:shared_library_config", | 566 "//build/config:shared_library_config", |
567 ] + _linker_configs | 567 ] + _linker_configs |
568 if (is_android) { | 568 if (is_android) { |
569 # Strip native JNI exports from shared libraries by default. Binaries that | 569 # Strip native JNI exports from shared libraries by default. Binaries that |
570 # want this can remove this config. | 570 # want this can remove this config. |
571 default_shared_library_configs += | 571 default_shared_library_configs += [ |
572 [ "//build/config/android:hide_all_but_jni_onload" ] | 572 "//build/config/android:hide_native_jni_exports", |
| 573 "//build/config/android:hide_all_but_jni_onload", |
| 574 ] |
573 } | 575 } |
574 set_defaults("shared_library") { | 576 set_defaults("shared_library") { |
575 configs = default_shared_library_configs | 577 configs = default_shared_library_configs |
576 } | 578 } |
577 set_defaults("loadable_module") { | 579 set_defaults("loadable_module") { |
578 configs = default_shared_library_configs | 580 configs = default_shared_library_configs |
579 } | 581 } |
580 | 582 |
581 # ============================================================================== | 583 # ============================================================================== |
582 # COMPONENT SETUP | 584 # COMPONENT SETUP |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 } | 642 } |
641 deps += [ "//build/config/sanitizers:deps" ] | 643 deps += [ "//build/config/sanitizers:deps" ] |
642 } | 644 } |
643 } | 645 } |
644 | 646 |
645 # Component defaults | 647 # Component defaults |
646 set_defaults("component") { | 648 set_defaults("component") { |
647 if (is_component_build) { | 649 if (is_component_build) { |
648 configs = default_shared_library_configs | 650 configs = default_shared_library_configs |
649 if (is_android) { | 651 if (is_android) { |
650 configs -= [ "//build/config/android:hide_all_but_jni_onload" ] | 652 configs -= [ |
| 653 "//build/config/android:hide_native_jni_exports", |
| 654 "//build/config/android:hide_all_but_jni_onload", |
| 655 ] |
651 } | 656 } |
652 } else { | 657 } else { |
653 configs = default_compiler_configs | 658 configs = default_compiler_configs |
654 } | 659 } |
655 } | 660 } |
OLD | NEW |