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

Unified Diff: build/android/BUILD.gn

Issue 1663103004: Create wrapper scripts that set --output-directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@adb_gdb-explicit
Patch Set: Created 4 years, 11 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/gyp/create_tool_script.py » ('j') | build/android/gyp/create_tool_script.py » ('J')
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 e45cf2da721d511911e90b80fa05a80688c94c62..83b39529b4d61cc04bdffbab606bb6ef5488045f 100644
--- a/build/android/BUILD.gn
+++ b/build/android/BUILD.gn
@@ -4,6 +4,7 @@
import("//build/config/android/rules.gni")
import("//third_party/ijar/ijar.gni")
+import("//tools/android/wrapper_script.gni")
sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar"
@@ -75,3 +76,30 @@ action("cpplib_stripped") {
_rebased_input_so,
]
}
+
+# Create wrapper scripts in out/bin that takes care of setting the
+# --output-directory.
+_scripts_to_wrap = [
+ "adb_gdb",
+ "adb_gdb_android_webview_shell",
+ "adb_gdb_blimp_client",
+ "adb_gdb_chrome_public",
+ "adb_gdb_content_shell",
+ "adb_gdb_cronet_sample",
+ "adb_gdb_mojo_shell",
+ "asan_symbolize.py",
+ "tombstones.py",
+]
+
+_wrapper_targets = []
+foreach(script, _scripts_to_wrap) {
+ _target_name = get_path_info(script, "name") + "_wrapper"
+ _wrapper_targets += [ ":$_target_name" ]
+ wrapper_script(_target_name) {
+ target = script
+ }
+}
+
+group("wrapper_scripts") {
+ deps = _wrapper_targets
+}
« no previous file with comments | « no previous file | build/android/gyp/create_tool_script.py » ('j') | build/android/gyp/create_tool_script.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698