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 | 6 |
7 group("mojo") { | 7 group("mojo") { |
8 # Meta-target, don't link into production code. | 8 # Meta-target, don't link into production code. |
9 testonly = true | 9 testonly = true |
10 deps = [ | 10 deps = [ |
11 ":tests", | 11 ":tests", |
| 12 "//mojo/apps/js:mojo_js", |
12 "//mojo/common", | 13 "//mojo/common", |
13 "//mojo/examples", | 14 "//mojo/examples", |
14 "//mojo/public", | 15 "//mojo/public", |
15 "//mojo/services", | 16 "//mojo/services", |
16 "//mojo/shell:mojo_shell", | 17 "//mojo/shell:mojo_shell", |
17 ] | 18 ] |
18 | 19 |
19 if (is_linux) { | 20 if (is_linux) { |
20 deps += [ | 21 deps += [ |
21 "//mojo/python", | 22 "//mojo/python", |
22 ] | 23 ] |
23 } | 24 } |
24 } | 25 } |
25 | 26 |
26 group("tests") { | 27 group("tests") { |
27 testonly = true | 28 testonly = true |
28 deps = [ | 29 deps = [ |
29 "//mojo/application_manager:mojo_application_manager_unittests", | 30 "//mojo/application_manager:mojo_application_manager_unittests", |
30 "//mojo/apps/js/test:mojo_apps_js_unittests", | 31 "//mojo/apps/js/test:mojo_apps_js_unittests", |
31 "//mojo/common:mojo_common_unittests", | 32 "//mojo/common:mojo_common_unittests", |
| 33 "//mojo/public/c/system/tests:perftests", |
32 "//mojo/public/cpp/application/tests:mojo_public_application_unittests", | 34 "//mojo/public/cpp/application/tests:mojo_public_application_unittests", |
33 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_unittests", | 35 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_unittests", |
34 "//mojo/public/cpp/environment/tests:mojo_public_environment_unittests", | 36 "//mojo/public/cpp/environment/tests:mojo_public_environment_unittests", |
35 "//mojo/public/cpp/system/tests:mojo_public_system_unittests", | 37 "//mojo/public/cpp/system/tests:mojo_public_system_unittests", |
36 "//mojo/public/cpp/utility/tests:mojo_public_utility_unittests", | 38 "//mojo/public/cpp/utility/tests:mojo_public_utility_unittests", |
37 "//mojo/public/js/bindings/tests:mojo_js_unittests", | 39 "//mojo/public/js/bindings/tests:mojo_js_unittests", |
38 "//mojo/services/public/cpp/surfaces/tests:mojo_surfaces_lib_unittests", | 40 "//mojo/services/public/cpp/surfaces/tests:mojo_surfaces_lib_unittests", |
39 "//mojo/shell:mojo_shell_tests", | 41 "//mojo/shell:mojo_shell_tests", |
40 "//mojo/system:mojo_message_pipe_perftests", | 42 "//mojo/system:mojo_message_pipe_perftests", |
41 "//mojo/system:mojo_system_unittests", | 43 "//mojo/system:mojo_system_unittests", |
| 44 "//mojo/tools:message_generator", |
42 ] | 45 ] |
43 | 46 |
44 if (use_aura) { | 47 if (use_aura) { |
45 deps += [ | 48 deps += [ |
46 "//mojo/services/public/cpp/view_manager/tests:mojo_view_manager_lib_unitt
ests", | 49 "//mojo/services/public/cpp/view_manager/tests:mojo_view_manager_lib_unitt
ests", |
47 "//mojo/services/view_manager:mojo_view_manager_unittests", | 50 "//mojo/services/view_manager:mojo_view_manager_unittests", |
48 "//mojo/services/window_manager:mojo_core_window_manager_unittests", | 51 "//mojo/services/window_manager:mojo_core_window_manager_unittests", |
49 ] | 52 ] |
50 } | 53 } |
51 } | 54 } |
52 | 55 |
53 if (is_android) { | 56 if (is_android) { |
54 import("//build/config/android/rules.gni") | 57 import("//build/config/android/rules.gni") |
55 | 58 |
56 generate_jni("jni_headers") { | 59 generate_jni("jni_headers") { |
57 sources = [ | 60 sources = [ |
58 "android/javatests/src/org/chromium/mojo/MojoTestCase.java", | 61 "android/javatests/src/org/chromium/mojo/MojoTestCase.java", |
59 "android/javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java"
, | 62 "android/javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java"
, |
60 "android/system/src/org/chromium/mojo/system/impl/CoreImpl.java", | 63 "android/system/src/org/chromium/mojo/system/impl/CoreImpl.java", |
61 "services/native_viewport/android/src/org/chromium/mojo/PlatformViewportAn
droid.java", | 64 "services/native_viewport/android/src/org/chromium/mojo/PlatformViewportAn
droid.java", |
62 ] | 65 ] |
63 | 66 |
64 jni_package = "mojo" | 67 jni_package = "mojo" |
65 } | 68 } |
66 } | 69 } |
OLD | NEW |