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 # 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 Loading... |
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 Loading... |
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 } |
OLD | NEW |