Rename GetIconID to GetIconId
[chromium-blink-merge.git] / components / web_view / BUILD.gn
blobd18c2c2c3b9134c948ed9ad37ee6b31627f0f39b
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     "frame.cc",
17     "frame.h",
18     "frame_connection.cc",
19     "frame_connection.h",
20     "frame_devtools_agent.cc",
21     "frame_devtools_agent.h",
22     "frame_devtools_agent_delegate.h",
23     "frame_tree.cc",
24     "frame_tree.h",
25     "frame_tree_delegate.h",
26     "frame_user_data.h",
27     "pending_web_view_load.cc",
28     "pending_web_view_load.h",
29     "web_view_application_delegate.cc",
30     "web_view_application_delegate.h",
31     "web_view_impl.cc",
32     "web_view_impl.h",
33   ]
35   deps = [
36     ":switches",
37     "//base",
38     "//components/clipboard/public/interfaces",
39     "//components/devtools_service/public/cpp",
40     "//components/devtools_service/public/interfaces",
41     "//components/resource_provider/public/interfaces",
42     "//components/view_manager/public/cpp",
43     "//components/view_manager/public/interfaces",
44     "//mojo/application/public/cpp:sources",
45     "//mojo/application/public/interfaces",
46     "//mojo/common:common_base",
47     "//mojo/converters/geometry",
48     "//mojo/services/network/public/interfaces",
49     "//mojo/services/tracing/public/interfaces",
50     "//third_party/mojo/src/mojo/public/cpp/bindings",
51     "//url",
52   ]
54   public_deps = [
55     "//components/web_view/public/interfaces",
56   ]
58   if (is_linux && !is_android) {
59     deps += [ "//components/font_service/public/interfaces" ]
60   }
63 mojo_native_application("web_view") {
64   sources = [
65     "main.cc",
66   ]
68   deps = [
69     ":lib",
70     "//mojo/application/public/cpp",
71   ]
74 source_set("test_support") {
75   sources = [
76     "test_frame_tree_delegate.cc",
77     "test_frame_tree_delegate.h",
78   ]
79   deps = [
80     ":lib",
81     "//base",
82   ]
85 mojo_native_application("mandoline_frame_apptests") {
86   testonly = true
88   sources = [
89     "frame_apptest.cc",
90   ]
92   deps = [
93     ":lib",
94     ":test_support",
95     "//base",
96     "//base/test:test_config",
97     "//components/view_manager/public/cpp",
98     "//components/view_manager/public/interfaces",
99     "//components/web_view/public/interfaces",
100     "//mojo/application/public/cpp:sources",
101     "//mojo/application/public/cpp:test_support",
102     "//ui/mojo/geometry:interfaces",
103     "//ui/mojo/geometry:util",
104   ]
106   data_deps = [ "//components/view_manager" ]