summaryrefslogtreecommitdiffstats
path: root/mojo/shell/BUILD.gn
blob: 15d9d9de25b3a11819f07281169c26195aa41f66 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# 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("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
import("//testing/test.gni")

source_set("shell") {
  output_name = "mojo_shell"
  sources = [
    "application_instance.cc",
    "application_instance.h",
    "application_loader.h",
    "application_manager.cc",
    "application_manager.h",
    "content_handler_connection.cc",
    "content_handler_connection.h",
    "data_pipe_peek.cc",
    "data_pipe_peek.h",
    "fetcher.cc",
    "fetcher.h",
    "identity.cc",
    "identity.h",
    "local_fetcher.cc",
    "local_fetcher.h",
    "native_runner.h",
    "network_fetcher.cc",
    "network_fetcher.h",
    "query_util.cc",
    "query_util.h",
    "static_application_loader.cc",
    "static_application_loader.h",
    "switches.cc",
    "switches.h",
    "update_fetcher.cc",
    "update_fetcher.h",
  ]

  public_deps = [
    "//base",
    "//mojo/application/public/interfaces",
    "//mojo/common",
    "//third_party/mojo/src/mojo/public/cpp/bindings",
    "//mojo/services/network/public/interfaces",
    "//mojo/services/updater",
    "//url",
  ]
  deps = [
    "//base/third_party/dynamic_annotations",
    "//crypto:crypto",
    "//mojo/application/public/cpp:sources",
    "//url",
    "//third_party/mojo/src/mojo/edk/system",
    "//mojo/environment:chromium",
    "//mojo/util:filename_util",
  ]
}

test("mojo_shell_unittests") {
  sources = [
    "application_manager_unittest.cc",
    "query_util_unittest.cc",
  ]

  deps = [
    ":shell",
    ":test_bindings",
    "//base",
    "//mojo/application/public/cpp",
    "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
    "//testing/gtest",
    "//url",
  ]
}

mojom("test_bindings") {
  sources = [
    "test.mojom",
  ]
}