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

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

Issue 843103003: android: Hide JNI exports by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added gn support Created 5 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/common.gypi ('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 # 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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 configs = _native_compiler_configs 434 configs = _native_compiler_configs
435 } 435 }
436 436
437 # Shared library defaults (also for components in component mode). 437 # Shared library defaults (also for components in component mode).
438 _shared_library_configs = 438 _shared_library_configs =
439 _native_compiler_configs + [ "//build/config:default_libs" ] 439 _native_compiler_configs + [ "//build/config:default_libs" ]
440 if (is_win) { 440 if (is_win) {
441 _shared_library_configs += _windows_linker_configs 441 _shared_library_configs += _windows_linker_configs
442 } else if (is_mac) { 442 } else if (is_mac) {
443 _shared_library_configs += [ "//build/config/mac:mac_dynamic_flags" ] 443 _shared_library_configs += [ "//build/config/mac:mac_dynamic_flags" ]
444 } else if (is_android) {
445 # Strip native JNI exports from shared libraries by default. Binaries that
446 # want this can remove this config.
447 _shared_library_configs +=
448 [ "//build/config/android:hide_native_jni_exports" ]
444 } 449 }
445 set_defaults("shared_library") { 450 set_defaults("shared_library") {
446 configs = _shared_library_configs 451 configs = _shared_library_configs
447 } 452 }
448 if (is_component_build) { 453 if (is_component_build) {
449 set_defaults("component") { 454 set_defaults("component") {
450 configs = _shared_library_configs 455 configs = _shared_library_configs
451 } 456 }
452 } 457 }
453 458
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 } 720 }
716 if (defined(invoker.testonly)) { 721 if (defined(invoker.testonly)) {
717 testonly = invoker.testonly 722 testonly = invoker.testonly
718 } 723 }
719 if (defined(invoker.visibility)) { 724 if (defined(invoker.visibility)) {
720 visibility = invoker.visibility 725 visibility = invoker.visibility
721 } 726 }
722 } 727 }
723 } 728 }
724 } 729 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | build/config/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698