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

Unified Diff: build/android/BUILD.gn

Issue 1374303004: Make adb_gdb work for GN builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/android/adb_gdb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/BUILD.gn
diff --git a/build/android/BUILD.gn b/build/android/BUILD.gn
index ef953a619a254bab56a0ed1b1e8a9adfc546ddcb..e45cf2da721d511911e90b80fa05a80688c94c62 100644
--- a/build/android/BUILD.gn
+++ b/build/android/BUILD.gn
@@ -32,12 +32,27 @@ generate_interface_jar("android_ijar") {
output_jar = "$root_out_dir/lib.java/android.interface.jar"
}
+# Copy to the lib.unstripped directory so that gdb can easily find it.
+copy("cpplib_unstripped") {
+ _soname = "libc++_shared.so"
+ sources = [
+ "${android_libcpp_root}/libs/${android_app_abi}/${_soname}",
+ ]
+ outputs = [
+ "${root_out_dir}/lib.unstripped/${_soname}",
+ ]
+}
+
action("cpplib_stripped") {
_strip_bin = "${android_tool_prefix}strip"
_soname = "libc++_shared.so"
- _input_so = "${android_libcpp_root}/libs/${android_app_abi}/${_soname}"
+ _input_so = "${root_out_dir}/lib.unstripped/${_soname}"
_output_so = "${root_shlib_dir}/${_soname}"
+ deps = [
+ ":cpplib_unstripped",
+ ]
+
script = "//build/gn_run_binary.py"
inputs = [
_strip_bin,
« no previous file with comments | « no previous file | build/android/adb_gdb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698