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

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

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