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

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: Fix a test - we now draw transparent background for missing color table Created 4 years, 1 month 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') | no next file with comments »
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 "src/lazy", 92 "src/lazy",
94 "src/opts", 93 "src/opts",
95 "src/pathops", 94 "src/pathops",
96 "src/pdf", 95 "src/pdf",
97 "src/ports", 96 "src/ports",
98 "src/sfnt", 97 "src/sfnt",
99 "src/sksl", 98 "src/sksl",
100 "src/utils", 99 "src/utils",
101 "src/utils/win", 100 "src/utils/win",
102 "third_party/etc1", 101 "third_party/etc1",
102 "third_party/gif",
103 "third_party/ktx", 103 "third_party/ktx",
104 ] 104 ]
105 105
106 defines = [ "SK_GAMMA_APPLY_TO_A8" ] 106 defines = [ "SK_GAMMA_APPLY_TO_A8" ]
107 if (is_android) { 107 if (is_android) {
108 defines += [ 108 defines += [
109 "SK_GAMMA_EXPONENT=1.4", 109 "SK_GAMMA_EXPONENT=1.4",
110 "SK_GAMMA_CONTRAST=0.0", 110 "SK_GAMMA_CONTRAST=0.0",
111 ] 111 ]
112 } 112 }
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 349
350 deps = [ 350 deps = [
351 "//third_party/freetype2", 351 "//third_party/freetype2",
352 ] 352 ]
353 sources = [ 353 sources = [
354 "src/ports/SkFontMgr_custom.cpp", 354 "src/ports/SkFontMgr_custom.cpp",
355 "src/ports/SkFontMgr_custom_empty_factory.cpp", 355 "src/ports/SkFontMgr_custom_empty_factory.cpp",
356 ] 356 ]
357 } 357 }
358 358
359 optional("gif") {
360 enabled = skia_use_giflib
361 public_defines = [ "SK_HAS_GIF_LIBRARY" ]
362
363 deps = [
364 "//third_party/giflib",
365 ]
366 sources = [
367 "src/codec/SkGifCodec.cpp",
368 ]
369 }
370
371 optional("gpu") { 359 optional("gpu") {
372 enabled = skia_enable_gpu 360 enabled = skia_enable_gpu
373 public_defines = [] 361 public_defines = []
374 362
375 sources = skia_gpu_sources + [ "src/gpu/gl/GrGLDefaultInterface_native.cpp" ] 363 sources = skia_gpu_sources + [ "src/gpu/gl/GrGLDefaultInterface_native.cpp" ]
376 364
377 # These paths need to be absolute to match the ones produced by shared_sources .gni. 365 # These paths need to be absolute to match the ones produced by shared_sources .gni.
378 sources -= get_path_info([ 366 sources -= get_path_info([
379 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", 367 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp",
380 "src/gpu/gl/GrGLDefaultInterface_none.cpp", 368 "src/gpu/gl/GrGLDefaultInterface_none.cpp",
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 deps = [ 482 deps = [
495 ":arm64", 483 ":arm64",
496 ":armv7", 484 ":armv7",
497 ":avx", 485 ":avx",
498 ":crc32", 486 ":crc32",
499 ":dsp", 487 ":dsp",
500 ":fontmgr_android", 488 ":fontmgr_android",
501 ":fontmgr_custom", 489 ":fontmgr_custom",
502 ":fontmgr_fontconfig", 490 ":fontmgr_fontconfig",
503 ":fontmgr_fuchsia", 491 ":fontmgr_fuchsia",
504 ":gif",
505 ":gpu", 492 ":gpu",
506 ":hsw", 493 ":hsw",
507 ":jpeg", 494 ":jpeg",
508 ":none", 495 ":none",
509 ":pdf", 496 ":pdf",
510 ":png", 497 ":png",
511 ":sse2", 498 ":sse2",
512 ":sse41", 499 ":sse41",
513 ":sse42", 500 ":sse42",
514 ":ssse3", 501 ":ssse3",
(...skipping 10 matching lines...) Expand all
525 sources += [ 512 sources += [
526 "src/android/SkBitmapRegionCodec.cpp", 513 "src/android/SkBitmapRegionCodec.cpp",
527 "src/android/SkBitmapRegionDecoder.cpp", 514 "src/android/SkBitmapRegionDecoder.cpp",
528 "src/codec/SkAndroidCodec.cpp", 515 "src/codec/SkAndroidCodec.cpp",
529 "src/codec/SkBmpCodec.cpp", 516 "src/codec/SkBmpCodec.cpp",
530 "src/codec/SkBmpMaskCodec.cpp", 517 "src/codec/SkBmpMaskCodec.cpp",
531 "src/codec/SkBmpRLECodec.cpp", 518 "src/codec/SkBmpRLECodec.cpp",
532 "src/codec/SkBmpStandardCodec.cpp", 519 "src/codec/SkBmpStandardCodec.cpp",
533 "src/codec/SkCodec.cpp", 520 "src/codec/SkCodec.cpp",
534 "src/codec/SkCodecImageGenerator.cpp", 521 "src/codec/SkCodecImageGenerator.cpp",
522 "src/codec/SkGifCodec.cpp",
535 "src/codec/SkMaskSwizzler.cpp", 523 "src/codec/SkMaskSwizzler.cpp",
536 "src/codec/SkMasks.cpp", 524 "src/codec/SkMasks.cpp",
537 "src/codec/SkSampledCodec.cpp", 525 "src/codec/SkSampledCodec.cpp",
538 "src/codec/SkSampler.cpp", 526 "src/codec/SkSampler.cpp",
527 "src/codec/SkStreamBuffer.cpp",
539 "src/codec/SkSwizzler.cpp", 528 "src/codec/SkSwizzler.cpp",
540 "src/codec/SkWbmpCodec.cpp", 529 "src/codec/SkWbmpCodec.cpp",
541 "src/images/SkImageEncoder.cpp", 530 "src/images/SkImageEncoder.cpp",
542 "src/images/SkImageEncoder_Factory.cpp", 531 "src/images/SkImageEncoder_Factory.cpp",
543 "src/images/SkKTXImageEncoder.cpp", 532 "src/images/SkKTXImageEncoder.cpp",
544 "src/ports/SkDiscardableMemory_none.cpp", 533 "src/ports/SkDiscardableMemory_none.cpp",
545 "src/ports/SkGlobalInitialization_default.cpp", 534 "src/ports/SkGlobalInitialization_default.cpp",
546 "src/ports/SkImageGenerator_skia.cpp", 535 "src/ports/SkImageGenerator_skia.cpp",
547 "src/ports/SkMemory_malloc.cpp", 536 "src/ports/SkMemory_malloc.cpp",
548 "src/ports/SkOSFile_stdio.cpp", 537 "src/ports/SkOSFile_stdio.cpp",
549 "src/sfnt/SkOTTable_name.cpp", 538 "src/sfnt/SkOTTable_name.cpp",
550 "src/sfnt/SkOTUtils.cpp", 539 "src/sfnt/SkOTUtils.cpp",
551 "src/svg/SkSVGCanvas.cpp", 540 "src/svg/SkSVGCanvas.cpp",
552 "src/svg/SkSVGDevice.cpp", 541 "src/svg/SkSVGDevice.cpp",
553 "src/utils/mac/SkStream_mac.cpp", 542 "src/utils/mac/SkStream_mac.cpp",
554 "third_party/etc1/etc1.cpp", 543 "third_party/etc1/etc1.cpp",
544 "third_party/gif/GIFImageReader.cpp",
555 "third_party/ktx/ktx.cpp", 545 "third_party/ktx/ktx.cpp",
556 ] 546 ]
557 547
558 libs = [] 548 libs = []
559 549
560 if (is_win) { 550 if (is_win) {
561 sources += [ 551 sources += [
562 "src/fonts/SkFontMgr_indirect.cpp", 552 "src/fonts/SkFontMgr_indirect.cpp",
563 "src/ports/SkDebug_win.cpp", 553 "src/ports/SkDebug_win.cpp",
564 "src/ports/SkFontHost_win.cpp", 554 "src/ports/SkFontHost_win.cpp",
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 [ 810 [
821 "*.c*", 811 "*.c*",
822 rebase_path("gm"), 812 rebase_path("gm"),
823 ], 813 ],
824 "list lines", 814 "list lines",
825 []) 815 [])
826 test_lib("gm") { 816 test_lib("gm") {
827 public_include_dirs = [ "gm" ] 817 public_include_dirs = [ "gm" ]
828 sources = gm_sources 818 sources = gm_sources
829 deps = [ 819 deps = [
820 ":flags",
830 ":gpu_tool_utils", 821 ":gpu_tool_utils",
831 ":skia", 822 ":skia",
832 ":tool_utils", 823 ":tool_utils",
833 ] 824 ]
834 } 825 }
835 826
836 tests_sources = exec_script("gyp/find.py", 827 tests_sources = exec_script("gyp/find.py",
837 [ 828 [
838 "*.c*", 829 "*.c*",
839 rebase_path("tests"), 830 rebase_path("tests"),
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 ] 1245 ]
1255 if (is_android) { 1246 if (is_android) {
1256 deps += [ "//third_party/native_app_glue" ] 1247 deps += [ "//third_party/native_app_glue" ]
1257 } else if (is_mac) { 1248 } else if (is_mac) {
1258 deps += [ "//third_party/libsdl" ] 1249 deps += [ "//third_party/libsdl" ]
1259 } 1250 }
1260 testonly = true 1251 testonly = true
1261 } 1252 }
1262 } 1253 }
1263 } 1254 }
OLDNEW
« no previous file with comments | « no previous file | cmake/CMakeLists.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698