Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(646)

Side by Side Diff: shell/BUILD.gn

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/window_manager/BUILD.gn ('k') | shell/application_manager/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 9
9 # 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
10 # inherently components. 11 # inherently components.
11 assert(!is_component_build) 12 assert(!is_component_build)
12 13
13 group("shell") { 14 group("shell") {
14 testonly = true 15 testonly = true
15 16
16 deps = [ 17 deps = [
17 ":mojo_shell", 18 ":mojo_shell",
18 ":tests", 19 ":tests",
19 ] 20 ]
20 21
21 if (!is_win) { 22 if (!is_win) {
22 deps += [ ":mojo_launcher" ] 23 deps += [ ":mojo_launcher" ]
23 } 24 }
24 25
25 if (is_android) { 26 if (is_android) {
26 deps += [ 27 deps += [
27 ":mojo_shell_apk", 28 ":mojo_shell_apk",
28 ":mojo_shell_tests_apk",
29 ] 29 ]
30 } 30 }
31 } 31 }
32 32
33 group("tests") { 33 group("tests") {
34 testonly = true 34 testonly = true
35 deps = [ 35 deps = [
36 ":external_application_unittests", 36 ":external_application_unittests",
37 ":mojo_shell_tests", 37 ":mojo_shell_tests",
38 "//shell/application_manager:mojo_application_manager_unittests", 38 "//shell/application_manager:mojo_application_manager_unittests",
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 ] 321 ]
322 } 322 }
323 323
324 android_apk("mojo_shell_apk") { 324 android_apk("mojo_shell_apk") {
325 apk_name = "MojoShell" 325 apk_name = "MojoShell"
326 326
327 android_manifest = "android/apk/AndroidManifest.xml" 327 android_manifest = "android/apk/AndroidManifest.xml"
328 328
329 native_libs = [ "libmojo_shell.so" ] 329 native_libs = [ "libmojo_shell.so" ]
330 330
331 asset_location = mojo_shell_assets_dir
332 331
333 deps = [ 332 deps = [
334 ":copy_mojo_shell", 333 ":copy_mojo_shell",
335 ":copy_mojo_shell_assets", 334 ":copy_mojo_shell_assets",
336 ":java", 335 ":java",
337 ":resources", 336 ":resources",
337 "//base:base_java",
338 "//services/native_viewport:native_viewport_java", 338 "//services/native_viewport:native_viewport_java",
339 ] 339 ]
340 } 340 }
341 341
342 android_library("mojo_shell_tests_java") { 342 android_library("mojo_shell_tests_java") {
343 java_files = 343 java_files =
344 [ "android/tests/src/org/chromium/mojo/shell/ShellTestBase.java" ] 344 [ "android/tests/src/org/chromium/mojo/shell/ShellTestBase.java" ]
345 345
346 deps = [ 346 deps = [
347 ":java", 347 ":java",
348 "//base:base_java", 348 "//base:base_java",
349 ] 349 ]
350 } 350 }
351
352 unittest_apk("mojo_shell_tests_apk") {
353 unittests_dep = ":mojo_shell_tests"
354
355 asset_location = mojo_shell_test_assets_dir
356
357 deps = [
358 unittests_dep,
359 ":copy_mojo_shell_test_assets",
360 ":mojo_shell_tests_java",
361 ]
362 }
363 } 351 }
364 352
365 mojom("app_child_process_bindings") { 353 mojom("app_child_process_bindings") {
366 sources = [ 354 sources = [
367 "app_child_process.mojom", 355 "app_child_process.mojom",
368 ] 356 ]
369 } 357 }
370 358
371 mojom("external_application_registrar_bindings") { 359 mojom("external_application_registrar_bindings") {
372 sources = [ 360 sources = [
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 datadeps = [ 424 datadeps = [
437 "//services/test_service:test_app", 425 "//services/test_service:test_app",
438 "//services/test_service:test_request_tracker_app", 426 "//services/test_service:test_request_tracker_app",
439 ] 427 ]
440 428
441 if (is_android) { 429 if (is_android) {
442 sources += [ "android/background_application_loader_unittest.cc" ] 430 sources += [ "android/background_application_loader_unittest.cc" ]
443 431
444 deps += [ 432 deps += [
445 ":jni_headers", 433 ":jni_headers",
434 ":copy_mojo_shell_test_assets",
435 ":mojo_shell_tests_java",
446 "//testing/android:native_test_native_code", 436 "//testing/android:native_test_native_code",
447 ] 437 ]
438
439 # TODO(qsr): asset_location = mojo_shell_assets_dir ?
jamesr 2015/01/22 00:59:28 qsr@ = there appears to be a deficiency in the tes
qsr 2015/01/22 12:26:04 Fixed by https://codereview.chromium.org/862293003
448 } 440 }
449 } 441 }
450 442
451 # GYP version: mojo/mojo.gyp:mojo_shell_test_support 443 # GYP version: mojo/mojo.gyp:mojo_shell_test_support
452 source_set("test_support") { 444 source_set("test_support") {
453 sources = [ 445 sources = [
454 "shell_test_helper.cc", 446 "shell_test_helper.cc",
455 "shell_test_helper.h", 447 "shell_test_helper.h",
456 ] 448 ]
457 449
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 488
497 deps -= [ 489 deps -= [
498 ":lib", 490 ":lib",
499 ":external_application_registrar_connection", 491 ":external_application_registrar_connection",
500 ":external_application_registrar_bindings", 492 ":external_application_registrar_bindings",
501 "//shell/domain_socket", 493 "//shell/domain_socket",
502 "//shell/domain_socket:tests", 494 "//shell/domain_socket:tests",
503 ] 495 ]
504 } 496 }
505 } 497 }
OLDNEW
« no previous file with comments | « services/window_manager/BUILD.gn ('k') | shell/application_manager/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698