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 declare_args() { | 8 declare_args() { |
9 skia_enable_tools = !is_fuchsia && !is_component_build | 9 skia_enable_tools = !is_fuchsia && !is_component_build |
10 | 10 |
11 skia_use_expat = true | 11 skia_use_expat = true |
12 skia_use_fontconfig = is_linux | 12 skia_use_fontconfig = is_linux |
13 skia_use_freetype = is_android || is_linux | 13 skia_use_freetype = is_android || is_fuchsia || is_linux |
14 skia_use_giflib = !is_fuchsia | 14 skia_use_giflib = !is_fuchsia |
15 skia_use_libjpeg_turbo = true | 15 skia_use_libjpeg_turbo = true |
16 skia_use_libpng = true | 16 skia_use_libpng = true |
17 skia_use_libwebp = !is_fuchsia | 17 skia_use_libwebp = !is_fuchsia |
18 skia_use_sfntly = !is_fuchsia | 18 skia_use_sfntly = !is_fuchsia |
19 skia_use_zlib = true | 19 skia_use_zlib = true |
20 } | 20 } |
21 | 21 |
22 fontmgr_android_enabled = skia_use_expat && skia_use_freetype | 22 fontmgr_android_enabled = skia_use_expat && skia_use_freetype |
23 | 23 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 ] | 251 ] |
252 sources = [ | 252 sources = [ |
253 "src/ports/SkFontConfigInterface_direct.cpp", | 253 "src/ports/SkFontConfigInterface_direct.cpp", |
254 "src/ports/SkFontConfigInterface_direct_factory.cpp", | 254 "src/ports/SkFontConfigInterface_direct_factory.cpp", |
255 "src/ports/SkFontMgr_FontConfigInterface.cpp", | 255 "src/ports/SkFontMgr_FontConfigInterface.cpp", |
256 "src/ports/SkFontMgr_fontconfig.cpp", | 256 "src/ports/SkFontMgr_fontconfig.cpp", |
257 "src/ports/SkFontMgr_fontconfig_factory.cpp", | 257 "src/ports/SkFontMgr_fontconfig_factory.cpp", |
258 ] | 258 ] |
259 } | 259 } |
260 | 260 |
| 261 optional("fontmgr_fuchsia") { |
| 262 enabled = is_fuchsia && skia_use_freetype |
| 263 |
| 264 deps = [ |
| 265 "//third_party/freetype2", |
| 266 ] |
| 267 sources = [ |
| 268 "src/ports/SkFontMgr_custom.cpp", |
| 269 "src/ports/SkFontMgr_custom_empty_factory.cpp", |
| 270 ] |
| 271 } |
| 272 |
261 optional("gif") { | 273 optional("gif") { |
262 enabled = skia_use_giflib | 274 enabled = skia_use_giflib |
263 public_defines = [ "SK_HAS_GIF_LIBRARY" ] | 275 public_defines = [ "SK_HAS_GIF_LIBRARY" ] |
264 | 276 |
265 deps = [ | 277 deps = [ |
266 "//third_party/giflib", | 278 "//third_party/giflib", |
267 ] | 279 ] |
268 sources = [ | 280 sources = [ |
269 "src/codec/SkGifCodec.cpp", | 281 "src/codec/SkGifCodec.cpp", |
270 ] | 282 ] |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 | 372 |
361 deps = [ | 373 deps = [ |
362 ":arm64", | 374 ":arm64", |
363 ":armv7", | 375 ":armv7", |
364 ":avx", | 376 ":avx", |
365 ":crc32", | 377 ":crc32", |
366 ":dsp", | 378 ":dsp", |
367 ":fontmgr_android", | 379 ":fontmgr_android", |
368 ":fontmgr_custom", | 380 ":fontmgr_custom", |
369 ":fontmgr_fontconfig", | 381 ":fontmgr_fontconfig", |
| 382 ":fontmgr_fuchsia", |
370 ":gif", | 383 ":gif", |
371 ":jpeg", | 384 ":jpeg", |
372 ":none", | 385 ":none", |
373 ":pdf", | 386 ":pdf", |
374 ":png", | 387 ":png", |
375 ":sse2", | 388 ":sse2", |
376 ":sse41", | 389 ":sse41", |
377 ":sse42", | 390 ":sse42", |
378 ":ssse3", | 391 ":ssse3", |
379 ":typeface_freetype", | 392 ":typeface_freetype", |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 "src/ports/SkImageEncoder_CG.cpp", | 504 "src/ports/SkImageEncoder_CG.cpp", |
492 "src/ports/SkImageGeneratorCG.cpp", | 505 "src/ports/SkImageGeneratorCG.cpp", |
493 ] | 506 ] |
494 libs += [ | 507 libs += [ |
495 "ApplicationServices.framework", | 508 "ApplicationServices.framework", |
496 "OpenGL.framework", | 509 "OpenGL.framework", |
497 ] | 510 ] |
498 } | 511 } |
499 | 512 |
500 if (is_fuchsia) { | 513 if (is_fuchsia) { |
501 sources += [ | 514 sources += [ "src/gpu/gl/GrGLCreateNativeInterface_none.cpp" ] |
502 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", | |
503 "src/ports/SkDebug_stdio.cpp", | |
504 "src/ports/SkFontMgr_empty_factory.cpp", | |
505 ] | |
506 } | 515 } |
507 } | 516 } |
508 | 517 |
509 skia_h_headers = exec_script("gyp/find.py", | 518 skia_h_headers = exec_script("gyp/find.py", |
510 [ "*.h" ] + rebase_path(skia_public_includes), | 519 [ "*.h" ] + rebase_path(skia_public_includes), |
511 "list lines", | 520 "list lines", |
512 []) - | 521 []) - |
513 [ | 522 [ |
514 rebase_path("include/gpu/gl/GrGLConfig_chrome.h"), | 523 rebase_path("include/gpu/gl/GrGLConfig_chrome.h"), |
515 rebase_path("include/gpu/vk/GrVkBackendContext.h"), | 524 rebase_path("include/gpu/vk/GrVkBackendContext.h"), |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 sources = [ | 811 sources = [ |
803 "tools/SkShaper_primitive.cpp", | 812 "tools/SkShaper_primitive.cpp", |
804 "tools/using_skia_and_harfbuzz.cpp", | 813 "tools/using_skia_and_harfbuzz.cpp", |
805 ] | 814 ] |
806 deps = [ | 815 deps = [ |
807 ":skia", | 816 ":skia", |
808 ] | 817 ] |
809 testonly = true | 818 testonly = true |
810 } | 819 } |
811 } | 820 } |
OLD | NEW |