summaryrefslogtreecommitdiffstats
path: root/mojo/application_manager/BUILD.gn
blob: f78808638cccb97313304484bdd01bb39d0e174d (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
# 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("//mojo/public/tools/bindings/mojom.gni")

# GYP version: mojo.gyp:mojo_application_manager
component("application_manager") {
  output_name = "mojo_application_manager"
  sources = [
    "application_loader.cc",
    "application_loader.h",
    "application_manager.cc",
    "application_manager.h",
    "application_manager_export.h",
    "background_shell_application_loader.cc",
    "background_shell_application_loader.h",
  ]

  defines = [
    "MOJO_APPLICATION_MANAGER_IMPLEMENTATION",
  ]

  public_deps = [
    "//base",
    "//mojo/common",
    "//mojo/public/interfaces/application:application",
    "//mojo/services/public/interfaces/network:network",
    "//url",
  ]
  deps = [
    "//base/third_party/dynamic_annotations",
    "//net",
    "//url",
    "//mojo/edk/system",
    "//mojo/environment:chromium",
    "//mojo/services/public/interfaces/content_handler:content_handler",
  ]
}

# GYP version: mojo.gyp:mojo_application_manager_unittests
test("mojo_application_manager_unittests") {
  sources = [
    "application_manager_unittest.cc",
    "background_shell_application_loader_unittest.cc",
  ]

  deps = [
    ":application_manager",
    ":test_bindings",
    "//base",
    "//mojo/application",
    "//mojo/common",
    "//mojo/edk/test:run_all_unittests",
    "//mojo/environment:chromium",
    "//mojo/public/cpp/bindings",
    "//testing/gtest",
    "//url",
  ]
}

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