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

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

Issue 773283006: Run gn format on all BUILD.gn files (gn version 306668) (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import ("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 6
7 component("aura") { 7 component("aura") {
8 sources = [ 8 sources = [
9 "client/aura_constants.cc", 9 "client/aura_constants.cc",
10 "client/aura_constants.h", 10 "client/aura_constants.h",
11 "client/capture_client.cc", 11 "client/capture_client.cc",
12 "client/capture_client.h", 12 "client/capture_client.h",
13 "client/capture_delegate.h", 13 "client/capture_delegate.h",
14 "client/cursor_client.cc", 14 "client/cursor_client.cc",
15 "client/cursor_client.h", 15 "client/cursor_client.h",
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 "../wm/public/scoped_tooltip_disabler.h", 81 "../wm/public/scoped_tooltip_disabler.h",
82 "../wm/public/tooltip_client.cc", 82 "../wm/public/tooltip_client.cc",
83 "../wm/public/tooltip_client.h", 83 "../wm/public/tooltip_client.h",
84 "../wm/public/transient_window_client.cc", 84 "../wm/public/transient_window_client.cc",
85 "../wm/public/transient_window_client.h", 85 "../wm/public/transient_window_client.h",
86 "../wm/public/window_move_client.cc", 86 "../wm/public/window_move_client.cc",
87 "../wm/public/window_move_client.h", 87 "../wm/public/window_move_client.h",
88 "../wm/public/window_types.h", 88 "../wm/public/window_types.h",
89 ] 89 ]
90 90
91 defines = [ 91 defines = [ "AURA_IMPLEMENTATION" ]
92 "AURA_IMPLEMENTATION",
93 ]
94 92
95 deps = [ 93 deps = [
96 "//base", 94 "//base",
97 "//base:i18n", 95 "//base:i18n",
98 "//base/third_party/dynamic_annotations", 96 "//base/third_party/dynamic_annotations",
99 "//skia", 97 "//skia",
100 "//ui/base", 98 "//ui/base",
101 "//ui/compositor", 99 "//ui/compositor",
102 "//ui/events", 100 "//ui/events",
103 "//ui/events/platform", 101 "//ui/events/platform",
104 "//ui/gfx", 102 "//ui/gfx",
105 "//ui/gfx/geometry", 103 "//ui/gfx/geometry",
106 ] 104 ]
107 105
108 if (use_x11) { 106 if (use_x11) {
109 configs += [ 107 configs += [
110 "//build/config/linux:x11", 108 "//build/config/linux:x11",
111 "//build/config/linux:xrandr", 109 "//build/config/linux:xrandr",
112 ] 110 ]
113 deps += [ 111 deps += [ "//ui/events/platform/x11" ]
114 "//ui/events/platform/x11",
115 ]
116 } 112 }
117 113
118 if (is_win) { 114 if (is_win) {
119 sources -= [ 115 sources -= [
120 "input_state_lookup.cc", 116 "input_state_lookup.cc",
121 "window_tree_host_x11.cc", 117 "window_tree_host_x11.cc",
122 ] 118 ]
123 deps += [ 119 deps += [ "//ui/platform_window/win" ]
124 "//ui/platform_window/win",
125 ]
126 } 120 }
127 121
128 if (use_ozone) { 122 if (use_ozone) {
129 sources += [ 123 sources += [
130 "window_tree_host_ozone.cc", 124 "window_tree_host_ozone.cc",
131 "window_tree_host_ozone.h", 125 "window_tree_host_ozone.h",
132 ] 126 ]
133
134 # TODO(GYP) enable when these targets exist. 127 # TODO(GYP) enable when these targets exist.
135 #deps += [ 128 #deps += [
136 # "//ui/events/ozone", 129 # "//ui/events/ozone",
137 # "//ui/ozone", 130 # "//ui/ozone",
138 #] 131 #]
139 } 132 }
140 } 133 }
141 134
142 if (false) { 135 if (false) {
136 source_set("test_support") {
137 testonly = true
138 sources = [
139 "test/aura_test_base.cc",
140 "test/aura_test_base.h",
141 "test/aura_test_helper.cc",
142 "test/aura_test_helper.h",
143 "test/aura_test_utils.cc",
144 "test/aura_test_utils.h",
145 "test/env_test_helper.h",
146 "test/event_generator_delegate_aura.cc",
147 "test/event_generator_delegate_aura.h",
148 "test/test_cursor_client.cc",
149 "test/test_cursor_client.h",
150 "test/test_focus_client.cc",
151 "test/test_focus_client.h",
152 "test/test_screen.cc",
153 "test/test_screen.h",
154 "test/test_window_tree_client.cc",
155 "test/test_window_tree_client.h",
156 "test/test_windows.cc",
157 "test/test_windows.h",
158 "test/test_window_delegate.cc",
159 "test/test_window_delegate.h",
160 "test/ui_controls_factory_aura.h",
161 "test/window_event_dispatcher_test_api.cc",
162 "test/window_event_dispatcher_test_api.h",
163 "test/window_test_api.cc",
164 "test/window_test_api.h",
165 ]
143 166
144 source_set("test_support") { 167 public_deps = [
145 testonly = true 168 ":aura",
146 sources = [ 169 ]
147 "test/aura_test_base.cc", 170 deps = [
148 "test/aura_test_base.h", 171 "//skia",
149 "test/aura_test_helper.cc", 172 "//testing/gtest",
150 "test/aura_test_helper.h", 173 "//ui/base:test_support",
151 "test/aura_test_utils.cc", 174 "//ui/compositor:test_support",
152 "test/aura_test_utils.h", 175 "//ui/events",
153 "test/env_test_helper.h", 176 "//ui/events:events_base",
154 "test/event_generator_delegate_aura.cc", 177 "//ui/events:test_support",
155 "test/event_generator_delegate_aura.h", 178 "//ui/gfx",
156 "test/test_cursor_client.cc", 179 "//ui/gfx/geometry",
157 "test/test_cursor_client.h", 180 "//ui/wm",
158 "test/test_focus_client.cc", 181 ]
159 "test/test_focus_client.h",
160 "test/test_screen.cc",
161 "test/test_screen.h",
162 "test/test_window_tree_client.cc",
163 "test/test_window_tree_client.h",
164 "test/test_windows.cc",
165 "test/test_windows.h",
166 "test/test_window_delegate.cc",
167 "test/test_window_delegate.h",
168 "test/ui_controls_factory_aura.h",
169 "test/window_event_dispatcher_test_api.cc",
170 "test/window_event_dispatcher_test_api.h",
171 "test/window_test_api.cc",
172 "test/window_test_api.h",
173 ]
174 182
175 public_deps = [ 183 if (is_win) {
176 ":aura", 184 cflags = [ "/wd4267" ] # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
177 ] 185 }
178 deps = [
179 "//skia",
180 "//testing/gtest",
181 "//ui/base:test_support",
182 "//ui/compositor:test_support",
183 "//ui/events",
184 "//ui/events:events_base",
185 "//ui/events:test_support",
186 "//ui/gfx",
187 "//ui/gfx/geometry",
188 "//ui/wm",
189 ]
190 186
191 if (is_win) { 187 if (use_aura) {
192 cflags = [ 188 if (is_win) {
193 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 189 sources += [ "test/ui_controls_factory_aurawin.cc" ]
194 ] 190 }
191
192 if (use_x11) {
193 sources += [ "test/ui_controls_factory_aurax11.cc" ]
194 }
195 }
195 } 196 }
196 197
197 if (use_aura) { 198 executable("demo") {
198 if (is_win) { 199 output_name = "aura_demo"
199 sources += [ 200 testonly = true
200 "test/ui_controls_factory_aurawin.cc", 201
201 ] 202 sources = [
202 } 203 "demo/demo_main.cc",
204 ]
205
206 deps = [
207 ":aura",
208 ":test_support",
209 "//base",
210 "//base:i18n",
211 "//skia",
212 "//third_party/icu",
213 "//ui/base",
214 "//ui/compositor",
215 "//ui/compositor:test_support",
216 "//ui/events",
217 "//ui/gfx",
218 "//ui/gfx/geometry",
219 "//ui/gl",
220 ]
203 221
204 if (use_x11) { 222 if (use_x11) {
205 sources += [ 223 deps += [ "//ui/gfx/x" ]
206 "test/ui_controls_factory_aurax11.cc",
207 ]
208 } 224 }
209 } 225 }
210 }
211 226
212 executable("demo") { 227 executable("bench") {
213 output_name = "aura_demo" 228 output_name = "aura_bench"
214 testonly = true 229 testonly = true
215 230
216 sources = [ 231 sources = [
217 "demo/demo_main.cc", 232 "bench/bench_main.cc",
218 ] 233 ]
219 234
220 deps = [ 235 deps = [
221 ":aura", 236 ":test_support",
222 ":test_support", 237 "//base",
223 "//base", 238 "//base:i18n",
224 "//base:i18n", 239 "//cc",
225 "//skia", 240 "//gpu/command_buffer/client:gles2_interface",
226 "//third_party/icu", 241 "//skia",
227 "//ui/base", 242 "//third_party/icu",
228 "//ui/compositor", 243 "//ui/base",
229 "//ui/compositor:test_support", 244 "//ui/compositor",
230 "//ui/events", 245 "//ui/compositor:test_support",
231 "//ui/gfx", 246 "//ui/events",
232 "//ui/gfx/geometry", 247 "//ui/gfx",
233 "//ui/gl", 248 "//ui/gfx/geometry",
234 ] 249 "//ui/gl",
250 ]
235 251
236 if (use_x11) { 252 if (use_x11) {
237 deps += [ 253 deps += [ "//ui/gfx/x" ]
238 "//ui/gfx/x", 254 }
255 }
256
257 test("aura_unittests") {
258 sources = [
259 "gestures/gesture_recognizer_unittest.cc",
260 "test/run_all_unittests.cc",
261 "window_event_dispatcher_unittest.cc",
262 "window_targeter_unittest.cc",
263 "window_unittest.cc",
239 ] 264 ]
265
266 deps = [
267 ":test_support",
268 "//base/allocator",
269 "//base/test:test_support",
270 "//skia",
271 "//testing/gtest",
272 "//ui/base:test_support",
273 "//ui/compositor:test_support",
274 "//ui/events:test_support",
275 "//ui/events:gesture_detection",
276 "//ui/gfx",
277 "//ui/gfx/geometry",
278 "//ui/gl",
279 ]
280
281 if (is_linux) {
282 deps += [ "//third_party/mesa" ]
283 }
240 } 284 }
241 }
242
243 executable("bench") {
244 output_name = "aura_bench"
245 testonly = true
246
247 sources = [
248 "bench/bench_main.cc",
249 ]
250
251 deps = [
252 ":test_support",
253 "//base",
254 "//base:i18n",
255 "//cc",
256 "//gpu/command_buffer/client:gles2_interface",
257 "//skia",
258 "//third_party/icu",
259 "//ui/base",
260 "//ui/compositor",
261 "//ui/compositor:test_support",
262 "//ui/events",
263 "//ui/gfx",
264 "//ui/gfx/geometry",
265 "//ui/gl",
266 ]
267
268 if (use_x11) {
269 deps += [
270 "//ui/gfx/x",
271 ]
272 }
273 }
274
275 test("aura_unittests") {
276 sources = [
277 "gestures/gesture_recognizer_unittest.cc",
278 "test/run_all_unittests.cc",
279 "window_event_dispatcher_unittest.cc",
280 "window_targeter_unittest.cc",
281 "window_unittest.cc",
282 ]
283
284 deps = [
285 ":test_support",
286 "//base/allocator",
287 "//base/test:test_support",
288 "//skia",
289 "//testing/gtest",
290 "//ui/base:test_support",
291 "//ui/compositor:test_support",
292 "//ui/events:test_support",
293 "//ui/events:gesture_detection",
294 "//ui/gfx",
295 "//ui/gfx/geometry",
296 "//ui/gl",
297 ]
298
299 if (is_linux) {
300 deps += [
301 "//third_party/mesa",
302 ]
303 }
304 }
305
306 } # if (false) 285 } # if (false)
OLDNEW
« benchmarks/startup/BUILD.gn ('K') | « ui/android/BUILD.gn ('k') | ui/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698