Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / mojo / shell / BUILD.gn
blob1fafc5bcb36f5280739784360765b9e901d8342d
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     "capability_filter.cc",
17     "capability_filter.h",
18     "connect_to_application_params.cc",
19     "connect_to_application_params.h",
20     "content_handler_connection.cc",
21     "content_handler_connection.h",
22     "data_pipe_peek.cc",
23     "data_pipe_peek.h",
24     "fetcher.cc",
25     "fetcher.h",
26     "identity.cc",
27     "identity.h",
28     "local_fetcher.cc",
29     "local_fetcher.h",
30     "native_runner.h",
31     "network_fetcher.cc",
32     "network_fetcher.h",
33     "query_util.cc",
34     "query_util.h",
35     "static_application_loader.cc",
36     "static_application_loader.h",
37     "switches.cc",
38     "switches.h",
39     "update_fetcher.cc",
40     "update_fetcher.h",
41   ]
43   public_deps = [
44     "//base",
45     "//mojo/application/public/interfaces",
46     "//mojo/common",
47     "//third_party/mojo/src/mojo/public/cpp/bindings",
48     "//mojo/services/network/public/interfaces",
49     "//mojo/services/updater",
50     "//url",
51   ]
52   deps = [
53     "//base/third_party/dynamic_annotations",
54     "//crypto:crypto",
55     "//mojo/application/public/cpp:sources",
56     "//url",
57     "//third_party/mojo/src/mojo/edk/system",
58     "//mojo/environment:chromium",
59     "//mojo/util:filename_util",
60   ]
63 test("mojo_shell_unittests") {
64   sources = [
65     "application_manager_unittest.cc",
66     "capability_filter_unittest.cc",
67     "query_util_unittest.cc",
68   ]
70   deps = [
71     ":shell",
72     ":test_bindings",
73     "//base",
74     "//mojo/application/public/cpp",
75     "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
76     "//testing/gtest",
77     "//url",
78   ]
81 mojom("test_bindings") {
82   sources = [
83     "capability_filter_unittest.mojom",
84     "test.mojom",
85   ]