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 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 Loading... | |
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 Loading... | |
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 Loading... | |
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 Loading... | |
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 | 350 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), w hich is |
sky
2017/03/15 19:27:41
Is this needed in both files?
chrishtr
2017/03/15 19:52:17
Not sure. Removed, will re-add if it causes a comp
| |
362 # uninteresting. | 351 # uninteresting. |
363 | 352 |
364 libs = [ | 353 libs = [ |
365 "setupapi.lib", | 354 "setupapi.lib", |
366 "dwrite.lib", | 355 "dwrite.lib", |
367 ] | 356 ] |
368 } else { | 357 } else { |
369 sources -= [ | 358 sources -= [ |
370 "gdi_util.cc", | 359 "gdi_util.cc", |
371 "gdi_util.h", | 360 "gdi_util.h", |
372 "icon_util.cc", | 361 "icon_util.cc", |
373 "icon_util.h", | 362 "icon_util.h", |
374 "sys_color_change_listener.cc", | 363 "sys_color_change_listener.cc", |
375 "sys_color_change_listener.h", | 364 "sys_color_change_listener.h", |
376 ] | 365 ] |
377 } | 366 } |
378 | 367 |
379 # Linux. | 368 # Linux. |
380 if (is_linux) { | 369 if (is_linux) { |
381 deps += [ "//build/linux:fontconfig" ] | 370 deps += [ "//build/linux:fontconfig" ] |
382 } | 371 } |
383 | 372 |
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) { | 373 if (is_mac) { |
395 libs = [ | 374 libs = [ |
396 "AppKit.framework", | 375 "AppKit.framework", |
397 "CoreFoundation.framework", | 376 "CoreFoundation.framework", |
398 "CoreGraphics.framework", | 377 "CoreGraphics.framework", |
399 "CoreText.framework", | 378 "CoreText.framework", |
400 "IOSurface.framework", | 379 "IOSurface.framework", |
401 ] | 380 ] |
402 } | 381 } |
403 | 382 |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
769 | 748 |
770 fuzzer_test("color_transform_fuzztest") { | 749 fuzzer_test("color_transform_fuzztest") { |
771 sources = [ | 750 sources = [ |
772 "color_transform_fuzzer.cc", | 751 "color_transform_fuzzer.cc", |
773 ] | 752 ] |
774 deps = [ | 753 deps = [ |
775 ":gfx", | 754 ":gfx", |
776 ] | 755 ] |
777 libfuzzer_options = [ "max_len=1024" ] | 756 libfuzzer_options = [ "max_len=1024" ] |
778 } | 757 } |
OLD | NEW |