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

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

Issue 2755563002: Move ui/gfx/codec/ into its own component. (Closed)
Patch Set: none Created 3 years, 9 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 | « services/image_decoder/image_decoder_impl.cc ('k') | ui/gfx/chromeos/codec/DEPS » ('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 import("//testing/test.gni") 6 import("//testing/test.gni")
7 import("//testing/libfuzzer/fuzzer_test.gni") 7 import("//testing/libfuzzer/fuzzer_test.gni")
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/config.gni") 10 import("//build/config/android/config.gni")
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 component("gfx") { 44 component("gfx") {
45 sources = [ 45 sources = [
46 "android/gfx_jni_registrar.cc", 46 "android/gfx_jni_registrar.cc",
47 "android/gfx_jni_registrar.h", 47 "android/gfx_jni_registrar.h",
48 "android/java_bitmap.cc", 48 "android/java_bitmap.cc",
49 "android/java_bitmap.h", 49 "android/java_bitmap.h",
50 "android/view_configuration.cc", 50 "android/view_configuration.cc",
51 "android/view_configuration.h", 51 "android/view_configuration.h",
52 "break_list.h", 52 "break_list.h",
53 "codec/jpeg_codec.cc",
54 "codec/jpeg_codec.h",
55 "codec/png_codec.cc",
56 "codec/png_codec.h",
57 "codec/skia_image_encoder_adapter.cc",
58 "codec/skia_image_encoder_adapter.h",
59 "color_analysis.cc", 53 "color_analysis.cc",
60 "color_analysis.h", 54 "color_analysis.h",
61 "color_palette.h", 55 "color_palette.h",
62 "color_space.cc", 56 "color_space.cc",
63 "color_space_win.cc", 57 "color_space_win.cc",
64 "color_space_win.h", 58 "color_space_win.h",
65 "color_transform.cc", 59 "color_transform.cc",
66 "color_transform.h", 60 "color_transform.h",
67 "color_utils.cc", 61 "color_utils.cc",
68 "color_utils.h", 62 "color_utils.h",
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 public_deps = [ 242 public_deps = [
249 ":color_space", 243 ":color_space",
250 ":geometry_skia", 244 ":geometry_skia",
251 ":memory_buffer_sources", 245 ":memory_buffer_sources",
252 ":native_widget_types", 246 ":native_widget_types",
253 ":selection_bound_sources", 247 ":selection_bound_sources",
254 "//base", 248 "//base",
255 "//skia", 249 "//skia",
256 "//third_party/icu", 250 "//third_party/icu",
257 "//ui/gfx/animation", 251 "//ui/gfx/animation",
252 "//ui/gfx/codec",
258 "//ui/gfx/geometry", 253 "//ui/gfx/geometry",
259 "//ui/gfx/range", 254 "//ui/gfx/range",
260 ] 255 ]
261 deps = [ 256 deps = [
262 ":gfx_export", 257 ":gfx_export",
263 "//base", 258 "//base",
264 "//base:base_static", 259 "//base:base_static",
265 "//base:i18n", 260 "//base:i18n",
266 "//base/third_party/dynamic_annotations", 261 "//base/third_party/dynamic_annotations",
267 "//skia", 262 "//skia",
268 "//third_party/libpng",
269 "//third_party/qcms", 263 "//third_party/qcms",
270 "//third_party/zlib", 264 "//third_party/zlib",
271 ] 265 ]
272 266
273 # Text rendering conditions (complicated so separated out). 267 # Text rendering conditions (complicated so separated out).
274 if (use_aura || is_mac) { 268 if (use_aura || is_mac) {
275 # Mac doesn't use RenderTextHarfBuzz by default yet. 269 # Mac doesn't use RenderTextHarfBuzz by default yet.
276 sources += [ 270 sources += [
277 "harfbuzz_font_skia.cc", 271 "harfbuzz_font_skia.cc",
278 "harfbuzz_font_skia.h", 272 "harfbuzz_font_skia.h",
(...skipping 19 matching lines...) Expand all
298 "platform_font_android.cc", 292 "platform_font_android.cc",
299 "text_utils_android.cc", 293 "text_utils_android.cc",
300 ] 294 ]
301 set_sources_assignment_filter([]) 295 set_sources_assignment_filter([])
302 sources += [ "platform_font_linux.cc" ] 296 sources += [ "platform_font_linux.cc" ]
303 set_sources_assignment_filter(sources_assignment_filter) 297 set_sources_assignment_filter(sources_assignment_filter)
304 } 298 }
305 299
306 # iOS. 300 # iOS.
307 if (is_ios) { 301 if (is_ios) {
308 sources -= [
309 "codec/jpeg_codec.cc",
310 "codec/jpeg_codec.h",
311 ]
312 set_sources_assignment_filter([]) 302 set_sources_assignment_filter([])
313 sources += [ "scoped_cg_context_save_gstate_mac.h" ] 303 sources += [ "scoped_cg_context_save_gstate_mac.h" ]
314 set_sources_assignment_filter(sources_assignment_filter) 304 set_sources_assignment_filter(sources_assignment_filter)
315 } else { 305 } else {
316 deps += [ 306 deps += [
317 "//cc/paint", 307 "//cc/paint",
318 "//third_party:jpeg",
319 "//third_party/harfbuzz-ng", 308 "//third_party/harfbuzz-ng",
320 ] 309 ]
321 } 310 }
322 311
323 # Android. 312 # Android.
324 if (is_android) { 313 if (is_android) {
325 if (use_aura) { 314 if (use_aura) {
326 sources -= [ "canvas_notimplemented.cc" ] 315 sources -= [ "canvas_notimplemented.cc" ]
327 sources += [ "font_fallback_android.cc" ] 316 sources += [ "font_fallback_android.cc" ]
328 } else { 317 } else {
(...skipping 22 matching lines...) Expand all
351 if (use_aura || (!is_ios && !is_android)) { 340 if (use_aura || (!is_ios && !is_android)) {
352 sources += [ 341 sources += [
353 "paint_vector_icon.cc", 342 "paint_vector_icon.cc",
354 "paint_vector_icon.h", 343 "paint_vector_icon.h",
355 "vector_icon_types.h", 344 "vector_icon_types.h",
356 ] 345 ]
357 } 346 }
358 347
359 # Windows. 348 # Windows.
360 if (is_win) { 349 if (is_win) {
361 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), w hich is
362 # uninteresting.
363
364 libs = [ 350 libs = [
365 "setupapi.lib", 351 "setupapi.lib",
366 "dwrite.lib", 352 "dwrite.lib",
367 ] 353 ]
368 } else { 354 } else {
369 sources -= [ 355 sources -= [
370 "gdi_util.cc", 356 "gdi_util.cc",
371 "gdi_util.h", 357 "gdi_util.h",
372 "icon_util.cc", 358 "icon_util.cc",
373 "icon_util.h", 359 "icon_util.h",
374 "sys_color_change_listener.cc", 360 "sys_color_change_listener.cc",
375 "sys_color_change_listener.h", 361 "sys_color_change_listener.h",
376 ] 362 ]
377 } 363 }
378 364
379 # Linux. 365 # Linux.
380 if (is_linux) { 366 if (is_linux) {
381 deps += [ "//build/linux:fontconfig" ] 367 deps += [ "//build/linux:fontconfig" ]
382 } 368 }
383 369
384 # Chrome OS
385 if (is_chromeos) {
386 # Robust JPEG decoding for the login screen.
387 sources += [
388 "chromeos/codec/jpeg_codec_robust_slow.cc",
389 "chromeos/codec/jpeg_codec_robust_slow.h",
390 ]
391 deps += [ "//third_party/libjpeg" ]
392 }
393
394 if (is_mac) { 370 if (is_mac) {
395 libs = [ 371 libs = [
396 "AppKit.framework", 372 "AppKit.framework",
397 "CoreFoundation.framework", 373 "CoreFoundation.framework",
398 "CoreGraphics.framework", 374 "CoreGraphics.framework",
399 "CoreText.framework", 375 "CoreText.framework",
400 "IOSurface.framework", 376 "IOSurface.framework",
401 ] 377 ]
402 } 378 }
403 379
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 687
712 if (is_android) { 688 if (is_android) {
713 deps += [ "//ui/android:ui_java" ] 689 deps += [ "//ui/android:ui_java" ]
714 } 690 }
715 691
716 if (!use_aura && !is_ios) { 692 if (!use_aura && !is_ios) {
717 sources -= [ "nine_image_painter_unittest.cc" ] 693 sources -= [ "nine_image_painter_unittest.cc" ]
718 } 694 }
719 695
720 if (is_chromeos) { 696 if (is_chromeos) {
721 sources += [ "chromeos/codec/jpeg_codec_robust_slow_unittest.cc" ] 697 sources += [ "codec/chromeos/jpeg_codec_robust_slow_unittest.cc" ]
722 } 698 }
723 699
724 if (is_win) { 700 if (is_win) {
725 sources += [ 701 sources += [
726 "font_fallback_win_unittest.cc", 702 "font_fallback_win_unittest.cc",
727 "icon_util_unittest.cc", 703 "icon_util_unittest.cc",
728 "icon_util_unittests.rc", 704 "icon_util_unittests.rc",
729 "path_win_unittest.cc", 705 "path_win_unittest.cc",
730 "platform_font_win_unittest.cc", 706 "platform_font_win_unittest.cc",
731 "win/text_analysis_source_unittest.cc", 707 "win/text_analysis_source_unittest.cc",
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 745
770 fuzzer_test("color_transform_fuzztest") { 746 fuzzer_test("color_transform_fuzztest") {
771 sources = [ 747 sources = [
772 "color_transform_fuzzer.cc", 748 "color_transform_fuzzer.cc",
773 ] 749 ]
774 deps = [ 750 deps = [
775 ":gfx", 751 ":gfx",
776 ] 752 ]
777 libfuzzer_options = [ "max_len=1024" ] 753 libfuzzer_options = [ "max_len=1024" ]
778 } 754 }
OLDNEW
« no previous file with comments | « services/image_decoder/image_decoder_impl.cc ('k') | ui/gfx/chromeos/codec/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698