| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//base/android/linker/config.gni") | 5 import("//base/android/linker/config.gni") |
| 6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
| 7 import("//build/config/android/internal_rules.gni") | 7 import("//build/config/android/internal_rules.gni") |
| 8 import("//build/config/sanitizers/sanitizers.gni") |
| 8 import("//build/toolchain/toolchain.gni") | 9 import("//build/toolchain/toolchain.gni") |
| 9 import("//third_party/android_platform/config.gni") | 10 import("//third_party/android_platform/config.gni") |
| 10 import("//tools/grit/grit_rule.gni") | 11 import("//tools/grit/grit_rule.gni") |
| 11 | 12 |
| 12 assert(is_android) | 13 assert(is_android) |
| 13 | 14 |
| 14 # Declare a jni target | 15 # Declare a jni target |
| 15 # | 16 # |
| 16 # This target generates the native jni bindings for a set of .java files. | 17 # This target generates the native jni bindings for a set of .java files. |
| 17 # | 18 # |
| (...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1316 assert(_enable_relocation_packing || true) # Mark as used. | 1317 assert(_enable_relocation_packing || true) # Mark as used. |
| 1317 | 1318 |
| 1318 assert( | 1319 assert( |
| 1319 !_load_library_from_apk || _use_chromium_linker, | 1320 !_load_library_from_apk || _use_chromium_linker, |
| 1320 "Loading library from the apk requires use" + " of the Chromium linker.") | 1321 "Loading library from the apk requires use" + " of the Chromium linker.") |
| 1321 | 1322 |
| 1322 # The dependency that makes the chromium linker, if any is needed. | 1323 # The dependency that makes the chromium linker, if any is needed. |
| 1323 _native_libs_deps = [] | 1324 _native_libs_deps = [] |
| 1324 | 1325 |
| 1325 if (defined(invoker.native_libs) && invoker.native_libs != []) { | 1326 if (defined(invoker.native_libs) && invoker.native_libs != []) { |
| 1326 if (is_component_build) { | 1327 if (is_component_build || is_asan) { |
| 1327 _native_libs += [ "$root_shlib_dir/libc++_shared.so" ] | 1328 _native_libs += [ "$root_shlib_dir/libc++_shared.so" ] |
| 1328 _native_libs_deps += [ "//build/android:cpplib_stripped" ] | 1329 _native_libs_deps += [ "//build/android:cpplib_stripped" ] |
| 1329 } | 1330 } |
| 1330 | 1331 |
| 1331 # Allow native_libs to be in the form "foo.so" or "foo.cr.so" | 1332 # Allow native_libs to be in the form "foo.so" or "foo.cr.so" |
| 1332 _first_ext_removed = | 1333 _first_ext_removed = |
| 1333 process_file_template(invoker.native_libs, "{{source_name_part}}") | 1334 process_file_template(invoker.native_libs, "{{source_name_part}}") |
| 1334 _native_libs += process_file_template( | 1335 _native_libs += process_file_template( |
| 1335 _first_ext_removed, | 1336 _first_ext_removed, |
| 1336 "$root_shlib_dir/{{source_name_part}}$shlib_extension") | 1337 "$root_shlib_dir/{{source_name_part}}$shlib_extension") |
| (...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2228 } | 2229 } |
| 2229 | 2230 |
| 2230 android_library(target_name) { | 2231 android_library(target_name) { |
| 2231 java_files = [] | 2232 java_files = [] |
| 2232 srcjar_deps = [ ":${_template_name}__protoc_java" ] | 2233 srcjar_deps = [ ":${_template_name}__protoc_java" ] |
| 2233 deps = [ | 2234 deps = [ |
| 2234 "//third_party/android_protobuf:protobuf_nano_javalib", | 2235 "//third_party/android_protobuf:protobuf_nano_javalib", |
| 2235 ] | 2236 ] |
| 2236 } | 2237 } |
| 2237 } | 2238 } |
| OLD | NEW |