Cherry-pick xslt linebreak fix
[chromium-blink-merge.git] / mojo / BUILD.gn
blob2bb0214fecd4eb1585489d46ecb23772f78077ee
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/common",
13     "//mojo/services",
14     "//third_party/mojo/src/mojo/public",
15   ]
17   if (is_android) {
18     deps += [ "//mojo/android" ]
19   }
21   if (!is_component_build) {
22     deps += [ "//mojo/runner" ]
23   }
26 # TODO(GYP): Delete this after we've converted everything to GN.
27 # The _run targets exist only for compatibility w/ GYP.
28 group("mojo_public_bindings_unittests_run") {
29   testonly = true
30   deps = [
31     "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
32   ]
35 # TODO(GYP): Delete this after we've converted everything to GN.
36 # The _run targets exist only for compatibility w/ GYP.
37 group("mojo_public_environment_unittests_run") {
38   testonly = true
39   deps = [
40     "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
41   ]
44 # TODO(GYP): Delete this after we've converted everything to GN.
45 # The _run targets exist only for compatibility w/ GYP.
46 group("mojo_public_system_unittests_run") {
47   testonly = true
48   deps = [
49     "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
50   ]
53 # TODO(GYP): Delete this after we've converted everything to GN.
54 # The _run targets exist only for compatibility w/ GYP.
55 group("mojo_public_utility_unittests_run") {
56   testonly = true
57   deps = [
58     "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
59   ]
62 group("tests") {
63   testonly = true
64   deps = [
65     "//ipc/mojo:ipc_mojo_unittests",
66     "//mojo/application/public/cpp/tests:mojo_public_application_unittests",
67     "//mojo/common:mojo_common_unittests",
68     "//mojo/converters/surfaces/tests:mojo_surfaces_lib_unittests",
69     "//third_party/mojo/src/mojo/edk/js/test:js_unittests",
70     "//third_party/mojo/src/mojo/edk/system:mojo_message_pipe_perftests",
71     "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
72     "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
73     "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
74     "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
75     "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
76     "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
77   ]
79   if (!is_component_build) {
80     deps += [
81       "//mojo/runner:apptests",
82       "//mojo/runner:mojo_runner_unittests",
83       "//mojo/services/network:apptests",
84       "//mojo/shell:mojo_shell_unittests",
85     ]
87     if (is_android) {
88       deps += [ "//mojo/runner:mojo_runner_apptests_apk" ]
89     }
90   }