Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / web_view / BUILD.gn
blob8b56aef36edcb9cf5b4d36ab0366fee149bd19a7
1 # Copyright 2015 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("//mojo/public/mojo_application.gni")
7 source_set("switches") {
8   sources = [
9     "web_view_switches.cc",
10     "web_view_switches.h",
11   ]
14 source_set("lib") {
15   sources = [
16     "client_initiated_frame_connection.cc",
17     "client_initiated_frame_connection.h",
18     "frame.cc",
19     "frame.h",
20     "frame_connection.cc",
21     "frame_connection.h",
22     "frame_devtools_agent.cc",
23     "frame_devtools_agent.h",
24     "frame_devtools_agent_delegate.h",
25     "frame_tree.cc",
26     "frame_tree.h",
27     "frame_tree_delegate.cc",
28     "frame_tree_delegate.h",
29     "frame_user_data.h",
30     "frame_utils.cc",
31     "frame_utils.h",
32     "navigation_controller.cc",
33     "navigation_controller.h",
34     "navigation_entry.cc",
35     "navigation_entry.h",
36     "pending_web_view_load.cc",
37     "pending_web_view_load.h",
38     "reload_type.h",
39     "url_request_cloneable.cc",
40     "url_request_cloneable.h",
41     "web_view_application_delegate.cc",
42     "web_view_application_delegate.h",
43     "web_view_impl.cc",
44     "web_view_impl.h",
45   ]
47   deps = [
48     ":switches",
49     "//base",
50     "//components/clipboard/public/interfaces",
51     "//components/devtools_service/public/cpp",
52     "//components/devtools_service/public/interfaces",
53     "//components/mus/public/cpp",
54     "//components/mus/public/interfaces",
55     "//components/resource_provider/public/interfaces",
56     "//components/web_view/test_runner/public/interfaces",
57     "//mojo/application/public/cpp:sources",
58     "//mojo/application/public/interfaces",
59     "//mojo/common:common_base",
60     "//mojo/converters/geometry",
61     "//mojo/services/network/public/interfaces",
62     "//mojo/services/tracing/public/interfaces",
63     "//third_party/mojo/src/mojo/public/cpp/bindings",
64     "//url",
65   ]
67   public_deps = [
68     "//components/web_view/public/interfaces",
69   ]
71   if (is_linux && !is_android) {
72     deps += [ "//components/font_service/public/interfaces" ]
73   }
76 mojo_native_application("web_view") {
77   sources = [
78     "main.cc",
79   ]
81   deps = [
82     ":lib",
83     "//mojo/application/public/cpp",
84   ]
87 source_set("test_support") {
88   testonly = true
90   sources = [
91     "test_frame_tree_delegate.cc",
92     "test_frame_tree_delegate.h",
93   ]
94   deps = [
95     ":lib",
96     "//base",
97     "//testing/gtest",
98   ]
101 mojo_native_application("apptests") {
102   output_name = "web_view_apptests"
103   testonly = true
105   sources = [
106     "frame_apptest.cc",
107     "web_view_apptest.cc",
108   ]
110   deps = [
111     ":lib",
112     ":test_support",
113     "//base",
114     "//base/test:test_config",
115     "//components/mus/public/cpp",
116     "//components/mus/public/cpp/tests:test_support",
117     "//components/mus/public/interfaces",
118     "//components/web_view/public/cpp",
119     "//components/web_view/public/interfaces",
120     "//mojo/application/public/cpp:sources",
121     "//mojo/application/public/cpp:test_support",
122     "//mojo/util:filename_util",
123     "//ui/mojo/geometry:interfaces",
124     "//ui/mojo/geometry:util",
125     "//url:url",
126   ]
128   data_deps = [ "//components/mus" ]