Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: ui/views/BUILD.gn

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/ozone/run_all_unittests.cc ('k') | ui/views/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 import("//build/config/features.gni")
6 import("//build/config/ui.gni")
7
8 gypi_values = exec_script("//build/gypi_to_gn.py",
9 [ rebase_path("views.gyp") ],
10 "scope",
11 [ "views.gyp" ])
12
13 component("views") {
14 sources = gypi_values.views_sources
15
16 defines = [ "VIEWS_IMPLEMENTATION" ]
17
18 deps = [
19 "//base:i18n",
20 "//base/third_party/dynamic_annotations",
21 "//skia",
22 "//third_party/icu",
23 "//ui/accessibility",
24 "//ui/aura",
25 "//ui/native_theme",
26 "//ui/resources",
27 "//ui/strings",
28 "//ui/wm",
29 "//url",
30 ]
31
32 public_deps = [
33 "//base",
34 "//ui/base",
35 "//ui/compositor",
36 "//ui/events",
37 "//ui/events:events_base",
38 "//ui/events/platform",
39 "//ui/gfx",
40 "//ui/gfx/geometry",
41 ]
42
43 if (use_x11 && !is_chromeos) {
44 deps += [ "//ui/display/util" ]
45 }
46
47 if (is_win) {
48 sources += gypi_values.views_win_sources
49 cflags = [ "/wd4267" ] # TODO(jschuh): crbug.com/167187 fix size_t to int t runcations.
50 libs = [
51 "imm32.lib",
52 "oleacc.lib",
53 ]
54 ldflags = [ "/DELAYLOAD:user32.dll" ]
55 deps += [
56 "//third_party/iaccessible2",
57 "//third_party/wtl",
58 ]
59 }
60
61 if (use_ozone) {
62 deps += [ "//ui/ozone" ]
63 }
64 if (use_x11) {
65 configs += [
66 "//build/config/linux:x11",
67 "//build/config/linux:xrandr",
68 ]
69 deps += [
70 "//ui/events/platform/x11",
71 "//ui/gfx/x",
72 ]
73 }
74
75 if (use_aura) {
76 sources += gypi_values.views_aura_sources
77 }
78 }
79
80 if (false) {
81 static_library("test_support") {
82 testonly = true
83 sources = gypi_values.views_test_support_sources
84
85 public_deps = [
86 ":views",
87 ]
88 deps = [
89 "//base",
90 "//skia",
91 "//testing/gtest",
92 "//ui/aura",
93 "//ui/base",
94 "//ui/compositor",
95 "//ui/compositor:test_support",
96 "//ui/events",
97 "//ui/events:events_base",
98 "//ui/events:test_support",
99 "//ui/events/platform",
100 "//ui/gfx",
101 "//ui/gfx/geometry",
102 "//ui/wm",
103 ]
104
105 if (use_aura) {
106 sources += gypi_values.views_test_support_aura_sources
107 deps += [ "//ui/aura:test_support" ]
108 }
109 if (use_x11) {
110 deps += [ "//ui/gfx/x" ]
111 }
112 }
113
114 test("views_unittests") {
115 sources = gypi_values.views_unittests_sources
116
117 deps = [
118 ":test_support",
119 "//base",
120 "//base:i18n",
121 "//base/allocator",
122 "//base/test:test_support",
123 "//skia",
124 "//testing/gtest",
125 "//third_party/icu",
126 "//ui/accessibility",
127 "//ui/aura",
128 "//ui/base",
129 "//ui/base:test_support",
130 "//ui/compositor:test_support",
131 "//ui/events:test_support",
132 "//ui/events:events_base",
133 "//ui/events/platform",
134 "//ui/gfx",
135 "//ui/gfx/geometry",
136 "//ui/gl",
137 "//ui/resources",
138 "//ui/strings",
139 "//ui/wm",
140 "//url",
141 ]
142
143 if (is_chromeos) {
144 sources -= [ "ime/input_method_bridge_unittest.cc" ]
145 }
146
147 if (is_win) {
148 deps += [
149 "//third_party/iaccessible2",
150 "//third_party/wtl",
151 ]
152 libs = [
153 "imm32.lib",
154 "oleacc.lib",
155 "comctl32.lib",
156 ]
157
158 # TOOD(GYP)
159 #'msvs_settings': {
160 # 'VCManifestTool': {
161 # 'AdditionalManifestFiles': [
162 # '$(ProjectDir)\\test\\views_unittest.manifest',
163 # ],
164 # },
165 #},
166 }
167
168 if (use_x11) {
169 configs += [
170 "//build/config/linux:x11",
171 "//build/config/linux:xext",
172 ]
173 deps += [
174 "//ui/events/platform/x11",
175 "//ui/gfx/x",
176 ]
177 }
178
179 if (use_aura) {
180 sources += gypi_values.views_unittests_aura_sources
181 deps += [ "//ui/aura:test_support" ]
182 }
183 if (use_x11) {
184 deps += [
185 "//ui/events/platform/x11",
186 "//ui/gfx/x",
187 ]
188 }
189 }
190 } # if (false)
OLDNEW
« no previous file with comments | « ui/ozone/run_all_unittests.cc ('k') | ui/views/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698