OLD | NEW |
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 "../wm/public/scoped_tooltip_disabler.h", | 83 "../wm/public/scoped_tooltip_disabler.h", |
84 "../wm/public/tooltip_client.cc", | 84 "../wm/public/tooltip_client.cc", |
85 "../wm/public/tooltip_client.h", | 85 "../wm/public/tooltip_client.h", |
86 "../wm/public/transient_window_client.cc", | 86 "../wm/public/transient_window_client.cc", |
87 "../wm/public/transient_window_client.h", | 87 "../wm/public/transient_window_client.h", |
88 "../wm/public/window_move_client.cc", | 88 "../wm/public/window_move_client.cc", |
89 "../wm/public/window_move_client.h", | 89 "../wm/public/window_move_client.h", |
90 "../wm/public/window_types.h", | 90 "../wm/public/window_types.h", |
91 ] | 91 ] |
92 | 92 |
93 defines = [ | 93 defines = [ "AURA_IMPLEMENTATION" ] |
94 "AURA_IMPLEMENTATION", | |
95 ] | |
96 | 94 |
97 deps = [ | 95 deps = [ |
98 "//base", | 96 "//base", |
99 "//base:i18n", | 97 "//base:i18n", |
100 "//base/third_party/dynamic_annotations", | 98 "//base/third_party/dynamic_annotations", |
101 "//skia", | 99 "//skia", |
102 "//ui/base", | 100 "//ui/base", |
103 "//ui/compositor", | 101 "//ui/compositor", |
104 "//ui/events", | 102 "//ui/events", |
105 "//ui/events/platform", | 103 "//ui/events/platform", |
106 "//ui/gfx", | 104 "//ui/gfx", |
107 "//ui/gfx/geometry", | 105 "//ui/gfx/geometry", |
108 ] | 106 ] |
109 | 107 |
110 if (use_x11) { | 108 if (use_x11) { |
111 configs += [ | 109 configs += [ |
112 "//build/config/linux:x11", | 110 "//build/config/linux:x11", |
113 "//build/config/linux:xrandr", | 111 "//build/config/linux:xrandr", |
114 ] | 112 ] |
115 deps += [ | 113 deps += [ "//ui/events/platform/x11" ] |
116 "//ui/events/platform/x11", | |
117 ] | |
118 } else { | 114 } else { |
119 sources -= [ | 115 sources -= [ |
120 "window_tree_host_x11.cc", | 116 "window_tree_host_x11.cc", |
121 "window_tree_host_x11.h", | 117 "window_tree_host_x11.h", |
122 ] | 118 ] |
123 } | 119 } |
124 | 120 |
125 if (is_win) { | 121 if (is_win) { |
126 sources -= [ | 122 sources -= [ "input_state_lookup.cc" ] |
127 "input_state_lookup.cc", | |
128 ] | |
129 | 123 |
130 deps += [ | 124 deps += [ |
131 "//ui/metro_viewer", | 125 "//ui/metro_viewer", |
132 "//ipc", | 126 "//ipc", |
133 ] | 127 ] |
134 } | 128 } |
135 | 129 |
136 if (use_ozone) { | 130 if (use_ozone) { |
137 sources += [ | 131 sources += [ |
138 "window_tree_host_ozone.cc", | 132 "window_tree_host_ozone.cc", |
139 "window_tree_host_ozone.h", | 133 "window_tree_host_ozone.h", |
140 ] | 134 ] |
141 | 135 |
142 deps += [ | 136 deps += [ "//ui/ozone" ] |
143 "//ui/ozone", | |
144 ] | |
145 } | 137 } |
146 } | 138 } |
147 | 139 |
148 source_set("test_support") { | 140 source_set("test_support") { |
149 testonly = true | 141 testonly = true |
150 sources = [ | 142 sources = [ |
151 "test/aura_test_base.cc", | 143 "test/aura_test_base.cc", |
152 "test/aura_test_base.h", | 144 "test/aura_test_base.h", |
153 "test/aura_test_helper.cc", | 145 "test/aura_test_helper.cc", |
154 "test/aura_test_helper.h", | 146 "test/aura_test_helper.h", |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 "//ui/compositor:test_support", | 178 "//ui/compositor:test_support", |
187 "//ui/events", | 179 "//ui/events", |
188 "//ui/events:events_base", | 180 "//ui/events:events_base", |
189 "//ui/events:test_support", | 181 "//ui/events:test_support", |
190 "//ui/gfx", | 182 "//ui/gfx", |
191 "//ui/gfx/geometry", | 183 "//ui/gfx/geometry", |
192 "//ui/wm", | 184 "//ui/wm", |
193 ] | 185 ] |
194 | 186 |
195 if (is_win) { | 187 if (is_win) { |
196 cflags = [ | 188 cflags = [ "/wd4267" ] # TODO(jschuh): crbug.com/167187 fix size_t to int t
runcations. |
197 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
198 ] | |
199 } | 189 } |
200 | 190 |
201 if (use_aura) { | 191 if (use_aura) { |
202 if (is_win) { | 192 if (is_win) { |
203 sources += [ | 193 sources += [ "test/ui_controls_factory_aurawin.cc" ] |
204 "test/ui_controls_factory_aurawin.cc", | |
205 ] | |
206 } | 194 } |
207 | 195 |
208 if (use_x11) { | 196 if (use_x11) { |
209 sources += [ | 197 sources += [ |
210 "test/ui_controls_factory_aurax11.cc", | 198 "test/ui_controls_factory_aurax11.cc", |
211 "test/x11_event_sender.cc", | 199 "test/x11_event_sender.cc", |
212 "test/x11_event_sender.h", | 200 "test/x11_event_sender.h", |
213 ] | 201 ] |
214 } | 202 } |
215 } | 203 } |
(...skipping 17 matching lines...) Expand all Loading... |
233 "//ui/base", | 221 "//ui/base", |
234 "//ui/compositor", | 222 "//ui/compositor", |
235 "//ui/compositor:test_support", | 223 "//ui/compositor:test_support", |
236 "//ui/events", | 224 "//ui/events", |
237 "//ui/gfx", | 225 "//ui/gfx", |
238 "//ui/gfx/geometry", | 226 "//ui/gfx/geometry", |
239 "//ui/gl", | 227 "//ui/gl", |
240 ] | 228 ] |
241 | 229 |
242 if (use_x11) { | 230 if (use_x11) { |
243 deps += [ | 231 deps += [ "//ui/gfx/x" ] |
244 "//ui/gfx/x", | |
245 ] | |
246 } | 232 } |
247 } | 233 } |
248 | 234 |
249 executable("bench") { | 235 executable("bench") { |
250 output_name = "aura_bench" | 236 output_name = "aura_bench" |
251 testonly = true | 237 testonly = true |
252 | 238 |
253 sources = [ | 239 sources = [ |
254 "bench/bench_main.cc", | 240 "bench/bench_main.cc", |
255 ] | 241 ] |
256 | 242 |
257 deps = [ | 243 deps = [ |
258 ":test_support", | 244 ":test_support", |
259 "//base", | 245 "//base", |
260 "//base:i18n", | 246 "//base:i18n", |
261 "//cc", | 247 "//cc", |
262 "//gpu/command_buffer/client:gles2_interface", | 248 "//gpu/command_buffer/client:gles2_interface", |
263 "//skia", | 249 "//skia", |
264 "//third_party/icu", | 250 "//third_party/icu", |
265 "//ui/base", | 251 "//ui/base", |
266 "//ui/compositor", | 252 "//ui/compositor", |
267 "//ui/compositor:test_support", | 253 "//ui/compositor:test_support", |
268 "//ui/events", | 254 "//ui/events", |
269 "//ui/gfx", | 255 "//ui/gfx", |
270 "//ui/gfx/geometry", | 256 "//ui/gfx/geometry", |
271 "//ui/gl", | 257 "//ui/gl", |
272 ] | 258 ] |
273 | 259 |
274 if (use_x11) { | 260 if (use_x11) { |
275 deps += [ | 261 deps += [ "//ui/gfx/x" ] |
276 "//ui/gfx/x", | |
277 ] | |
278 } | 262 } |
279 } | 263 } |
280 | 264 |
281 test("aura_unittests") { | 265 test("aura_unittests") { |
282 sources = [ | 266 sources = [ |
283 "gestures/gesture_recognizer_unittest.cc", | 267 "gestures/gesture_recognizer_unittest.cc", |
284 "test/run_all_unittests.cc", | 268 "test/run_all_unittests.cc", |
285 "window_event_dispatcher_unittest.cc", | 269 "window_event_dispatcher_unittest.cc", |
286 "window_targeter_unittest.cc", | 270 "window_targeter_unittest.cc", |
287 "window_unittest.cc", | 271 "window_unittest.cc", |
288 ] | 272 ] |
289 | 273 |
290 deps = [ | 274 deps = [ |
291 ":test_support", | 275 ":test_support", |
292 "//base/allocator", | 276 "//base/allocator", |
293 "//base/test:test_support", | 277 "//base/test:test_support", |
294 "//skia", | 278 "//skia", |
295 "//testing/gtest", | 279 "//testing/gtest", |
296 "//ui/base:test_support", | 280 "//ui/base:test_support", |
297 "//ui/compositor:test_support", | 281 "//ui/compositor:test_support", |
298 "//ui/events:test_support", | 282 "//ui/events:test_support", |
299 "//ui/events:gesture_detection", | 283 "//ui/events:gesture_detection", |
300 "//ui/gfx", | 284 "//ui/gfx", |
301 "//ui/gfx/geometry", | 285 "//ui/gfx/geometry", |
302 "//ui/gl", | 286 "//ui/gl", |
303 ] | 287 ] |
304 | 288 |
305 if (is_linux) { | 289 if (is_linux) { |
306 deps += [ | 290 deps += [ "//third_party/mesa" ] |
307 "//third_party/mesa", | |
308 ] | |
309 } | 291 } |
310 } | 292 } |
OLD | NEW |