summaryrefslogtreecommitdiffstats
path: root/mojo/BUILD.gn
blob: c04030621a39ac0f670ae195747aff52dd8a8f84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/ui.gni")

group("mojo") {
  # Meta-target, don't link into production code.
  testonly = true
  deps = [
    ":tests",
    "//mojo/common",
    "//mojo/services",
    "//third_party/mojo/src/mojo/public",
  ]

  if (is_android) {
    deps += [ "//mojo/android" ]
  }

  if (!is_component_build) {
    deps += [ "//mojo/runner" ]
  }
}

group("tests") {
  testonly = true
  deps = [
    "//mojo/common:mojo_common_unittests",
    "//mojo/converters/surfaces/tests:mojo_surfaces_lib_unittests",
    "//third_party/mojo/src/mojo/edk/js/test:js_unittests",
    "//third_party/mojo/src/mojo/edk/system:mojo_message_pipe_perftests",
    "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
    "//third_party/mojo/src/mojo/edk/test:mojo_public_application_unittests",
    "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
    "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
    "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
    "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
    "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
  ]

  # TODO: get these working on android.
  if (!is_android && !is_component_build) {
    deps += [
      "//mojo/runner:apptests",
      "//mojo/runner:mojo_runner_unittests",
      "//mojo/shell:mojo_shell_unittests",
    ]
  }
}