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 # PLATFORM SELECTION | 6 # PLATFORM SELECTION |
7 # ============================================================================= | 7 # ============================================================================= |
8 # | 8 # |
9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name | 9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name |
10 # of the GN thing that encodes combinations of these things. | 10 # of the GN thing that encodes combinations of these things. |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 set_defaults("static_library") { | 301 set_defaults("static_library") { |
302 configs = _native_compiler_configs | 302 configs = _native_compiler_configs |
303 } | 303 } |
304 | 304 |
305 # Shared library defaults (also for components in component mode). | 305 # Shared library defaults (also for components in component mode). |
306 _shared_library_configs = _native_compiler_configs | 306 _shared_library_configs = _native_compiler_configs |
307 if (is_win) { | 307 if (is_win) { |
308 _shared_library_configs += _windows_linker_configs | 308 _shared_library_configs += _windows_linker_configs |
309 } else if (is_mac) { | 309 } else if (is_mac) { |
310 _shared_library_configs += [ "//build/config/mac:mac_dynamic_flags" ] | 310 _shared_library_configs += [ "//build/config/mac:mac_dynamic_flags" ] |
311 } else if (is_android) { | |
312 # Strip native JNI exports from shared libraries by default. Binaries that | |
313 # want this can remove this config. | |
314 _shared_library_configs += | |
315 [ "//build/config/android:hide_native_jni_exports" ] | |
316 } | 311 } |
317 set_defaults("shared_library") { | 312 set_defaults("shared_library") { |
318 configs = _shared_library_configs | 313 configs = _shared_library_configs |
319 } | 314 } |
320 | 315 |
321 # Source set defaults (also for components in non-component mode). | 316 # Source set defaults (also for components in non-component mode). |
322 set_defaults("source_set") { | 317 set_defaults("source_set") { |
323 configs = _native_compiler_configs | 318 configs = _native_compiler_configs |
324 } | 319 } |
325 set_defaults("component") { | 320 set_defaults("component") { |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 sources = invoker.sources | 461 sources = invoker.sources |
467 } | 462 } |
468 if (defined(invoker.testonly)) { | 463 if (defined(invoker.testonly)) { |
469 testonly = invoker.testonly | 464 testonly = invoker.testonly |
470 } | 465 } |
471 if (defined(invoker.visibility)) { | 466 if (defined(invoker.visibility)) { |
472 visibility = invoker.visibility | 467 visibility = invoker.visibility |
473 } | 468 } |
474 } | 469 } |
475 } | 470 } |
OLD | NEW |