Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: build/config/BUILDCONFIG.gn

Issue 2633593004: Android: Use linker script to hide all non-JNI symbols (Closed)
Patch Set: sub-repos now updated Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/android/android_only_jni_exports.lst ('k') | build/config/android/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_native_jni_exports", 572 [ "//build/config/android:hide_all_but_jni_onload" ]
573 "//build/config/android:hide_all_but_jni_onload",
574 ]
575 } 573 }
576 set_defaults("shared_library") { 574 set_defaults("shared_library") {
577 configs = default_shared_library_configs 575 configs = default_shared_library_configs
578 } 576 }
579 set_defaults("loadable_module") { 577 set_defaults("loadable_module") {
580 configs = default_shared_library_configs 578 configs = default_shared_library_configs
581 } 579 }
582 580
583 # ============================================================================== 581 # ==============================================================================
584 # COMPONENT SETUP 582 # COMPONENT SETUP
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 } 640 }
643 deps += [ "//build/config/sanitizers:deps" ] 641 deps += [ "//build/config/sanitizers:deps" ]
644 } 642 }
645 } 643 }
646 644
647 # Component defaults 645 # Component defaults
648 set_defaults("component") { 646 set_defaults("component") {
649 if (is_component_build) { 647 if (is_component_build) {
650 configs = default_shared_library_configs 648 configs = default_shared_library_configs
651 if (is_android) { 649 if (is_android) {
652 configs -= [ 650 configs -= [ "//build/config/android:hide_all_but_jni_onload" ]
653 "//build/config/android:hide_native_jni_exports",
654 "//build/config/android:hide_all_but_jni_onload",
655 ]
656 } 651 }
657 } else { 652 } else {
658 configs = default_compiler_configs 653 configs = default_compiler_configs
659 } 654 }
660 } 655 }
OLDNEW
« no previous file with comments | « build/android/android_only_jni_exports.lst ('k') | build/config/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698