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