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

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

Issue 1290643002: GN (Android): Fix packaging excess libs when target_cpu is changed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | 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/toolchain/toolchain.gni") 8 import("//build/toolchain/toolchain.gni")
9 import("//third_party/android_platform/config.gni") 9 import("//third_party/android_platform/config.gni")
10 import("//tools/grit/grit_rule.gni") 10 import("//tools/grit/grit_rule.gni")
(...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1443 _chromium_linker_dep += [ "//build/android:cpplib_stripped" ] 1443 _chromium_linker_dep += [ "//build/android:cpplib_stripped" ]
1444 } 1444 }
1445 1445
1446 # Allow native_libs to be in the form "foo.so" or "foo.cr.so" 1446 # Allow native_libs to be in the form "foo.so" or "foo.cr.so"
1447 _first_ext_removed = 1447 _first_ext_removed =
1448 process_file_template(invoker.native_libs, "{{source_name_part}}") 1448 process_file_template(invoker.native_libs, "{{source_name_part}}")
1449 _native_libs += process_file_template( 1449 _native_libs += process_file_template(
1450 _first_ext_removed, 1450 _first_ext_removed,
1451 "$root_shlib_dir/{{source_name_part}}$shlib_extension") 1451 "$root_shlib_dir/{{source_name_part}}$shlib_extension")
1452 1452
1453 _native_libs_dir = base_path + "/libs" 1453 # Add in target_cpu so that other architectures are not accidentally
1454 # included when switching target_cpu without doing a clean build.
1455 _native_libs_dir = gen_dir + "/lib-$target_cpu"
Dirk Pranke 2015/08/17 21:17:54 Brett, is there a better convention for toolchain-
Dirk Pranke 2015/08/19 20:14:49 Brett points out to me that this should actually b
1454 1456
1455 if (_use_chromium_linker) { 1457 if (_use_chromium_linker) {
1456 _native_libs += 1458 _native_libs +=
1457 [ "$root_shlib_dir/libchromium_android_linker$shlib_extension" ] 1459 [ "$root_shlib_dir/libchromium_android_linker$shlib_extension" ]
1458 } 1460 }
1459 1461
1460 _enable_relocation_packing = false 1462 _enable_relocation_packing = false
1461 if (_use_chromium_linker && defined(invoker.enable_relocation_packing) && 1463 if (_use_chromium_linker && defined(invoker.enable_relocation_packing) &&
1462 invoker.enable_relocation_packing) { 1464 invoker.enable_relocation_packing) {
1463 _enable_relocation_packing = true 1465 _enable_relocation_packing = true
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
2226 template("uiautomator_test") { 2228 template("uiautomator_test") {
2227 set_sources_assignment_filter([]) 2229 set_sources_assignment_filter([])
2228 if (defined(invoker.testonly)) { 2230 if (defined(invoker.testonly)) {
2229 testonly = invoker.testonly 2231 testonly = invoker.testonly
2230 } 2232 }
2231 assert(target_name != "") 2233 assert(target_name != "")
2232 assert(invoker.deps != [] || true) 2234 assert(invoker.deps != [] || true)
2233 group(target_name) { 2235 group(target_name) {
2234 } 2236 }
2235 } 2237 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698