blob: ab86729038b664356d095fd750b0ddb545e4d4cb [file] [log] [blame]
James Robinson646469d2014-10-03 15:33:28 -07001# 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.
4
5import("//build/config/ui.gni")
Aaron Boodmanf9b1d792014-10-23 13:35:57 -07006import("//mojo/public/mojo.gni")
James Robinson646469d2014-10-03 15:33:28 -07007
Ben Goodger96d72852014-10-27 15:05:15 -07008# TODO(beng): this meta target should probably move to the root dir's BUILD.gn.
James Robinson646469d2014-10-03 15:33:28 -07009group("mojo") {
10 # Meta-target, don't link into production code.
11 testonly = true
12 declare_args() {
13 mojo_use_go = false
14 }
15 deps = [
16 ":tests",
yzshen5b7319a2014-11-14 14:22:08 -080017 "//benchmarks",
Ben Goodger96d72852014-10-27 15:05:15 -070018 "//examples",
James Robinson646469d2014-10-03 15:33:28 -070019 "//mojo/common",
James Robinson646469d2014-10-03 15:33:28 -070020 "//mojo/public",
21 "//mojo/services",
James Robinson646469d2014-10-03 15:33:28 -070022 "//mojo/tools/package_manager",
John Abd-El-Malek99a563e2014-10-29 16:30:52 -070023 "//services",
James Robinson646469d2014-10-03 15:33:28 -070024 ]
25
James Robinsona9763132014-10-06 11:18:13 -070026 if (is_android) {
James Robinson8bcf28e2014-12-03 17:39:48 -080027 deps += [ "//mojo/android" ]
James Robinsona9763132014-10-06 11:18:13 -070028 }
29
gauthamtf22f2472014-10-29 09:32:02 -070030 if (mojo_use_go) {
James Robinson8bcf28e2014-12-03 17:39:48 -080031 deps += [ "//mojo/go" ]
gauthamtf22f2472014-10-29 09:32:02 -070032 }
33
James Robinson646469d2014-10-03 15:33:28 -070034 if (is_linux) {
James Robinson8bcf28e2014-12-03 17:39:48 -080035 deps += [ "//mojo/python" ]
James Robinson646469d2014-10-03 15:33:28 -070036 }
37}
38
39group("tests") {
40 testonly = true
41 deps = [
42 "//mojo/application_manager:mojo_application_manager_unittests",
James Robinson646469d2014-10-03 15:33:28 -070043 "//mojo/common:mojo_common_unittests",
James Robinsone2ac7e82014-10-15 13:21:59 -070044 "//mojo/converters/surfaces/tests:mojo_surfaces_lib_unittests",
Hans Mullerc60368c2014-11-07 07:35:50 -080045 "//mojo/edk/js/test:js_unittests",
46 "//mojo/edk/js/test:js_integration_tests",
James Robinson646469d2014-10-03 15:33:28 -070047 "//mojo/edk/system:mojo_message_pipe_perftests",
48 "//mojo/edk/system:mojo_system_unittests",
Colin Blundell603f0942014-12-09 07:39:22 +010049 "//mojo/edk/test:mojo_public_application_unittests",
Colin Blundellfcf7dfa2014-12-11 07:41:26 +010050 "//mojo/edk/test:mojo_public_bindings_unittests",
51 "//mojo/edk/test:mojo_public_environment_unittests",
52 "//mojo/edk/test:mojo_public_system_perftests",
Benjamin Lerman0bcf40d2014-12-15 10:13:27 +010053 "//mojo/edk/test:mojo_public_system_unittests",
54 "//mojo/edk/test:mojo_public_utility_unittests",
yzshen05c827f2014-11-10 13:05:47 -080055 "//mojo/services/network:apptests",
Scott Violet1481bf72014-12-12 08:25:59 -080056 "//mojo/services/view_manager/public/cpp/tests:mojo_view_manager_lib_unittests",
James Robinson646469d2014-10-03 15:33:28 -070057 "//mojo/tools:message_generator",
Elliot Glaysher9fb185d2014-12-04 14:37:59 -080058 "//services/clipboard:apptests",
Hans Muller11fa7842014-11-10 10:59:40 -080059 "//services/js:js_services_unittests",
Hans Muller32084712014-12-02 07:55:43 -080060 "//services/js:js_apptests",
Scott Violet1481bf72014-12-12 08:25:59 -080061 "//services/view_manager:view_manager_service_apptests",
62 "//services/view_manager:view_manager_service_unittests",
63 "//services/window_manager:window_manager_unittests",
James Robinson646469d2014-10-03 15:33:28 -070064 ]
65
Benjamin Lermanf4583a82014-11-26 10:54:39 +010066 if (is_android) {
James Robinson8bcf28e2014-12-03 17:39:48 -080067 deps += [ "//mojo/edk/system:mojo_system_unittests_apk" ]
Benjamin Lermanf4583a82014-11-26 10:54:39 +010068 }
69
Zachary Andersona83affc2014-11-25 10:59:27 -080070 if (mojo_use_dart) {
James Robinson8bcf28e2014-12-03 17:39:48 -080071 deps += [ "//mojo/dart/embedder/test:dart_unittests" ]
Zachary Andersona83affc2014-11-25 10:59:27 -080072 }
James Robinson646469d2014-10-03 15:33:28 -070073}