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

Side by Side 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, 10 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
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("//build/config/android/rules.gni") 5 import("//build/config/android/rules.gni")
6 import("//third_party/ijar/ijar.gni") 6 import("//third_party/ijar/ijar.gni")
7 import("//tools/android/wrapper_script.gni")
7 8
8 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar" 9 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar"
9 10
10 action("find_sun_tools_jar") { 11 action("find_sun_tools_jar") {
11 script = "//build/android/gyp/find_sun_tools_jar.py" 12 script = "//build/android/gyp/find_sun_tools_jar.py"
12 depfile = "$target_gen_dir/$target_name.d" 13 depfile = "$target_gen_dir/$target_name.d"
13 outputs = [ 14 outputs = [
14 depfile, 15 depfile,
15 sun_tools_jar_path, 16 sun_tools_jar_path,
16 ] 17 ]
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 _rebased_input_so = rebase_path(_input_so, root_out_dir) 69 _rebased_input_so = rebase_path(_input_so, root_out_dir)
69 _rebased_output_so = rebase_path(_output_so, root_out_dir) 70 _rebased_output_so = rebase_path(_output_so, root_out_dir)
70 args = [ 71 args = [
71 _rebased_strip_bin, 72 _rebased_strip_bin,
72 "--strip-unneeded", 73 "--strip-unneeded",
73 "-o", 74 "-o",
74 _rebased_output_so, 75 _rebased_output_so,
75 _rebased_input_so, 76 _rebased_input_so,
76 ] 77 ]
77 } 78 }
79
80 # Create wrapper scripts in out/bin that takes care of setting the
81 # --output-directory.
82 _scripts_to_wrap = [
83 "adb_gdb",
84 "adb_gdb_android_webview_shell",
85 "adb_gdb_blimp_client",
86 "adb_gdb_chrome_public",
87 "adb_gdb_content_shell",
88 "adb_gdb_cronet_sample",
89 "adb_gdb_mojo_shell",
90 "asan_symbolize.py",
91 "tombstones.py",
92 ]
93
94 _wrapper_targets = []
95 foreach(script, _scripts_to_wrap) {
96 _target_name = get_path_info(script, "name") + "_wrapper"
97 _wrapper_targets += [ ":$_target_name" ]
98 wrapper_script(_target_name) {
99 target = script
100 }
101 }
102
103 group("wrapper_scripts") {
104 deps = _wrapper_targets
105 }
OLDNEW
« 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