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

Side by Side Diff: build/config/android/rules.gni

Issue 1496283003: Port android_must_copy_system_libraries logic GYP->GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/config/android/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « build/config/android/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698