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("//testing/test.gni") | 7 import("//testing/test.gni") |
8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
9 | 9 |
10 # We don't support building in the component build since mojo apps are | 10 # We don't support building in the component build since mojo apps are |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 deps = [ | 303 deps = [ |
304 ":bootstrap", | 304 ":bootstrap", |
305 ":bootstrap_java", | 305 ":bootstrap_java", |
306 "//components/clipboard:apptests", | 306 "//components/clipboard:apptests", |
307 "//components/resource_provider:apptests", | 307 "//components/resource_provider:apptests", |
308 "//components/view_manager:apptests", | 308 "//components/view_manager:apptests", |
309 "//mojo/services/network:apptests", | 309 "//mojo/services/network:apptests", |
310 ] | 310 ] |
311 | 311 |
312 sources = [ | 312 sources = [ |
313 "$root_out_dir/lib.stripped/libbootstrap$android_product_extension", | |
314 "$root_out_dir/obj/mojo/runner/bootstrap_java.dex.jar", | 313 "$root_out_dir/obj/mojo/runner/bootstrap_java.dex.jar", |
| 314 "$root_shlib_dir/${shlib_prefix}bootstrap$shlib_extension", |
315 ] | 315 ] |
316 | 316 |
317 apptest_outputs = [ | 317 apptest_outputs = [ |
318 "clipboard", | 318 "clipboard", |
319 "clipboard_apptests", | 319 "clipboard_apptests", |
320 "resource_provider", | 320 "resource_provider", |
321 "resource_provider_apptests", | 321 "resource_provider_apptests", |
322 "view_manager_apptests", | 322 "view_manager_apptests", |
323 "network_service", | 323 "network_service", |
324 "network_service_apptests", | 324 "network_service_apptests", |
325 ] | 325 ] |
326 | 326 |
327 args = [] | 327 args = [] |
328 foreach(path, apptest_outputs) { | 328 foreach(path, apptest_outputs) { |
329 args += | 329 args += |
330 [ "--files=" + rebase_path("$root_out_dir/$path", root_build_dir) ] | 330 [ "--files=" + rebase_path("$root_out_dir/$path", root_build_dir) ] |
331 } | 331 } |
332 } | 332 } |
333 | 333 |
334 generate_mojo_shell_assets_list("build_mojo_runner_apptests_assets") { | 334 generate_mojo_shell_assets_list("build_mojo_runner_apptests_assets") { |
335 testonly = true | 335 testonly = true |
336 deps = [ | 336 deps = [ |
337 ":copy_mojo_runner_apptests_assets", | 337 ":copy_mojo_runner_apptests_assets", |
338 ] | 338 ] |
339 dir = mojo_runner_apptests_assets_dir | 339 dir = mojo_runner_apptests_assets_dir |
340 } | 340 } |
341 | 341 |
342 copy("copy_mojo_runner") { | 342 copy("copy_mojo_runner") { |
343 sources = [ | 343 sources = [ |
344 "$root_out_dir/exe.stripped/mojo_runner", | 344 "$root_out_dir/mojo_runner", |
345 ] | 345 ] |
346 outputs = [ | 346 outputs = [ |
347 "$root_out_dir/lib.stripped/libmojo_runner$android_product_extension", | 347 "$root_shlib_dir/${shlib_prefix}mojo_runner$shlib_extension", |
348 ] | 348 ] |
349 deps = [ | 349 deps = [ |
350 ":mojo_runner", | 350 ":mojo_runner", |
351 ] | 351 ] |
352 } | 352 } |
353 | 353 |
354 copy_ex("copy_mojo_runner_test_assets") { | 354 copy_ex("copy_mojo_runner_test_assets") { |
355 testonly = true | 355 testonly = true |
356 clear_dir = true | 356 clear_dir = true |
357 dest = mojo_runner_test_assets_dir | 357 dest = mojo_runner_test_assets_dir |
358 deps = [ | 358 deps = [ |
359 "//mojo/services/test_service:test_app", | 359 "//mojo/services/test_service:test_app", |
360 "//mojo/services/test_service:test_request_tracker_app", | 360 "//mojo/services/test_service:test_request_tracker_app", |
361 ] | 361 ] |
362 | 362 |
363 # Directories can't be specified as sources so pass manually to the script. | 363 # Directories can't be specified as sources so pass manually to the script. |
364 args = [ | 364 args = [ |
365 "--files=" + rebase_path("$root_out_dir/test_app", root_build_dir), | 365 "--files=" + rebase_path("$root_out_dir/test_app", root_build_dir), |
366 "--files=" + | 366 "--files=" + |
367 rebase_path("$root_out_dir/test_request_tracker_app", root_build_dir), | 367 rebase_path("$root_out_dir/test_request_tracker_app", root_build_dir), |
368 ] | 368 ] |
369 } | 369 } |
370 | 370 |
371 android_apk("mojo_runner_apptests_apk") { | 371 android_apk("mojo_runner_apptests_apk") { |
372 testonly = true | 372 testonly = true |
373 apk_name = "MojoRunnerApptests" | 373 apk_name = "MojoRunnerApptests" |
374 android_manifest = "android/apk/AndroidManifest.xml" | 374 android_manifest = "android/apk/AndroidManifest.xml" |
375 native_libs = [ "libmojo_runner$android_product_extension" ] | 375 native_libs = [ "${shlib_prefix}mojo_runner$shlib_extension" ] |
376 asset_location = mojo_runner_apptests_assets_dir | 376 asset_location = mojo_runner_apptests_assets_dir |
377 | 377 |
378 deps = [ | 378 deps = [ |
379 ":build_mojo_runner_apptests_assets", | 379 ":build_mojo_runner_apptests_assets", |
380 ":copy_mojo_runner", | 380 ":copy_mojo_runner", |
381 ":java", | 381 ":java", |
382 ":resources", | 382 ":resources", |
383 "//base:base_java", | 383 "//base:base_java", |
384 "//third_party/android_tools:google_play_services_default_resources", | 384 "//third_party/android_tools:google_play_services_default_resources", |
385 "//ui/platform_window/android:platform_window_java", | 385 "//ui/platform_window/android:platform_window_java", |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 ] | 481 ] |
482 | 482 |
483 deps = [ | 483 deps = [ |
484 "//base", | 484 "//base", |
485 "//mojo/application/public/cpp:test_support", | 485 "//mojo/application/public/cpp:test_support", |
486 "//mojo/runner/test:bindings", | 486 "//mojo/runner/test:bindings", |
487 "//mojo/services/network/public/interfaces", | 487 "//mojo/services/network/public/interfaces", |
488 "//third_party/mojo/src/mojo/public/cpp/bindings:callback", | 488 "//third_party/mojo/src/mojo/public/cpp/bindings:callback", |
489 ] | 489 ] |
490 } | 490 } |
OLD | NEW |