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 | 8 |
9 # We don't support building in the component build since mojo apps are | 9 # We don't support building in the component build since mojo apps are |
10 # inherently components. | 10 # inherently components. |
(...skipping 17 matching lines...) Expand all Loading... |
28 ":mojo_shell_tests_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 ] | 39 ] |
39 } | 40 } |
40 | 41 |
41 if (is_android) { | 42 if (is_android) { |
42 import("//build/config/android/config.gni") | 43 import("//build/config/android/config.gni") |
43 import("//build/config/android/rules.gni") | 44 import("//build/config/android/rules.gni") |
44 } | 45 } |
45 | 46 |
46 if (!use_prebuilt_mojo_shell) { | 47 if (!use_prebuilt_mojo_shell) { |
47 executable("mojo_shell") { | 48 executable("mojo_shell") { |
(...skipping 16 matching lines...) Expand all Loading... |
64 "android/mojo_main.cc", | 65 "android/mojo_main.cc", |
65 "android/mojo_main.h", | 66 "android/mojo_main.h", |
66 ] | 67 ] |
67 | 68 |
68 # On android, the executable is also the native library used by the apk. | 69 # On android, the executable is also the native library used by the apk. |
69 # It means dynamic symbols must be preserved and exported. | 70 # It means dynamic symbols must be preserved and exported. |
70 ldflags = [ "-Wl,--export-dynamic" ] | 71 ldflags = [ "-Wl,--export-dynamic" ] |
71 | 72 |
72 deps += [ | 73 deps += [ |
73 ":jni_headers", | 74 ":jni_headers", |
74 "//mojo/application_manager:application_manager", | |
75 "//services/native_viewport:lib", | 75 "//services/native_viewport:lib", |
| 76 "//shell/application_manager", |
76 "//ui/gl", | 77 "//ui/gl", |
77 ] | 78 ] |
78 } | 79 } |
79 } | 80 } |
80 } # !use_prebuilt_mojo_shell | 81 } # !use_prebuilt_mojo_shell |
81 | 82 |
82 executable("mojo_launcher") { | 83 executable("mojo_launcher") { |
83 sources = [ | 84 sources = [ |
84 "launcher_main.cc", | 85 "launcher_main.cc", |
85 ] | 86 ] |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 | 172 |
172 deps = [ | 173 deps = [ |
173 ":app_child_process_bindings", | 174 ":app_child_process_bindings", |
174 ":external_application_registrar_bindings", | 175 ":external_application_registrar_bindings", |
175 ":init", | 176 ":init", |
176 ":in_process_dynamic_service_runner", | 177 ":in_process_dynamic_service_runner", |
177 "//base", | 178 "//base", |
178 "//base/third_party/dynamic_annotations", | 179 "//base/third_party/dynamic_annotations", |
179 "//base:base_static", | 180 "//base:base_static", |
180 "//mojo/application", | 181 "//mojo/application", |
181 "//mojo/application_manager", | |
182 "//mojo/common", | 182 "//mojo/common", |
183 "//mojo/common:tracing_impl", | 183 "//mojo/common:tracing_impl", |
184 "//mojo/edk/system", | 184 "//mojo/edk/system", |
185 "//mojo/public/cpp/bindings", | 185 "//mojo/public/cpp/bindings", |
186 "//mojo/public/interfaces/application", | 186 "//mojo/public/interfaces/application", |
187 "//mojo/services/network/public/interfaces", | 187 "//mojo/services/network/public/interfaces", |
| 188 "//shell/application_manager", |
188 "//shell/domain_socket", | 189 "//shell/domain_socket", |
189 "//services/tracing:bindings", | 190 "//services/tracing:bindings", |
190 "//url", | 191 "//url", |
191 ] | 192 ] |
192 | 193 |
193 if (is_win) { | 194 if (is_win) { |
194 deps -= [ "//shell/domain_socket" ] | 195 deps -= [ "//shell/domain_socket" ] |
195 } | 196 } |
196 | 197 |
197 if (is_android) { | 198 if (is_android) { |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 | 418 |
418 deps = [ | 419 deps = [ |
419 ":in_process_dynamic_service_runner", | 420 ":in_process_dynamic_service_runner", |
420 ":lib", | 421 ":lib", |
421 "//base", | 422 "//base", |
422 "//base:i18n", | 423 "//base:i18n", |
423 "//base/test:test_support", | 424 "//base/test:test_support", |
424 "//testing/gtest", | 425 "//testing/gtest", |
425 "//net:test_support", | 426 "//net:test_support", |
426 "//url", | 427 "//url", |
427 "//mojo/application_manager", | |
428 "//mojo/common", | 428 "//mojo/common", |
429 "//mojo/edk/system", | 429 "//mojo/edk/system", |
430 "//mojo/environment:chromium", | 430 "//mojo/environment:chromium", |
431 "//mojo/public/cpp/bindings", | 431 "//mojo/public/cpp/bindings", |
432 "//services/test_service:bindings", | 432 "//services/test_service:bindings", |
| 433 "//shell/application_manager", |
433 ] | 434 ] |
434 | 435 |
435 datadeps = [ | 436 datadeps = [ |
436 "//services/test_service:test_app", | 437 "//services/test_service:test_app", |
437 "//services/test_service:test_request_tracker_app", | 438 "//services/test_service:test_request_tracker_app", |
438 ] | 439 ] |
439 | 440 |
440 if (is_android) { | 441 if (is_android) { |
441 sources += [ "android/background_application_loader_unittest.cc" ] | 442 sources += [ "android/background_application_loader_unittest.cc" ] |
442 | 443 |
443 deps += [ | 444 deps += [ |
444 ":jni_headers", | 445 ":jni_headers", |
445 "//testing/android:native_test_native_code", | 446 "//testing/android:native_test_native_code", |
446 ] | 447 ] |
447 } | 448 } |
448 } | 449 } |
449 | 450 |
450 # GYP version: mojo/mojo.gyp:mojo_shell_test_support | 451 # GYP version: mojo/mojo.gyp:mojo_shell_test_support |
451 source_set("test_support") { | 452 source_set("test_support") { |
452 sources = [ | 453 sources = [ |
453 "shell_test_helper.cc", | 454 "shell_test_helper.cc", |
454 "shell_test_helper.h", | 455 "shell_test_helper.h", |
455 ] | 456 ] |
456 | 457 |
457 deps = [ | 458 deps = [ |
458 ":init", | 459 ":init", |
459 ":lib", | 460 ":lib", |
460 "//base", | 461 "//base", |
461 "//mojo/application_manager", | |
462 "//mojo/edk/system", | 462 "//mojo/edk/system", |
| 463 "//shell/application_manager", |
463 ] | 464 ] |
464 } | 465 } |
465 | 466 |
466 test("external_application_unittests") { | 467 test("external_application_unittests") { |
467 sources = [ | 468 sources = [ |
468 "incoming_connection_listener_unittest.cc", | 469 "incoming_connection_listener_unittest.cc", |
469 "external_application_listener_unittest.cc", | 470 "external_application_listener_unittest.cc", |
470 "external_application_test_main.cc", | 471 "external_application_test_main.cc", |
471 ] | 472 ] |
472 | 473 |
473 deps = [ | 474 deps = [ |
474 ":lib", | 475 ":lib", |
475 ":external_application_registrar_connection", | 476 ":external_application_registrar_connection", |
476 ":external_application_registrar_bindings", | 477 ":external_application_registrar_bindings", |
477 "//base", | 478 "//base", |
478 "//base/test:test_support", | 479 "//base/test:test_support", |
479 "//testing/gtest", | 480 "//testing/gtest", |
480 "//url", | 481 "//url", |
481 "//mojo/application", | 482 "//mojo/application", |
482 "//mojo/application_manager", | |
483 "//mojo/common", | 483 "//mojo/common", |
484 "//mojo/edk/system", | 484 "//mojo/edk/system", |
485 "//mojo/environment:chromium", | 485 "//mojo/environment:chromium", |
| 486 "//shell/application_manager", |
486 "//shell/domain_socket", | 487 "//shell/domain_socket", |
487 "//shell/domain_socket:tests", | 488 "//shell/domain_socket:tests", |
488 ] | 489 ] |
489 | 490 |
490 if (is_win) { | 491 if (is_win) { |
491 sources -= [ | 492 sources -= [ |
492 "incoming_connection_listener_unittest.cc", | 493 "incoming_connection_listener_unittest.cc", |
493 "external_application_listener_unittest.cc", | 494 "external_application_listener_unittest.cc", |
494 ] | 495 ] |
495 | 496 |
496 deps -= [ | 497 deps -= [ |
497 ":lib", | 498 ":lib", |
498 ":external_application_registrar_connection", | 499 ":external_application_registrar_connection", |
499 ":external_application_registrar_bindings", | 500 ":external_application_registrar_bindings", |
500 "//shell/domain_socket", | 501 "//shell/domain_socket", |
501 "//shell/domain_socket:tests", | 502 "//shell/domain_socket:tests", |
502 ] | 503 ] |
503 } | 504 } |
504 } | 505 } |
OLD | NEW |