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/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
7 import("//build_overrides/v8.gni") | 7 import("//build_overrides/v8.gni") |
8 import("//third_party/icu/config.gni") | 8 import("//third_party/icu/config.gni") |
9 | 9 |
10 generate_jni("content_shell_jni_headers") { | 10 generate_jni("content_shell_jni_headers") { |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 output = chromium_linker_test_manifest | 175 output = chromium_linker_test_manifest |
176 } | 176 } |
177 | 177 |
178 android_resources("linker_resources") { | 178 android_resources("linker_resources") { |
179 testonly = true | 179 testonly = true |
180 resource_dirs = [ "linker_test_apk/res" ] | 180 resource_dirs = [ "linker_test_apk/res" ] |
181 android_manifest = chromium_linker_test_manifest | 181 android_manifest = chromium_linker_test_manifest |
182 android_manifest_dep = ":chromium_linker_test_manifest" | 182 android_manifest_dep = ":chromium_linker_test_manifest" |
183 } | 183 } |
184 | 184 |
185 android_apk("chromium_linker_test_apk") { | 185 _linker_test_apk_target_name = "chromium_linker_test_apk__apk" |
| 186 _linker_test_apk_test_runner_target_name = |
| 187 "chromium_linker_test_apk__test_runner_script" |
| 188 |
| 189 android_apk(_linker_test_apk_target_name) { |
186 testonly = true | 190 testonly = true |
187 deps = [ | 191 deps = [ |
188 ":content_shell_assets", | 192 ":content_shell_assets", |
189 ":content_shell_java", | 193 ":content_shell_java", |
190 ":linker_resources", | 194 ":linker_resources", |
191 "//base:base_java", | 195 "//base:base_java", |
192 "//content/public/android:content_java", | 196 "//content/public/android:content_java", |
193 "//ui/android:ui_java", | 197 "//ui/android:ui_java", |
194 ] | 198 ] |
195 android_manifest = chromium_linker_test_manifest | 199 android_manifest = chromium_linker_test_manifest |
196 android_manifest_dep = ":chromium_linker_test_manifest" | 200 android_manifest_dep = ":chromium_linker_test_manifest" |
197 apk_name = "ChromiumLinkerTest" | 201 apk_name = "ChromiumLinkerTest" |
198 java_files = [ | 202 java_files = [ |
199 "linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerT
estActivity.java", | 203 "linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerT
estActivity.java", |
200 "linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerT
estApplication.java", | 204 "linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerT
estApplication.java", |
201 "linker_test_apk/src/org/chromium/chromium_linker_test_apk/LinkerTests.jav
a", | 205 "linker_test_apk/src/org/chromium/chromium_linker_test_apk/LinkerTests.jav
a", |
202 ] | 206 ] |
203 shared_libraries = [ ":linker_test" ] | 207 shared_libraries = [ ":linker_test" ] |
204 use_chromium_linker = true | 208 use_chromium_linker = true |
205 enable_chromium_linker_tests = true | 209 enable_chromium_linker_tests = true |
206 } | 210 } |
207 | 211 |
| 212 test_runner_script(_linker_test_apk_test_runner_target_name) { |
| 213 test_name = "chromium_linker_test_apk" |
| 214 test_type = "linker" |
| 215 apk_target = ":$_linker_test_apk_target_name" |
| 216 ignore_all_data_deps = true |
| 217 } |
| 218 |
| 219 group("chromium_linker_test_apk") { |
| 220 testonly = true |
| 221 deps = [ |
| 222 ":$_linker_test_apk_target_name", |
| 223 ":$_linker_test_apk_test_runner_target_name", |
| 224 ] |
| 225 } |
| 226 |
208 shared_library("linker_test") { | 227 shared_library("linker_test") { |
209 testonly = true | 228 testonly = true |
210 sources = [ | 229 sources = [ |
211 "linker_test_apk/chromium_linker_test_android.cc", | 230 "linker_test_apk/chromium_linker_test_android.cc", |
212 "linker_test_apk/chromium_linker_test_linker_tests.cc", | 231 "linker_test_apk/chromium_linker_test_linker_tests.cc", |
213 ] | 232 ] |
214 | 233 |
215 deps = [ | 234 deps = [ |
216 ":linker_test_jni_headers", | 235 ":linker_test_jni_headers", |
217 "//build/config/sanitizers:deps", | 236 "//build/config/sanitizers:deps", |
(...skipping 19 matching lines...) Expand all Loading... |
237 testonly = true | 256 testonly = true |
238 deps = [ | 257 deps = [ |
239 ":content_shell_java", | 258 ":content_shell_java", |
240 "//base:base_java", | 259 "//base:base_java", |
241 "//content/public/android:content_java", | 260 "//content/public/android:content_java", |
242 "//testing/android/native_test:native_test_java", | 261 "//testing/android/native_test:native_test_java", |
243 "//ui/android:ui_java", | 262 "//ui/android:ui_java", |
244 ] | 263 ] |
245 java_files = [ "browsertests/src/org/chromium/content_shell/browsertests/Conte
ntShellBrowserTestActivity.java" ] | 264 java_files = [ "browsertests/src/org/chromium/content_shell/browsertests/Conte
ntShellBrowserTestActivity.java" ] |
246 } | 265 } |
OLD | NEW |