mac: Fix a bookmark bar unit test on OSX 10.10.
[chromium-blink-merge.git] / mojo / BUILD.gn
blob8f58fc1487c8c95c846c7d839f1bee3c29a42c0d
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   declare_args() {
11     mojo_use_go = false
12   }
13   deps = [
14     ":tests",
15     "//mojo/apps/js:mojo_js_content_handler",
16     "//mojo/apps/js:mojo_js_standalone",
17     "//mojo/common",
18     "//mojo/examples",
19     "//mojo/public",
20     "//mojo/services",
21     "//mojo/shell:mojo_shell",
22     "//mojo/tools/package_manager",
23   ]
25   if (is_android) {
26     deps += [
27       "//mojo/android",
28     ]
29   }
31   if (is_linux) {
32     deps += [
33       "//mojo/python",
34     ]
35     if (mojo_use_go) {
36       deps += [
37         "//mojo/go",
38       ]
39     }
40   }
43 group("tests") {
44   testonly = true
45   deps = [
46     "//mojo/application_manager:mojo_application_manager_unittests",
47     "//mojo/apps/js/test:mojo_apps_js_unittests",
48     "//mojo/bindings/js/tests:mojo_js_unittests",
49     "//mojo/common:mojo_common_unittests",
50     "//mojo/converters/surfaces/tests:mojo_surfaces_lib_unittests",
51     "//mojo/edk/system:mojo_message_pipe_perftests",
52     "//mojo/edk/system:mojo_system_unittests",
53     "//mojo/public/c/system/tests:perftests",
54     "//mojo/public/cpp/application/tests:mojo_public_application_unittests",
55     "//mojo/public/cpp/bindings/tests:mojo_public_bindings_unittests",
56     "//mojo/public/cpp/environment/tests:mojo_public_environment_unittests",
57     "//mojo/public/cpp/system/tests:mojo_public_system_unittests",
58     "//mojo/public/cpp/utility/tests:mojo_public_utility_unittests",
59     "//mojo/services/clipboard:mojo_clipboard_unittests",
60     "//mojo/shell:mojo_external_application_tests",
61     "//mojo/shell:mojo_shell_tests",
62     "//mojo/tools:message_generator",
63   ]
65   if (use_aura) {
66     deps += [
67       "//mojo/services/public/cpp/view_manager/tests:mojo_view_manager_lib_unittests",
68       "//mojo/services/view_manager:mojo_view_manager_unittests",
69       "//mojo/services/window_manager:mojo_core_window_manager_unittests",
70     ]
71   }
74 if (is_android) {
75   import("//build/config/android/rules.gni")
77   generate_jni("jni_headers") {
78     sources = [
79       "android/javatests/src/org/chromium/mojo/MojoTestCase.java",
80       "android/javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java",
81       "android/system/src/org/chromium/mojo/system/impl/CoreImpl.java",
82       "services/native_viewport/android/src/org/chromium/mojo/PlatformViewportAndroid.java",
83     ]
85     jni_package = "mojo"
86   }