OLD | NEW |
---|---|
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_giflib = !is_fuchsia | 17 skia_use_giflib = true |
18 skia_use_libjpeg_turbo = true | 18 skia_use_libjpeg_turbo = true |
19 skia_use_libpng = true | 19 skia_use_libpng = true |
20 skia_use_libwebp = !is_fuchsia | 20 skia_use_libwebp = !is_fuchsia |
21 skia_use_mesa = false | 21 skia_use_mesa = false |
22 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. |
23 skia_use_vulkan = is_android && defined(ndk_api) && ndk_api >= 24 | 23 skia_use_vulkan = is_android && defined(ndk_api) && ndk_api >= 24 |
24 skia_use_zlib = true | 24 skia_use_zlib = true |
25 | 25 |
26 skia_enable_android_framework_defines = false | 26 skia_enable_android_framework_defines = false |
27 skia_enable_gpu = true | 27 skia_enable_gpu = true |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
333 "//third_party/freetype2", | 333 "//third_party/freetype2", |
334 ] | 334 ] |
335 sources = [ | 335 sources = [ |
336 "src/ports/SkFontMgr_custom.cpp", | 336 "src/ports/SkFontMgr_custom.cpp", |
337 "src/ports/SkFontMgr_custom_empty_factory.cpp", | 337 "src/ports/SkFontMgr_custom_empty_factory.cpp", |
338 ] | 338 ] |
339 } | 339 } |
340 | 340 |
341 optional("gif") { | 341 optional("gif") { |
342 enabled = skia_use_giflib | 342 enabled = skia_use_giflib |
343 public_defines = [ "SK_HAS_GIF_LIBRARY" ] | 343 public_defines = [ "SK_HAS_GIF_LIBRARY" ] |
msarett
2016/10/18 20:04:36
Now that we don't depend on giflib, can we get rid
scroggo_chromium
2016/10/18 20:41:47
Done.
| |
344 | 344 |
345 deps = [ | |
346 "//third_party/giflib", | |
347 ] | |
348 sources = [ | 345 sources = [ |
346 "src/codec/GIFImageReader.cpp", | |
349 "src/codec/SkGifCodec.cpp", | 347 "src/codec/SkGifCodec.cpp", |
350 ] | 348 ] |
351 } | 349 } |
352 | 350 |
353 optional("gpu") { | 351 optional("gpu") { |
354 enabled = skia_enable_gpu | 352 enabled = skia_enable_gpu |
355 public_defines = [] | 353 public_defines = [] |
356 | 354 |
357 sources = skia_gpu_sources + [ "src/gpu/gl/GrGLDefaultInterface_native.cpp" ] | 355 sources = skia_gpu_sources + [ "src/gpu/gl/GrGLDefaultInterface_native.cpp" ] |
358 | 356 |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1043 "tools/DumpRecord.cpp", | 1041 "tools/DumpRecord.cpp", |
1044 "tools/dump_record.cpp", | 1042 "tools/dump_record.cpp", |
1045 ] | 1043 ] |
1046 deps = [ | 1044 deps = [ |
1047 ":flags", | 1045 ":flags", |
1048 ":skia", | 1046 ":skia", |
1049 ] | 1047 ] |
1050 testonly = true | 1048 testonly = true |
1051 } | 1049 } |
1052 } | 1050 } |
OLD | NEW |