Fixes for Android GN build input/outputs
[chromium-blink-merge.git] / mojo / shell / BUILD.gn
blob331af9a7a79e70851e3f4cefb400cb97e32f7c0c
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     "switches.cc",
30     "switches.h",
31   ]
33   public_deps = [
34     "//base",
35     "//mojo/application/public/interfaces",
36     "//mojo/common",
37     "//third_party/mojo/src/mojo/public/cpp/bindings",
38     "//mojo/services/network/public/interfaces",
39     "//url",
40   ]
41   deps = [
42     "//base/third_party/dynamic_annotations",
43     "//crypto:crypto",
44     "//url",
45     "//third_party/mojo/src/mojo/edk/system",
46     "//mojo/environment:chromium",
47     "//mojo/util:filename_util",
48   ]
51 test("tests") {
52   output_name = "mojo_shell_unittests"
53   sources = [
54     "application_manager_unittest.cc",
55     "query_util_unittest.cc",
56   ]
58   deps = [
59     ":shell",
60     ":test_bindings",
61     "//base",
62     "//mojo/application/public/cpp",
63     "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
64     "//testing/gtest",
65     "//url",
66   ]
69 mojom("test_bindings") {
70   sources = [
71     "test.mojom",
72   ]