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

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

Issue 854713003: More old files deletion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tryjobs? 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/events/x/events_x.cc ('k') | ui/gfx/break_list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 if (is_android) { 7 if (is_android) {
8 import("//build/config/android/config.gni") 8 import("//build/config/android/config.gni")
9 import("//build/config/android/rules.gni") 9 import("//build/config/android/rules.gni")
10 } 10 }
(...skipping 30 matching lines...) Expand all
41 "animation/linear_animation.cc", 41 "animation/linear_animation.cc",
42 "animation/linear_animation.h", 42 "animation/linear_animation.h",
43 "animation/multi_animation.cc", 43 "animation/multi_animation.cc",
44 "animation/multi_animation.h", 44 "animation/multi_animation.h",
45 "animation/slide_animation.cc", 45 "animation/slide_animation.cc",
46 "animation/slide_animation.h", 46 "animation/slide_animation.h",
47 "animation/throb_animation.cc", 47 "animation/throb_animation.cc",
48 "animation/throb_animation.h", 48 "animation/throb_animation.h",
49 "animation/tween.cc", 49 "animation/tween.cc",
50 "animation/tween.h", 50 "animation/tween.h",
51 "break_list.h",
52 "canvas.cc",
53 "canvas.h",
54 "canvas_notimplemented.cc",
55 "canvas_paint_mac.h",
56 "canvas_paint_mac.mm",
57 "canvas_paint_win.cc",
58 "canvas_paint_win.h",
59 "canvas_skia.cc",
60 "canvas_skia_paint.h",
61 "codec/jpeg_codec.cc", 51 "codec/jpeg_codec.cc",
62 "codec/jpeg_codec.h", 52 "codec/jpeg_codec.h",
63 "codec/png_codec.cc", 53 "codec/png_codec.cc",
64 "codec/png_codec.h", 54 "codec/png_codec.h",
65 "color_utils.cc",
66 "color_utils.h",
67 "display.cc", 55 "display.cc",
68 "display.h", 56 "display.h",
69 "display_change_notifier.cc", 57 "display_change_notifier.cc",
70 "display_change_notifier.h", 58 "display_change_notifier.h",
71 "display_observer.cc", 59 "display_observer.cc",
72 "display_observer.h", 60 "display_observer.h",
73 "font.cc",
74 "font.h",
75 "font_fallback.h",
76 "font_fallback_linux.cc",
77 "font_fallback_mac.cc",
78 "font_fallback_win.cc",
79 "font_fallback_win.h",
80 "font_list.cc",
81 "font_list.h",
82 "font_list_impl.cc",
83 "font_list_impl.h",
84 "font_render_params.cc",
85 "font_render_params.h",
86 "font_render_params_android.cc",
87 "font_render_params_linux.cc",
88 "font_render_params_mac.cc",
89 "font_render_params_win.cc",
90 "frame_time.h", 61 "frame_time.h",
91 "gdi_util.cc",
92 "gdi_util.h",
93 "gfx_paths.cc",
94 "gfx_paths.h",
95 "gpu_memory_buffer.cc", 62 "gpu_memory_buffer.cc",
96 "gpu_memory_buffer.h", 63 "gpu_memory_buffer.h",
97 "icon_util.cc",
98 "icon_util.h",
99 "image/canvas_image_source.cc",
100 "image/canvas_image_source.h",
101 "image/image.cc",
102 "image/image.h",
103 "image/image_family.cc",
104 "image/image_family.h",
105 "image/image_ios.mm",
106 "image/image_mac.mm",
107 "image/image_png_rep.cc",
108 "image/image_png_rep.h",
109 "image/image_skia.cc",
110 "image/image_skia.h",
111 "image/image_skia_operations.cc",
112 "image/image_skia_operations.h",
113 "image/image_skia_rep.cc",
114 "image/image_skia_rep.h",
115 "image/image_skia_source.h",
116 "image/image_skia_util_ios.h",
117 "image/image_skia_util_ios.mm",
118 "image/image_skia_util_mac.h",
119 "image/image_skia_util_mac.mm",
120 "image/image_util.cc",
121 "image/image_util.h",
122 "image/image_util_ios.mm",
123 "interpolated_transform.cc",
124 "interpolated_transform.h",
125 "linux_font_delegate.cc",
126 "linux_font_delegate.h",
127 "mac/coordinate_conversion.h",
128 "mac/coordinate_conversion.mm",
129 "mac/scoped_ns_disable_screen_updates.h",
130 "native_widget_types.h", 64 "native_widget_types.h",
131 "path.cc",
132 "path.h",
133 "path_aura.cc",
134 "path_win.cc",
135 "path_win.h",
136 "path_x11.cc",
137 "path_x11.h",
138 "platform_font.h",
139 "platform_font_android.cc",
140 "platform_font_ios.h",
141 "platform_font_ios.mm",
142 "platform_font_mac.h",
143 "platform_font_mac.mm",
144 "platform_font_win.cc",
145 "platform_font_win.h",
146 "range/range.cc",
147 "range/range.h",
148 "range/range_mac.mm",
149 "range/range_win.cc",
150 "scoped_canvas.h",
151 "scoped_cg_context_save_gstate_mac.h",
152 "scoped_ns_graphics_context_save_gstate_mac.h",
153 "scoped_ns_graphics_context_save_gstate_mac.mm",
154 "screen.cc",
155 "screen.h",
156 "screen_android.cc",
157 "screen_aura.cc",
158 "screen_ios.mm",
159 "screen_mac.mm",
160 "screen_win.cc",
161 "screen_win.h",
162 "scrollbar_size.cc",
163 "scrollbar_size.h",
164 "selection_model.cc",
165 "selection_model.h",
166 "sequential_id_generator.cc", 65 "sequential_id_generator.cc",
167 "sequential_id_generator.h", 66 "sequential_id_generator.h",
168 "shadow_value.cc",
169 "shadow_value.h",
170 "skbitmap_operations.cc",
171 "skbitmap_operations.h",
172 "skia_util.cc", 67 "skia_util.cc",
173 "skia_util.h", 68 "skia_util.h",
174 "switches.cc", 69 "switches.cc",
175 "switches.h", 70 "switches.h",
176 "sys_color_change_listener.cc",
177 "sys_color_change_listener.h",
178 "text_constants.h",
179 "text_elider.cc",
180 "text_elider.h",
181 "text_utils.cc",
182 "text_utils.h",
183 "text_utils_android.cc",
184 "text_utils_ios.mm",
185 "transform.cc", 71 "transform.cc",
186 "transform.h", 72 "transform.h",
187 "transform_util.cc", 73 "transform_util.cc",
188 "transform_util.h", 74 "transform_util.h",
189 "ui_gfx_exports.cc", 75 "ui_gfx_exports.cc",
190 "utf16_indexing.cc",
191 "utf16_indexing.h",
192 "vsync_provider.h", 76 "vsync_provider.h",
193 "win/direct_write.cc", 77 "win/direct_write.cc",
194 "win/direct_write.h", 78 "win/direct_write.h",
195 "win/dpi.cc",
196 "win/dpi.h",
197 "win/hwnd_util.cc", 79 "win/hwnd_util.cc",
198 "win/hwnd_util.h", 80 "win/hwnd_util.h",
199 "win/scoped_set_map_mode.h", 81 "win/scoped_set_map_mode.h",
200 "win/singleton_hwnd.cc", 82 "win/singleton_hwnd.cc",
201 "win/singleton_hwnd.h", 83 "win/singleton_hwnd.h",
202 "win/window_impl.cc", 84 "win/window_impl.cc",
203 "win/window_impl.h", 85 "win/window_impl.h",
204 ] 86 ]
205 87
206 defines = [ "GFX_IMPLEMENTATION" ] 88 defines = [ "GFX_IMPLEMENTATION" ]
207 89
208 deps = [ 90 deps = [
209 ":gfx_export", 91 ":gfx_export",
210 "//base:i18n", 92 "//base:i18n",
211 "//base:base_static", 93 "//base:base_static",
212 "//base/third_party/dynamic_annotations", 94 "//base/third_party/dynamic_annotations",
213 "//skia", 95 "//skia",
214 "//third_party/harfbuzz-ng", 96 "//third_party/harfbuzz-ng",
215 "//third_party/libpng", 97 "//third_party/libpng",
216 "//third_party/zlib", 98 "//third_party/zlib",
217 "//ui/gfx/geometry", 99 "//ui/gfx/geometry",
218 ] 100 ]
219 public_deps = [ 101 public_deps = [
220 "//base", 102 "//base",
221 "//skia", 103 "//skia",
222 "//third_party/icu", 104 "//third_party/icu",
223 ] 105 ]
224 106
225 # Text rendering conditions (complicated so separated out).
226 if (is_android || is_ios) {
227 # We don't support RenderText on these platforms.
228 } else {
229 # These text rendering files are supported everywhere text rendering is.
230 sources += [
231 "render_text.cc",
232 "render_text.h",
233 "render_text_harfbuzz.cc",
234 "render_text_harfbuzz.h",
235 "text_utils_skia.cc",
236 ]
237
238 # These are the "native" rendering routines, only one should apply.
239 if (is_win) {
240 sources += [ "render_text_win.cc" ]
241 } else if (is_mac) {
242 sources += [ "render_text_mac.cc" ]
243 } else if (use_pango) {
244 sources += [ "render_text_pango.cc" ]
245 }
246 }
247
248 # iOS. 107 # iOS.
249 if (is_ios) { 108 if (is_ios) {
250 sources -= [ 109 sources -= [
251 "codec/jpeg_codec.cc", 110 "codec/jpeg_codec.cc",
252 "codec/jpeg_codec.h", 111 "codec/jpeg_codec.h",
253 ] 112 ]
254 } else { 113 } else {
255 deps += [ "//third_party:jpeg" ] 114 deps += [ "//third_party:jpeg" ]
256 } 115 }
257 116
258 # Android. 117 # Android.
259 if (is_android) { 118 if (is_android) {
260 sources -= [ 119 sources -= [
261 "animation/throb_animation.cc", 120 "animation/throb_animation.cc",
262 "canvas_skia.cc",
263 "display_observer.cc", 121 "display_observer.cc",
264 "selection_model.cc",
265 ] 122 ]
266 123
267 if (use_aura) {
268 sources -= [ "screen_android.cc" ]
269 } else {
270 sources -= [ "path.cc" ]
271 }
272
273 # TODO(GYP) re-enable when base_java exists. 124 # TODO(GYP) re-enable when base_java exists.
274 #if (!is_android_webview_build) { 125 #if (!is_android_webview_build) {
275 # deps += [ "//base:base_java" ] 126 # deps += [ "//base:base_java" ]
276 #} 127 #}
277 128
278 # TODO(jdduke): Revisit optimization after gauging benefit, crbug/419051. 129 # TODO(jdduke): Revisit optimization after gauging benefit, crbug/419051.
279 if (!is_debug) { 130 if (!is_debug) {
280 configs -= [ "//build/config/compiler:optimize" ] 131 configs -= [ "//build/config/compiler:optimize" ]
281 configs += [ "//build/config/compiler:optimize_max" ] 132 configs += [ "//build/config/compiler:optimize_max" ]
282 } 133 }
283 134
284 deps += [ ":gfx_jni_headers" ] 135 deps += [ ":gfx_jni_headers" ]
285 libs = [ 136 libs = [
286 "android", 137 "android",
287 "jnigraphics", 138 "jnigraphics",
288 ] 139 ]
289 } else {
290 sources -= [ "canvas_notimplemented.cc" ]
291 } 140 }
292 141
293 # Windows. 142 # Windows.
294 if (is_win) { 143 if (is_win) {
295 cflags = [ 144 cflags = [
296 "/wd4267", # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int. 145 "/wd4267", # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int.
297 "/wd4324", # Structure was padded due to __declspec(align()), which is 146 "/wd4324", # Structure was padded due to __declspec(align()), which is
298 # uninteresting. 147 # uninteresting.
299 ] 148 ]
300 } else {
301 sources -= [
302 "gdi_util.cc",
303 "gdi_util.h",
304 "icon_util.cc",
305 "icon_util.h",
306 ]
307 } 149 }
308 150
309 # Linux. 151 # Linux.
310 if (is_linux) { 152 if (is_linux) {
311 configs += [ "//build/config/linux:fontconfig" ] 153 configs += [ "//build/config/linux:fontconfig" ]
312 } 154 }
313 155
314 if (!use_aura) {
315 sources -= [
316 "path_aura.cc",
317 "screen_aura.cc",
318 ]
319 }
320
321 if (use_x11) { 156 if (use_x11) {
322 deps += [ "//ui/gfx/x" ] 157 deps += [ "//ui/gfx/x" ]
323 } else {
324 sources -= [ "path_x11.cc" ]
325 }
326
327 if (use_pango) {
328 sources += [
329 "pango_util.cc",
330 "pango_util.h",
331 "platform_font_pango.cc",
332 "platform_font_pango.h",
333 ]
334 configs += [ "//build/config/linux:pangocairo" ]
335 } 158 }
336 } 159 }
337 160
338 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry 161 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry
339 162
340 source_set("test_support") { 163 source_set("test_support") {
341 testonly = true 164 testonly = true
342 sources = [ 165 sources = [
343 "image/image_unittest_util.cc",
344 "image/image_unittest_util.h",
345 "image/image_unittest_util_ios.mm",
346 "image/image_unittest_util_mac.mm",
347 "test/fontconfig_util_linux.cc", 166 "test/fontconfig_util_linux.cc",
348 "test/fontconfig_util_linux.h", 167 "test/fontconfig_util_linux.h",
349 "test/gfx_util.cc", 168 "test/gfx_util.cc",
350 "test/gfx_util.h", 169 "test/gfx_util.h",
351 "test/ui_cocoa_test_helper.h", 170 "test/ui_cocoa_test_helper.h",
352 "test/ui_cocoa_test_helper.mm", 171 "test/ui_cocoa_test_helper.mm",
353 ] 172 ]
354 173
355 public_deps = [ 174 public_deps = [
356 ":gfx", 175 ":gfx",
(...skipping 14 matching lines...) Expand all
371 "test/ui_cocoa_test_helper.mm", 190 "test/ui_cocoa_test_helper.mm",
372 ] 191 ]
373 } 192 }
374 if (is_linux) { 193 if (is_linux) {
375 configs += [ "//build/config/linux:fontconfig" ] 194 configs += [ "//build/config/linux:fontconfig" ]
376 } 195 }
377 } 196 }
378 197
379 test("gfx_unittests") { 198 test("gfx_unittests") {
380 sources = [ 199 sources = [
381 "font_unittest.cc",
382 "image/image_skia_unittest.cc",
383 "image/image_unittest.cc",
384 "screen_unittest.cc",
385 "test/run_all_unittests.cc", 200 "test/run_all_unittests.cc",
386 "text_elider_unittest.cc",
387 "text_utils_unittest.cc",
388 ] 201 ]
389 202
390 if (!is_ios) { 203 if (!is_ios) {
391 sources += [ 204 sources += [
392 "animation/animation_container_unittest.cc", 205 "animation/animation_container_unittest.cc",
393 "animation/animation_unittest.cc", 206 "animation/animation_unittest.cc",
394 "animation/multi_animation_unittest.cc", 207 "animation/multi_animation_unittest.cc",
395 "animation/slide_animation_unittest.cc", 208 "animation/slide_animation_unittest.cc",
396 "animation/tween_unittest.cc", 209 "animation/tween_unittest.cc",
397 "break_list_unittest.cc",
398 "canvas_unittest.cc",
399 "canvas_unittest_mac.mm",
400 "codec/jpeg_codec_unittest.cc", 210 "codec/jpeg_codec_unittest.cc",
401 "codec/png_codec_unittest.cc", 211 "codec/png_codec_unittest.cc",
402 "color_utils_unittest.cc",
403 "display_change_notifier_unittest.cc", 212 "display_change_notifier_unittest.cc",
404 "display_unittest.cc", 213 "display_unittest.cc",
405 "font_list_unittest.cc",
406 "geometry/box_unittest.cc", 214 "geometry/box_unittest.cc",
407 "geometry/cubic_bezier_unittest.cc", 215 "geometry/cubic_bezier_unittest.cc",
408 "geometry/insets_unittest.cc", 216 "geometry/insets_unittest.cc",
409 "geometry/matrix3_unittest.cc", 217 "geometry/matrix3_unittest.cc",
410 "geometry/point_unittest.cc", 218 "geometry/point_unittest.cc",
411 "geometry/point3_unittest.cc", 219 "geometry/point3_unittest.cc",
412 "geometry/quad_unittest.cc", 220 "geometry/quad_unittest.cc",
413 "geometry/r_tree_unittest.cc", 221 "geometry/r_tree_unittest.cc",
414 "geometry/rect_unittest.cc", 222 "geometry/rect_unittest.cc",
415 "geometry/safe_integer_conversions_unittest.cc", 223 "geometry/safe_integer_conversions_unittest.cc",
416 "geometry/scroll_offset_unittest.cc", 224 "geometry/scroll_offset_unittest.cc",
417 "geometry/size_unittest.cc", 225 "geometry/size_unittest.cc",
418 "geometry/vector2d_unittest.cc", 226 "geometry/vector2d_unittest.cc",
419 "geometry/vector3d_unittest.cc", 227 "geometry/vector3d_unittest.cc",
420 "mac/coordinate_conversion_unittest.mm",
421 "platform_font_mac_unittest.mm",
422 "range/range_mac_unittest.mm",
423 "range/range_unittest.cc",
424 "range/range_win_unittest.cc",
425 "render_text_unittest.cc",
426 "sequential_id_generator_unittest.cc", 228 "sequential_id_generator_unittest.cc",
427 "shadow_value_unittest.cc", 229 "shadow_value_unittest.cc",
428 "skbitmap_operations_unittest.cc",
429 "skrect_conversion_unittest.cc", 230 "skrect_conversion_unittest.cc",
430 "transform_util_unittest.cc", 231 "transform_util_unittest.cc",
431 "utf16_indexing_unittest.cc",
432 ] 232 ]
433 } 233 }
434 234
435 deps = [ 235 deps = [
436 ":gfx", 236 ":gfx",
437 ":test_support", 237 ":test_support",
438 "//base", 238 "//base",
439 "//base/test:test_support", 239 "//base/test:test_support",
440 "//skia", 240 "//skia",
441 "//third_party/icu:icuuc", 241 "//third_party/icu:icuuc",
442 "//third_party/libpng", 242 "//third_party/libpng",
443 "//third_party/zlib", 243 "//third_party/zlib",
444 "//testing/gtest", 244 "//testing/gtest",
445 "//ui/base", 245 "//ui/base",
446 "//ui/gfx/geometry", 246 "//ui/gfx/geometry",
447 "//ui/resources:ui_test_pak",
448 ] 247 ]
449 248
450 if (use_pango) {
451 sources += [
452 "font_render_params_linux_unittest.cc",
453 "platform_font_pango_unittest.cc",
454 ]
455 configs += [
456 "//build/config/linux:pangocairo",
457 "//build/config/linux:pangoft2",
458 ]
459 }
460
461 if (!is_mac && !is_ios) { 249 if (!is_mac && !is_ios) {
462 sources += [ 250 sources += [ "transform_unittest.cc" ]
463 "transform_unittest.cc",
464 "interpolated_transform_unittest.cc",
465 ]
466 } 251 }
467 252
468 if (is_android) { 253 if (is_android) {
469 sources -= [ 254 sources -= [
470 # Do not run display_change_notifier_unittest.cc on Android because it 255 # Do not run display_change_notifier_unittest.cc on Android because it
471 # does not compile display_observer.cc 256 # does not compile display_observer.cc
472 "display_change_notifier_unittest.cc", 257 "display_change_notifier_unittest.cc",
473 ] 258 ]
474 259
475 deps += [ 260 deps += [
476 #'../../testing/android/native_test.gyp:native_test_native_code', TODO(GYP ) 261 #'../../testing/android/native_test.gyp:native_test_native_code', TODO(GYP )
477 ] 262 ]
478 } 263 }
479 264
480 if (is_android || is_ios) {
481 sources -= [ "render_text_unittest.cc" ]
482 }
483
484 if (use_aura) {
485 sources -= [ "screen_unittest.cc" ]
486 }
487
488 if (is_win) { 265 if (is_win) {
489 sources += [ 266 sources += [ "font_fallback_win_unittest.cc" ]
490 "font_fallback_win_unittest.cc",
491 "icon_util_unittest.cc",
492 "icon_util_unittests.rc",
493 "platform_font_win_unittest.cc",
494 ]
495 267
496 ldflags = [ 268 ldflags = [
497 "/DELAYLOAD:d2d1.dll", 269 "/DELAYLOAD:d2d1.dll",
498 "/DELAYLOAD:d3d10_1.dll", 270 "/DELAYLOAD:d3d10_1.dll",
499 ] 271 ]
500 272
501 libs = [ 273 libs = [
502 "d2d1.lib", 274 "d2d1.lib",
503 "d3d10_1.lib", 275 "d3d10_1.lib",
504 "imm32.lib", 276 "imm32.lib",
505 "oleacc.lib", 277 "oleacc.lib",
506 ] 278 ]
507 279
508 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 280 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
509 cflags = [ "/wd4267" ] 281 cflags = [ "/wd4267" ]
510 } 282 }
511 } 283 }
512 284
513 if (is_android) { 285 if (is_android) {
514 generate_jni("gfx_jni_headers") { 286 generate_jni("gfx_jni_headers") {
515 sources = [ 287 sources = [
516 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", 288 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java",
517 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", 289 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java",
518 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", 290 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java",
519 ] 291 ]
520 jni_package = "gfx" 292 jni_package = "gfx"
521 } 293 }
522 } 294 }
OLDNEW
« no previous file with comments | « ui/events/x/events_x.cc ('k') | ui/gfx/break_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698