| 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/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//mojo/public/mojo.gni") | 6 import("//mojo/public/mojo.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 # 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 |
| 11 # inherently components. | 11 # inherently components. |
| 12 assert(!is_component_build) | 12 assert(!is_component_build) |
| 13 | 13 |
| 14 group("shell") { | 14 group("shell") { |
| 15 testonly = true | 15 testonly = true |
| 16 | 16 |
| 17 deps = [ | 17 deps = [ |
| 18 ":mojo_shell", | 18 ":mojo_shell", |
| 19 ":tests", | 19 ":tests", |
| 20 ] | 20 ] |
| 21 | 21 |
| 22 if (!is_win) { | 22 if (!is_win) { |
| 23 deps += [ ":mojo_launcher" ] | 23 deps += [ ":mojo_launcher" ] |
| 24 } | 24 } |
| 25 | 25 |
| 26 if (is_android) { | 26 if (is_android) { |
| 27 deps += [ | 27 deps += [ |
| 28 ":mojo_shell_apk", | 28 ":mojo_shell_apk", |
| 29 ":mojo_shell_tests_apk", |
| 29 ] | 30 ] |
| 30 } | 31 } |
| 31 } | 32 } |
| 32 | 33 |
| 33 group("tests") { | 34 group("tests") { |
| 34 testonly = true | 35 testonly = true |
| 35 deps = [ | 36 deps = [ |
| 36 ":external_application_unittests", | 37 ":external_application_unittests", |
| 37 ":mojo_shell_tests", | 38 ":mojo_shell_tests", |
| 38 "//shell/application_manager:mojo_application_manager_unittests", | 39 "//shell/application_manager:mojo_application_manager_unittests", |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 ] | 327 ] |
| 327 } | 328 } |
| 328 | 329 |
| 329 android_apk("mojo_shell_apk") { | 330 android_apk("mojo_shell_apk") { |
| 330 apk_name = "MojoShell" | 331 apk_name = "MojoShell" |
| 331 | 332 |
| 332 android_manifest = "android/apk/AndroidManifest.xml" | 333 android_manifest = "android/apk/AndroidManifest.xml" |
| 333 | 334 |
| 334 native_libs = [ "libmojo_shell.so" ] | 335 native_libs = [ "libmojo_shell.so" ] |
| 335 | 336 |
| 337 asset_location = mojo_shell_assets_dir |
| 336 | 338 |
| 337 deps = [ | 339 deps = [ |
| 338 ":copy_mojo_shell", | 340 ":copy_mojo_shell", |
| 339 ":copy_mojo_shell_assets", | 341 ":copy_mojo_shell_assets", |
| 340 ":java", | 342 ":java", |
| 341 ":resources", | 343 ":resources", |
| 342 "//base:base_java", | 344 "//base:base_java", |
| 343 "//services/native_viewport:native_viewport_java", | 345 "//services/native_viewport:native_viewport_java", |
| 344 ] | 346 ] |
| 345 } | 347 } |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 ] | 429 ] |
| 428 | 430 |
| 429 datadeps = [ | 431 datadeps = [ |
| 430 "//services/test_service:test_app", | 432 "//services/test_service:test_app", |
| 431 "//services/test_service:test_request_tracker_app", | 433 "//services/test_service:test_request_tracker_app", |
| 432 ] | 434 ] |
| 433 | 435 |
| 434 if (is_android) { | 436 if (is_android) { |
| 435 sources += [ "android/background_application_loader_unittest.cc" ] | 437 sources += [ "android/background_application_loader_unittest.cc" ] |
| 436 | 438 |
| 437 deps += [ | 439 deps += [ ":jni_headers" ] |
| 438 ":jni_headers", | 440 |
| 441 apk_deps = [ |
| 439 ":copy_mojo_shell_test_assets", | 442 ":copy_mojo_shell_test_assets", |
| 440 ":mojo_shell_tests_java", | 443 ":mojo_shell_tests_java", |
| 441 "//testing/android:native_test_native_code", | |
| 442 ] | 444 ] |
| 443 | 445 |
| 444 # TODO(qsr): asset_location = mojo_shell_assets_dir ? | 446 apk_asset_location = mojo_shell_test_assets_dir |
| 445 } | 447 } |
| 446 } | 448 } |
| 447 | 449 |
| 448 # GYP version: mojo/mojo.gyp:mojo_shell_test_support | 450 # GYP version: mojo/mojo.gyp:mojo_shell_test_support |
| 449 source_set("test_support") { | 451 source_set("test_support") { |
| 450 sources = [ | 452 sources = [ |
| 451 "shell_test_helper.cc", | 453 "shell_test_helper.cc", |
| 452 "shell_test_helper.h", | 454 "shell_test_helper.h", |
| 453 ] | 455 ] |
| 454 | 456 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 | 495 |
| 494 deps -= [ | 496 deps -= [ |
| 495 ":lib", | 497 ":lib", |
| 496 ":external_application_registrar_connection", | 498 ":external_application_registrar_connection", |
| 497 ":external_application_registrar_bindings", | 499 ":external_application_registrar_bindings", |
| 498 "//shell/domain_socket", | 500 "//shell/domain_socket", |
| 499 "//shell/domain_socket:tests", | 501 "//shell/domain_socket:tests", |
| 500 ] | 502 ] |
| 501 } | 503 } |
| 502 } | 504 } |
| OLD | NEW |