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

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

Issue 1231723002: Android GN: Include libstdc++.so when doing a component build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn11
Patch Set: Fix create_native_executable_dist() not including lib paths Created 5 years, 5 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 | « build/config/android/config.gni ('k') | build/config/compiler/BUILD.gn » ('j') | 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("//third_party/android_platform/config.gni") 8 import("//third_party/android_platform/config.gni")
9 import("//tools/grit/grit_rule.gni") 9 import("//tools/grit/grit_rule.gni")
10 10
(...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after
1425 } 1425 }
1426 1426
1427 _enable_relocation_packing = false 1427 _enable_relocation_packing = false
1428 if (defined(invoker.enable_relocation_packing) && 1428 if (defined(invoker.enable_relocation_packing) &&
1429 invoker.enable_relocation_packing) { 1429 invoker.enable_relocation_packing) {
1430 _enable_relocation_packing = relocation_packing_supported 1430 _enable_relocation_packing = relocation_packing_supported
1431 assert(_use_chromium_linker, 1431 assert(_use_chromium_linker,
1432 "Relocation packing requires use of the" + " Chromium linker.") 1432 "Relocation packing requires use of the" + " Chromium linker.")
1433 } 1433 }
1434 1434
1435 _native_libs = process_file_template( 1435 _native_libs = []
1436 if (is_component_build) {
1437 _native_libs += [ "$root_out_dir/lib.stripped/libc++_shared.so" ]
1438 _chromium_linker_dep += [ "//build/android:cpplib_stripped" ]
1439 }
1440 _native_libs += process_file_template(
1436 invoker.native_libs, 1441 invoker.native_libs,
1437 "$root_build_dir/lib.stripped/{{source_file_part}}") 1442 "$root_build_dir/lib.stripped/{{source_file_part}}")
1438 1443
1439 _native_libs_dir = base_path + "/libs" 1444 _native_libs_dir = base_path + "/libs"
1440 1445
1441 if (_use_chromium_linker) { 1446 if (_use_chromium_linker) {
1442 _native_libs += 1447 _native_libs +=
1443 [ "$root_build_dir/lib.stripped/libchromium_android_linker.so" ] 1448 [ "$root_build_dir/lib.stripped/libchromium_android_linker.so" ]
1444 } 1449 }
1445 1450
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
2078 testonly = invoker.testonly 2083 testonly = invoker.testonly
2079 } 2084 }
2080 2085
2081 dist_dir = invoker.dist_dir 2086 dist_dir = invoker.dist_dir
2082 binary = invoker.binary 2087 binary = invoker.binary
2083 template_name = target_name 2088 template_name = target_name
2084 2089
2085 libraries_list = 2090 libraries_list =
2086 "${target_gen_dir}/${template_name}_library_dependencies.list" 2091 "${target_gen_dir}/${template_name}_library_dependencies.list"
2087 2092
2088 # TODO(gyp)
2089 #'dependencies': [
2090 #'<(DEPTH)/build/android/setup.gyp:copy_system_libraries',
2091 #],
2092
2093 find_deps_target_name = "${template_name}__find_library_dependencies" 2093 find_deps_target_name = "${template_name}__find_library_dependencies"
2094 copy_target_name = "${template_name}__copy_libraries_and_exe" 2094 copy_target_name = "${template_name}__copy_libraries_and_exe"
2095 2095
2096 stripped_libraries_dir = "$root_build_dir/lib.stripped" 2096 stripped_libraries_dir = "$root_build_dir/lib.stripped"
2097 action(find_deps_target_name) { 2097 action(find_deps_target_name) {
2098 visibility = [ ":$copy_target_name" ] 2098 visibility = [ ":$copy_target_name" ]
2099 2099
2100 script = "//build/android/gyp/write_ordered_libraries.py" 2100 script = "//build/android/gyp/write_ordered_libraries.py"
2101 depfile = "$target_gen_dir/$target_name.d" 2101 depfile = "$target_gen_dir/$target_name.d"
2102 inputs = [ 2102 inputs = [
(...skipping 27 matching lines...) Expand all
2130 clear_dir = true 2130 clear_dir = true
2131 inputs = [ 2131 inputs = [
2132 binary, 2132 binary,
2133 libraries_list, 2133 libraries_list,
2134 ] 2134 ]
2135 dest = dist_dir 2135 dest = dist_dir
2136 rebased_binaries_list = rebase_path([ binary ], root_build_dir) 2136 rebased_binaries_list = rebase_path([ binary ], root_build_dir)
2137 rebased_libraries_list = rebase_path(libraries_list, root_build_dir) 2137 rebased_libraries_list = rebase_path(libraries_list, root_build_dir)
2138 args = [ 2138 args = [
2139 "--files=$rebased_binaries_list", 2139 "--files=$rebased_binaries_list",
2140 "--files=@FileArg($rebased_libraries_list:libraries)", 2140 "--files=@FileArg($rebased_libraries_list:lib_paths)",
2141 ] 2141 ]
2142 2142
2143 deps = [ 2143 deps = [
2144 ":$find_deps_target_name", 2144 ":$find_deps_target_name",
2145 ] 2145 ]
2146 if (defined(invoker.deps)) { 2146 if (defined(invoker.deps)) {
2147 deps += invoker.deps 2147 deps += invoker.deps
2148 } 2148 }
2149 } 2149 }
2150 2150
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
2218 template("uiautomator_test") { 2218 template("uiautomator_test") {
2219 set_sources_assignment_filter([]) 2219 set_sources_assignment_filter([])
2220 if (defined(invoker.testonly)) { 2220 if (defined(invoker.testonly)) {
2221 testonly = invoker.testonly 2221 testonly = invoker.testonly
2222 } 2222 }
2223 assert(target_name != "") 2223 assert(target_name != "")
2224 assert(invoker.deps != [] || true) 2224 assert(invoker.deps != [] || true)
2225 group(target_name) { 2225 group(target_name) {
2226 } 2226 }
2227 } 2227 }
OLDNEW
« no previous file with comments | « build/config/android/config.gni ('k') | build/config/compiler/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698