OLD | NEW |
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 | 7 |
8 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar" | 8 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar" |
9 | 9 |
10 # Create or update the API versions cache if necessary by running a | 10 # Create or update the API versions cache if necessary by running a |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 _rebased_output_so = rebase_path(_output_so, root_out_dir) | 77 _rebased_output_so = rebase_path(_output_so, root_out_dir) |
78 args = [ | 78 args = [ |
79 _rebased_strip_bin, | 79 _rebased_strip_bin, |
80 "--strip-unneeded", | 80 "--strip-unneeded", |
81 "-o", | 81 "-o", |
82 _rebased_output_so, | 82 _rebased_output_so, |
83 _rebased_input_so, | 83 _rebased_input_so, |
84 ] | 84 ] |
85 } | 85 } |
86 | 86 |
87 jinja_template("devil_chromium_config") { | |
88 input = "//build/android/devil_chromium.jinja" | |
89 output = "$root_gen_dir/devil_chromium.json" | |
90 | |
91 _rebased_android_sdk_root = | |
92 rebase_path(default_android_sdk_root, root_gen_dir) | |
93 _rebased_output_dir = rebase_path(root_build_dir, root_gen_dir) | |
94 | |
95 variables = [ | |
96 "android_app_abi=$android_app_abi", | |
97 "android_sdk_root=$_rebased_android_sdk_root", | |
98 "build_tools_version=$default_android_sdk_build_tools_version", | |
99 "output_dir=$_rebased_output_dir", | |
100 ] | |
101 } | |
102 | |
103 group("test_runner_py") { | 87 group("test_runner_py") { |
104 _py_files = read_file("test_runner.pydeps", "list lines") | 88 _py_files = read_file("test_runner.pydeps", "list lines") |
105 | 89 |
106 # Filter out comments. | 90 # Filter out comments. |
107 set_sources_assignment_filter([ "#*" ]) | 91 set_sources_assignment_filter([ "#*" ]) |
108 sources = _py_files | 92 sources = _py_files |
109 | 93 |
110 data = sources + [ | 94 data = sources + [ |
| 95 "devil_chromium.json", |
111 "//third_party/android_tools/sdk/build-tools/23.0.1/aapt", | 96 "//third_party/android_tools/sdk/build-tools/23.0.1/aapt", |
112 "//third_party/android_tools/sdk/build-tools/23.0.1/dexdump", | 97 "//third_party/android_tools/sdk/build-tools/23.0.1/dexdump", |
113 "//third_party/android_tools/sdk/build-tools/23.0.1/lib/libc++.so", | 98 "//third_party/android_tools/sdk/build-tools/23.0.1/lib/libc++.so", |
114 "//third_party/android_tools/sdk/build-tools/23.0.1/split-select", | 99 "//third_party/android_tools/sdk/build-tools/23.0.1/split-select", |
115 "//third_party/android_tools/sdk/platform-tools/adb", | 100 "//third_party/android_tools/sdk/platform-tools/adb", |
116 "//third_party/catapult/third_party/gsutil/", | 101 "//third_party/catapult/third_party/gsutil/", |
117 "//third_party/catapult/devil/devil/devil_dependencies.json", | 102 "//third_party/catapult/devil/devil/devil_dependencies.json", |
118 "$root_gen_dir/devil_chromium.json", | |
119 ] | 103 ] |
120 data_deps = [ | 104 data_deps = [ |
121 "//tools/swarming_client:isolate_py", | 105 "//tools/swarming_client:isolate_py", |
122 ] | 106 ] |
123 deps = [ | |
124 "//build/android:devil_chromium_config", | |
125 ] | |
126 } | 107 } |
127 | 108 |
128 # Create wrapper scripts in out/bin that takes care of setting the | 109 # Create wrapper scripts in out/bin that takes care of setting the |
129 # --output-directory. | 110 # --output-directory. |
130 _scripts_to_wrap = [ | 111 _scripts_to_wrap = [ |
131 # TODO(agrieve): Once GYP is no more, delete the checked-in adb_gdb_* scripts | 112 # TODO(agrieve): Once GYP is no more, delete the checked-in adb_gdb_* scripts |
132 # and generated a script for each android_apk() that has a native library. | 113 # and generated a script for each android_apk() that has a native library. |
133 "adb_gdb_android_webview_shell", | 114 "adb_gdb_android_webview_shell", |
134 "adb_gdb_blimp_client", | 115 "adb_gdb_blimp_client", |
135 "adb_gdb_chrome_public", | 116 "adb_gdb_chrome_public", |
136 "adb_gdb_content_shell", | 117 "adb_gdb_content_shell", |
137 "adb_gdb_cronet_sample", | 118 "adb_gdb_cronet_sample", |
138 "adb_gdb_mojo_shell", | 119 "adb_gdb_mojo_shell", |
139 "asan_symbolize.py", | 120 "asan_symbolize.py", |
140 "tombstones.py", | 121 "tombstones.py", |
141 ] | 122 ] |
142 | 123 |
143 _wrapper_targets = [] | 124 _wrapper_targets = [] |
144 foreach(script, _scripts_to_wrap) { | 125 foreach(script, _scripts_to_wrap) { |
145 _target_name = get_path_info(script, "name") + "_wrapper" | 126 _target_name = get_path_info(script, "name") + "_wrapper" |
146 _wrapper_targets += [ ":$_target_name" ] | 127 _wrapper_targets += [ ":$_target_name" ] |
147 wrapper_script(_target_name) { | 128 wrapper_script(_target_name) { |
148 target = script | 129 target = script |
149 } | 130 } |
150 } | 131 } |
151 | 132 |
152 group("wrapper_scripts") { | 133 group("wrapper_scripts") { |
153 deps = _wrapper_targets | 134 deps = _wrapper_targets |
154 } | 135 } |
OLD | NEW |