Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / mojo / shell / BUILD.gn
blobd19134a97f3f90c866666dbe704705c24de63bbe
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("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
6 import("//testing/test.gni")
8 source_set("shell") {
9   output_name = "mojo_shell"
10   sources = [
11     "application_instance.cc",
12     "application_instance.h",
13     "application_loader.h",
14     "application_manager.cc",
15     "application_manager.h",
16     "content_handler_connection.cc",
17     "content_handler_connection.h",
18     "data_pipe_peek.cc",
19     "data_pipe_peek.h",
20     "fetcher.cc",
21     "fetcher.h",
22     "identity.cc",
23     "identity.h",
24     "local_fetcher.cc",
25     "local_fetcher.h",
26     "native_runner.h",
27     "network_fetcher.cc",
28     "network_fetcher.h",
29     "query_util.cc",
30     "query_util.h",
31     "static_application_loader.cc",
32     "static_application_loader.h",
33     "switches.cc",
34     "switches.h",
35     "update_fetcher.cc",
36     "update_fetcher.h",
37   ]
39   public_deps = [
40     "//base",
41     "//mojo/application/public/interfaces",
42     "//mojo/common",
43     "//third_party/mojo/src/mojo/public/cpp/bindings",
44     "//mojo/services/network/public/interfaces",
45     "//mojo/services/updater",
46     "//url",
47   ]
48   deps = [
49     "//base/third_party/dynamic_annotations",
50     "//crypto:crypto",
51     "//mojo/application/public/cpp:sources",
52     "//url",
53     "//third_party/mojo/src/mojo/edk/system",
54     "//mojo/environment:chromium",
55     "//mojo/util:filename_util",
56   ]
59 test("mojo_shell_unittests") {
60   sources = [
61     "application_manager_unittest.cc",
62     "capability_filter_unittest.cc",
63     "query_util_unittest.cc",
64   ]
66   deps = [
67     ":shell",
68     ":test_bindings",
69     "//base",
70     "//mojo/application/public/cpp",
71     "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
72     "//testing/gtest",
73     "//url",
74   ]
77 mojom("test_bindings") {
78   sources = [
79     "capability_filter_unittest.mojom",
80     "test.mojom",
81   ]