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

Side by Side Diff: BUILD.gn

Issue 2045293002: Add support for multiple frames in SkCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Disable DNG if Raw is disabled Created 4 years, 2 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 | « no previous file | cmake/CMakeLists.txt » ('j') | src/codec/SkGifCodec.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 Google Inc. 1 # Copyright 2016 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import("gn/shared_sources.gni") 6 import("gn/shared_sources.gni")
7 7
8 if (!defined(is_skia_standalone)) { 8 if (!defined(is_skia_standalone)) {
9 is_skia_standalone = false 9 is_skia_standalone = false
10 } 10 }
11 11
12 declare_args() { 12 declare_args() {
13 skia_use_angle = false 13 skia_use_angle = false
14 skia_use_expat = true 14 skia_use_expat = true
15 skia_use_fontconfig = is_linux 15 skia_use_fontconfig = is_linux
16 skia_use_freetype = is_android || is_fuchsia || is_linux 16 skia_use_freetype = is_android || is_fuchsia || is_linux
17 skia_use_gdi = false 17 skia_use_gdi = false
18 skia_use_giflib = !is_fuchsia
19 skia_use_libjpeg_turbo = true 18 skia_use_libjpeg_turbo = true
20 skia_use_libpng = true 19 skia_use_libpng = true
21 skia_use_libwebp = !is_fuchsia 20 skia_use_libwebp = !is_fuchsia
22 skia_use_mesa = false 21 skia_use_mesa = false
23 skia_use_sfntly = !is_fuchsia && !is_win # TODO: icu on Windows, re-enable th is. 22 skia_use_sfntly = !is_fuchsia && !is_win # TODO: icu on Windows, re-enable th is.
24 skia_use_vulkan = is_android && defined(ndk_api) && ndk_api >= 24 23 skia_use_vulkan = is_android && defined(ndk_api) && ndk_api >= 24
25 skia_use_zlib = true 24 skia_use_zlib = true
26 25
27 skia_enable_android_framework_defines = false 26 skia_enable_android_framework_defines = false
28 skia_enable_gpu = true 27 skia_enable_gpu = true
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 340
342 deps = [ 341 deps = [
343 "//third_party/freetype2", 342 "//third_party/freetype2",
344 ] 343 ]
345 sources = [ 344 sources = [
346 "src/ports/SkFontMgr_custom.cpp", 345 "src/ports/SkFontMgr_custom.cpp",
347 "src/ports/SkFontMgr_custom_empty_factory.cpp", 346 "src/ports/SkFontMgr_custom_empty_factory.cpp",
348 ] 347 ]
349 } 348 }
350 349
351 optional("gif") {
352 enabled = skia_use_giflib
353 public_defines = [ "SK_HAS_GIF_LIBRARY" ]
354
355 deps = [
356 "//third_party/giflib",
357 ]
358 sources = [
359 "src/codec/SkGifCodec.cpp",
360 ]
361 }
362
363 optional("gpu") { 350 optional("gpu") {
364 enabled = skia_enable_gpu 351 enabled = skia_enable_gpu
365 public_defines = [] 352 public_defines = []
366 353
367 sources = skia_gpu_sources + [ "src/gpu/gl/GrGLDefaultInterface_native.cpp" ] 354 sources = skia_gpu_sources + [ "src/gpu/gl/GrGLDefaultInterface_native.cpp" ]
368 355
369 # These paths need to be absolute to match the ones produced by shared_sources .gni. 356 # These paths need to be absolute to match the ones produced by shared_sources .gni.
370 sources -= get_path_info([ 357 sources -= get_path_info([
371 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", 358 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp",
372 "src/gpu/gl/GrGLDefaultInterface_none.cpp", 359 "src/gpu/gl/GrGLDefaultInterface_none.cpp",
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 deps = [ 473 deps = [
487 ":arm64", 474 ":arm64",
488 ":armv7", 475 ":armv7",
489 ":avx", 476 ":avx",
490 ":crc32", 477 ":crc32",
491 ":dsp", 478 ":dsp",
492 ":fontmgr_android", 479 ":fontmgr_android",
493 ":fontmgr_custom", 480 ":fontmgr_custom",
494 ":fontmgr_fontconfig", 481 ":fontmgr_fontconfig",
495 ":fontmgr_fuchsia", 482 ":fontmgr_fuchsia",
496 ":gif",
497 ":gpu", 483 ":gpu",
498 ":hsw", 484 ":hsw",
499 ":jpeg", 485 ":jpeg",
500 ":none", 486 ":none",
501 ":pdf", 487 ":pdf",
502 ":png", 488 ":png",
503 ":sse2", 489 ":sse2",
504 ":sse41", 490 ":sse41",
505 ":sse42", 491 ":sse42",
506 ":ssse3", 492 ":ssse3",
507 ":typeface_freetype", 493 ":typeface_freetype",
508 ":webp", 494 ":webp",
509 ":xml", 495 ":xml",
510 ] 496 ]
511 497
512 sources = [] 498 sources = []
513 sources += skia_core_sources 499 sources += skia_core_sources
514 sources += skia_effects_sources 500 sources += skia_effects_sources
515 sources += skia_sksl_sources 501 sources += skia_sksl_sources
516 sources += skia_utils_sources 502 sources += skia_utils_sources
517 sources += [ 503 sources += [
518 "src/android/SkBitmapRegionCodec.cpp", 504 "src/android/SkBitmapRegionCodec.cpp",
519 "src/android/SkBitmapRegionDecoder.cpp", 505 "src/android/SkBitmapRegionDecoder.cpp",
506 "src/codec/GIFImageReader.cpp",
520 "src/codec/SkAndroidCodec.cpp", 507 "src/codec/SkAndroidCodec.cpp",
521 "src/codec/SkBmpCodec.cpp", 508 "src/codec/SkBmpCodec.cpp",
522 "src/codec/SkBmpMaskCodec.cpp", 509 "src/codec/SkBmpMaskCodec.cpp",
523 "src/codec/SkBmpRLECodec.cpp", 510 "src/codec/SkBmpRLECodec.cpp",
524 "src/codec/SkBmpStandardCodec.cpp", 511 "src/codec/SkBmpStandardCodec.cpp",
525 "src/codec/SkCodec.cpp", 512 "src/codec/SkCodec.cpp",
526 "src/codec/SkCodecImageGenerator.cpp", 513 "src/codec/SkCodecImageGenerator.cpp",
514 "src/codec/SkGifCodec.cpp",
527 "src/codec/SkMaskSwizzler.cpp", 515 "src/codec/SkMaskSwizzler.cpp",
528 "src/codec/SkMasks.cpp", 516 "src/codec/SkMasks.cpp",
529 "src/codec/SkSampledCodec.cpp", 517 "src/codec/SkSampledCodec.cpp",
530 "src/codec/SkSampler.cpp", 518 "src/codec/SkSampler.cpp",
519 "src/codec/SkStreamBuffer.cpp",
531 "src/codec/SkSwizzler.cpp", 520 "src/codec/SkSwizzler.cpp",
532 "src/codec/SkWbmpCodec.cpp", 521 "src/codec/SkWbmpCodec.cpp",
533 "src/images/SkImageEncoder.cpp", 522 "src/images/SkImageEncoder.cpp",
534 "src/images/SkImageEncoder_Factory.cpp", 523 "src/images/SkImageEncoder_Factory.cpp",
535 "src/images/SkKTXImageEncoder.cpp", 524 "src/images/SkKTXImageEncoder.cpp",
536 "src/ports/SkDiscardableMemory_none.cpp", 525 "src/ports/SkDiscardableMemory_none.cpp",
537 "src/ports/SkGlobalInitialization_default.cpp", 526 "src/ports/SkGlobalInitialization_default.cpp",
538 "src/ports/SkImageGenerator_skia.cpp", 527 "src/ports/SkImageGenerator_skia.cpp",
539 "src/ports/SkMemory_malloc.cpp", 528 "src/ports/SkMemory_malloc.cpp",
540 "src/ports/SkOSFile_stdio.cpp", 529 "src/ports/SkOSFile_stdio.cpp",
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 [ 801 [
813 "*.c*", 802 "*.c*",
814 rebase_path("gm"), 803 rebase_path("gm"),
815 ], 804 ],
816 "list lines", 805 "list lines",
817 []) 806 [])
818 test_lib("gm") { 807 test_lib("gm") {
819 public_include_dirs = [ "gm" ] 808 public_include_dirs = [ "gm" ]
820 sources = gm_sources 809 sources = gm_sources
821 deps = [ 810 deps = [
811 ":flags",
822 ":gpu_tool_utils", 812 ":gpu_tool_utils",
823 ":skia", 813 ":skia",
824 ":tool_utils", 814 ":tool_utils",
825 ] 815 ]
826 } 816 }
827 817
828 tests_sources = exec_script("gyp/find.py", 818 tests_sources = exec_script("gyp/find.py",
829 [ 819 [
830 "*.c*", 820 "*.c*",
831 rebase_path("tests"), 821 rebase_path("tests"),
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1223 ":samples", 1213 ":samples",
1224 ":skia", 1214 ":skia",
1225 ":tool_utils", 1215 ":tool_utils",
1226 ":views", 1216 ":views",
1227 "//third_party/jsoncpp", 1217 "//third_party/jsoncpp",
1228 ] 1218 ]
1229 testonly = true 1219 testonly = true
1230 } 1220 }
1231 } 1221 }
1232 } 1222 }
OLDNEW
« no previous file with comments | « no previous file | cmake/CMakeLists.txt » ('j') | src/codec/SkGifCodec.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698