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("//mojo/generate_mojo_shell_assets_list.gni") | 5 import("//mojo/generate_mojo_shell_assets_list.gni") |
6 import("//mojo/public/mojo_application.gni") | 6 import("//mojo/public/mojo_application.gni") |
7 import("//mojo/public/tools/bindings/mojom.gni") | 7 import("//mojo/public/tools/bindings/mojom.gni") |
8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
9 | 9 |
10 group("runner") { | 10 group("runner") { |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
260 ":resources", | 260 ":resources", |
261 "//base:base_java", | 261 "//base:base_java", |
262 ] | 262 ] |
263 } | 263 } |
264 | 264 |
265 android_resources("resources") { | 265 android_resources("resources") { |
266 resource_dirs = [ "android/apk/res" ] | 266 resource_dirs = [ "android/apk/res" ] |
267 custom_package = "org.chromium.mojo.shell" | 267 custom_package = "org.chromium.mojo.shell" |
268 } | 268 } |
269 | 269 |
270 mojo_runner_test_assets_dir = "$root_build_dir/mojo_runner_test_assets" | 270 android_assets("mojo_runner_apptests_assets") { |
271 mojo_runner_apptests_assets_dir = | |
272 "$root_build_dir/mojo_runner_apptests_assets" | |
273 | |
274 copy_ex("copy_mojo_runner_apptests_assets") { | |
275 testonly = true | 271 testonly = true |
276 clear_dir = true | |
277 dest = mojo_runner_apptests_assets_dir | |
278 | 272 |
279 deps = [ | 273 deps = [ |
280 ":bootstrap", | 274 ":bootstrap", |
281 ":bootstrap_java", | 275 ":bootstrap_java", |
282 "//components/clipboard:apptests", | 276 "//components/clipboard:clipboard_assets", |
283 "//components/mus/ws:apptests", | 277 "//components/clipboard:apptests_assets", |
284 "//components/resource_provider:apptests", | 278 "//components/mus/ws:apptests_assets", |
285 "//mojo/services/network:apptests", | 279 "//components/resource_provider:resource_provider_assets", |
286 "//third_party/icu:icudata", | 280 "//components/resource_provider:apptests_assets", |
281 "//mojo/services/network:network_assets", | |
282 "//mojo/services/network:apptests_assets", | |
283 "//third_party/icu:icu_assets", | |
287 ] | 284 ] |
288 | 285 |
289 sources = [ | 286 sources = [ |
290 "$root_out_dir/obj/mojo/runner/bootstrap_java.dex.jar", | 287 "$root_out_dir/obj/mojo/runner/bootstrap_java.dex.jar", |
291 "$root_shlib_dir/${shlib_prefix}bootstrap$shlib_extension", | 288 "$root_shlib_dir/${shlib_prefix}bootstrap$shlib_extension", |
292 ] | 289 ] |
293 | |
294 apptest_outputs = [ | |
295 "clipboard", | |
296 "clipboard_apptests", | |
297 "icudtl.dat", | |
298 "mus_apptests", | |
299 "resource_provider", | |
300 "resource_provider_apptests", | |
301 "network_service", | |
302 "network_service_apptests", | |
303 ] | |
304 | |
305 args = [] | |
306 foreach(path, apptest_outputs) { | |
307 args += | |
308 [ "--files=" + rebase_path("$root_out_dir/$path", root_build_dir) ] | |
309 } | |
310 } | |
311 | |
312 generate_mojo_shell_assets_list("build_mojo_runner_apptests_assets") { | |
313 testonly = true | |
314 deps = [ | |
315 ":copy_mojo_runner_apptests_assets", | |
316 ] | |
317 dir = mojo_runner_apptests_assets_dir | |
318 } | 290 } |
319 | 291 |
320 copy("copy_mojo_runner") { | 292 copy("copy_mojo_runner") { |
321 sources = [ | 293 sources = [ |
322 "$root_out_dir/mojo_runner", | 294 "$root_out_dir/mojo_runner", |
323 ] | 295 ] |
324 outputs = [ | 296 outputs = [ |
325 "$root_shlib_dir/${shlib_prefix}mojo_runner$shlib_extension", | 297 "$root_shlib_dir/${shlib_prefix}mojo_runner$shlib_extension", |
326 ] | 298 ] |
327 deps = [ | 299 deps = [ |
328 ":mojo_runner", | 300 ":mojo_runner", |
329 ] | 301 ] |
330 } | 302 } |
331 | 303 |
332 copy_ex("copy_mojo_runner_test_assets") { | |
333 testonly = true | |
334 clear_dir = true | |
335 dest = mojo_runner_test_assets_dir | |
336 deps = [ | |
337 "//mojo/services/test_service:test_app", | |
338 "//mojo/services/test_service:test_request_tracker_app", | |
339 "//third_party/icu:icudata", | |
340 ] | |
341 | |
342 # Directories can't be specified as sources so pass manually to the script. | |
343 args = [ | |
344 "--files=" + rebase_path("$root_out_dir/icudtl.dat", root_build_dir), | |
345 "--files=" + rebase_path("$root_out_dir/test_app", root_build_dir), | |
346 "--files=" + | |
347 rebase_path("$root_out_dir/test_request_tracker_app", root_build_dir), | |
348 ] | |
349 } | |
350 | |
351 android_apk("mojo_runner_apptests_apk") { | 304 android_apk("mojo_runner_apptests_apk") { |
352 testonly = true | 305 testonly = true |
353 apk_name = "MojoRunnerApptests" | 306 apk_name = "MojoRunnerApptests" |
354 android_manifest = "android/apk/AndroidManifest.xml" | 307 android_manifest = "android/apk/AndroidManifest.xml" |
355 native_libs = [ "${shlib_prefix}mojo_runner$shlib_extension" ] | 308 native_libs = [ "${shlib_prefix}mojo_runner$shlib_extension" ] |
356 asset_location = mojo_runner_apptests_assets_dir | 309 write_asset_list = true |
357 | 310 |
358 deps = [ | 311 deps = [ |
359 ":build_mojo_runner_apptests_assets", | 312 ":mojo_runner_apptests_assets", |
pkotwicz
2015/11/17 19:34:25
G is for Google
A is for alphabetical order
agrieve
2015/11/21 01:47:26
:) done.
| |
360 ":copy_mojo_runner", | 313 ":copy_mojo_runner", |
361 ":java", | 314 ":java", |
362 ":resources", | 315 ":resources", |
363 "//base:base_java", | 316 "//base:base_java", |
364 "//ui/platform_window/android:platform_window_java", | 317 "//ui/platform_window/android:platform_window_java", |
365 google_play_services_resources, | 318 google_play_services_resources, |
366 ] | 319 ] |
367 } | 320 } |
368 | |
369 generate_mojo_shell_assets_list("build_mojo_runner_test_assets") { | |
370 testonly = true | |
371 deps = [ | |
372 ":copy_mojo_runner_test_assets", | |
373 ] | |
374 dir = mojo_runner_test_assets_dir | |
375 } | |
376 } | 321 } |
OLD | NEW |