Enable gaia services for enterprise autotests.
[chromium-blink-merge.git] / mojo / BUILD.gn
blob286dcea0a0723d5558a6886b3483943fa2530794
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
3 # found in the LICENSE file.
5 import("//build/config/ui.gni")
7 group("mojo") {
8   # Meta-target, don't link into production code.
9   testonly = true
10   deps = [
11     ":tests",
12     "//mojo/apps/js:mojo_js",
13     "//mojo/common",
14     "//mojo/examples",
15     "//mojo/public",
16     "//mojo/services",
17     "//mojo/shell:mojo_shell",
18     "//mojo/tools/package_manager",
19   ]
21   if (is_linux) {
22     deps += [
23       "//mojo/python",
24     ]
25   }
28 group("tests") {
29   testonly = true
30   deps = [
31     "//mojo/application_manager:mojo_application_manager_unittests",
32     "//mojo/apps/js/test:mojo_apps_js_unittests",
33     "//mojo/common:mojo_common_unittests",
34     "//mojo/public/c/system/tests:perftests",
35     "//mojo/public/cpp/application/tests:mojo_public_application_unittests",
36     "//mojo/public/cpp/bindings/tests:mojo_public_bindings_unittests",
37     "//mojo/public/cpp/environment/tests:mojo_public_environment_unittests",
38     "//mojo/public/cpp/system/tests:mojo_public_system_unittests",
39     "//mojo/public/cpp/utility/tests:mojo_public_utility_unittests",
40     "//mojo/public/js/bindings/tests:mojo_js_unittests",
41     "//mojo/services/clipboard:mojo_clipboard_unittests",
42     "//mojo/services/public/cpp/surfaces/tests:mojo_surfaces_lib_unittests",
43     "//mojo/shell:mojo_shell_tests",
44     "//mojo/system:mojo_message_pipe_perftests",
45     "//mojo/system:mojo_system_unittests",
46     "//mojo/tools:message_generator",
47   ]
49   if (use_aura) {
50     deps += [
51       "//mojo/services/public/cpp/view_manager/tests:mojo_view_manager_lib_unittests",
52       "//mojo/services/view_manager:mojo_view_manager_unittests",
53       "//mojo/services/window_manager:mojo_core_window_manager_unittests",
54     ]
55   }
58 if (is_android) {
59   import("//build/config/android/rules.gni")
61   generate_jni("jni_headers") {
62     sources = [
63       "android/javatests/src/org/chromium/mojo/MojoTestCase.java",
64       "android/javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java",
65       "android/system/src/org/chromium/mojo/system/impl/CoreImpl.java",
66       "services/native_viewport/android/src/org/chromium/mojo/PlatformViewportAndroid.java",
67     ]
69     jni_package = "mojo"
70   }