Utilize TestContentClient in RenderViewTest as resources are being migrated to using...
[chromium-blink-merge.git] / mojo / BUILD.gn
blobc5b9683eb323acd2c05257946be70b3e88afa885
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   ]
20   if (is_linux) {
21     deps += [
22       "//mojo/python",
23     ]
24   }
27 group("tests") {
28   testonly = true
29   deps = [
30     "//mojo/application_manager:mojo_application_manager_unittests",
31     "//mojo/apps/js/test:mojo_apps_js_unittests",
32     "//mojo/common:mojo_common_unittests",
33     "//mojo/public/c/system/tests:perftests",
34     "//mojo/public/cpp/application/tests:mojo_public_application_unittests",
35     "//mojo/public/cpp/bindings/tests:mojo_public_bindings_unittests",
36     "//mojo/public/cpp/environment/tests:mojo_public_environment_unittests",
37     "//mojo/public/cpp/system/tests:mojo_public_system_unittests",
38     "//mojo/public/cpp/utility/tests:mojo_public_utility_unittests",
39     "//mojo/public/js/bindings/tests:mojo_js_unittests",
40     "//mojo/services/public/cpp/surfaces/tests:mojo_surfaces_lib_unittests",
41     "//mojo/shell:mojo_shell_tests",
42     "//mojo/system:mojo_message_pipe_perftests",
43     "//mojo/system:mojo_system_unittests",
44     "//mojo/tools:message_generator",
45   ]
47   if (use_aura) {
48     deps += [
49       "//mojo/services/public/cpp/view_manager/tests:mojo_view_manager_lib_unittests",
50       "//mojo/services/view_manager:mojo_view_manager_unittests",
51       "//mojo/services/window_manager:mojo_core_window_manager_unittests",
52     ]
53   }
56 if (is_android) {
57   import("//build/config/android/rules.gni")
59   generate_jni("jni_headers") {
60     sources = [
61       "android/javatests/src/org/chromium/mojo/MojoTestCase.java",
62       "android/javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java",
63       "android/system/src/org/chromium/mojo/system/impl/CoreImpl.java",
64       "services/native_viewport/android/src/org/chromium/mojo/PlatformViewportAndroid.java",
65     ]
67     jni_package = "mojo"
68   }