gn: 'platform_impl' should be a group instead of component (since it has no code...
[chromium-blink-merge.git] / mojo / shell / BUILD.gn
blob2e599b6fb08f7e4ef0b5db7ca98aad3d6f4ccdc0
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_loader.h",
12     "application_manager.cc",
13     "application_manager.h",
14     "data_pipe_peek.cc",
15     "data_pipe_peek.h",
16     "fetcher.cc",
17     "fetcher.h",
18     "identity.cc",
19     "identity.h",
20     "local_fetcher.cc",
21     "local_fetcher.h",
22     "native_runner.h",
23     "network_fetcher.cc",
24     "network_fetcher.h",
25     "query_util.cc",
26     "query_util.h",
27     "shell_impl.cc",
28     "shell_impl.h",
29     "static_application_loader.cc",
30     "static_application_loader.h",
31     "switches.cc",
32     "switches.h",
33   ]
35   public_deps = [
36     "//base",
37     "//mojo/application/public/interfaces",
38     "//mojo/common",
39     "//third_party/mojo/src/mojo/public/cpp/bindings",
40     "//mojo/services/network/public/interfaces",
41     "//url",
42   ]
43   deps = [
44     "//base/third_party/dynamic_annotations",
45     "//crypto:crypto",
46     "//url",
47     "//third_party/mojo/src/mojo/edk/system",
48     "//mojo/environment:chromium",
49     "//mojo/util:filename_util",
50   ]
53 test("tests") {
54   output_name = "mojo_shell_unittests"
55   sources = [
56     "application_manager_unittest.cc",
57     "query_util_unittest.cc",
58   ]
60   deps = [
61     ":shell",
62     ":test_bindings",
63     "//base",
64     "//mojo/application/public/cpp",
65     "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
66     "//testing/gtest",
67     "//url",
68   ]
71 mojom("test_bindings") {
72   sources = [
73     "test.mojom",
74   ]