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

Side by Side Diff: BUILD.gn

Issue 2292613002: GN: ft and fc as optionals (Closed)
Patch Set: Created 4 years, 3 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 | no next file » | 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 declare_args() { 6 declare_args() {
7 skia_enable_tools = !is_fuchsia && !is_component_build 7 skia_enable_tools = !is_fuchsia && !is_component_build
8 8
9 skia_use_expat = true 9 skia_use_expat = true
10 skia_use_fontconfig = is_linux
11 skia_use_freetype = is_android || is_linux
10 skia_use_giflib = !is_fuchsia 12 skia_use_giflib = !is_fuchsia
11 skia_use_libjpeg_turbo = true 13 skia_use_libjpeg_turbo = true
12 skia_use_libpng = true 14 skia_use_libpng = true
13 skia_use_libwebp = !is_fuchsia 15 skia_use_libwebp = !is_fuchsia
14 skia_use_sfntly = !is_fuchsia 16 skia_use_sfntly = !is_fuchsia
15 skia_use_zlib = true 17 skia_use_zlib = true
16 } 18 }
17 19
18 skia_public_includes = [ 20 skia_public_includes = [
19 "include/android", 21 "include/android",
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 deps = [ 298 deps = [
297 "//third_party/libpng", 299 "//third_party/libpng",
298 ] 300 ]
299 sources = [ 301 sources = [
300 "src/codec/SkIcoCodec.cpp", 302 "src/codec/SkIcoCodec.cpp",
301 "src/codec/SkPngCodec.cpp", 303 "src/codec/SkPngCodec.cpp",
302 "src/images/SkPNGImageEncoder.cpp", 304 "src/images/SkPNGImageEncoder.cpp",
303 ] 305 ]
304 } 306 }
305 307
308 optional("typeface_fontconfig") {
bungeman-skia 2016/08/29 18:49:38 I think this should be named fontmgr_fontconfig. F
309 enabled = skia_use_freetype && skia_use_fontconfig
310 public_defines = []
311
312 deps = [
313 "//third_party:fontconfig",
314 "//third_party/freetype2",
315 ]
316 sources = [
317 "src/ports/SkFontConfigInterface_direct.cpp",
318 "src/ports/SkFontConfigInterface_direct_factory.cpp",
319 "src/ports/SkFontMgr_FontConfigInterface.cpp",
320 "src/ports/SkFontMgr_fontconfig.cpp",
321 "src/ports/SkFontMgr_fontconfig_factory.cpp",
322 ]
323 }
324
325 optional("typeface_freetype") {
326 enabled = skia_use_freetype
327 public_defines = []
328
329 deps = [
330 "//third_party/freetype2",
331 ]
332 sources = [
333 "src/ports/SkFontHost_FreeType.cpp",
334 "src/ports/SkFontHost_FreeType_common.cpp",
335 ]
336 }
337
306 optional("webp") { 338 optional("webp") {
307 enabled = skia_use_libwebp 339 enabled = skia_use_libwebp
308 public_defines = [ "SK_HAS_WEBP_LIBRARY" ] 340 public_defines = [ "SK_HAS_WEBP_LIBRARY" ]
309 341
310 deps = [ 342 deps = [
311 "//third_party/libwebp", 343 "//third_party/libwebp",
312 ] 344 ]
313 sources = [ 345 sources = [
314 "src/codec/SkWebpAdapterCodec.cpp", 346 "src/codec/SkWebpAdapterCodec.cpp",
315 "src/codec/SkWebpCodec.cpp", 347 "src/codec/SkWebpCodec.cpp",
(...skipping 27 matching lines...) Expand all
343 ":dsp", 375 ":dsp",
344 ":gif", 376 ":gif",
345 ":jpeg", 377 ":jpeg",
346 ":none", 378 ":none",
347 ":pdf", 379 ":pdf",
348 ":png", 380 ":png",
349 ":sse2", 381 ":sse2",
350 ":sse41", 382 ":sse41",
351 ":sse42", 383 ":sse42",
352 ":ssse3", 384 ":ssse3",
385 ":typeface_fontconfig",
386 ":typeface_freetype",
353 ":webp", 387 ":webp",
354 ":xml", 388 ":xml",
355 ] 389 ]
356 390
357 sources = [] 391 sources = []
358 sources += core_gypi.sources 392 sources += core_gypi.sources
359 sources += effects_gypi.sources 393 sources += effects_gypi.sources
360 sources += gpu_gypi.skgpu_sources 394 sources += gpu_gypi.skgpu_sources
361 sources += utils_gypi.sources 395 sources += utils_gypi.sources
362 sources += [ 396 sources += [
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 "src/ports/SkOSFile_posix.cpp", 453 "src/ports/SkOSFile_posix.cpp",
420 "src/ports/SkTLS_pthread.cpp", 454 "src/ports/SkTLS_pthread.cpp",
421 "src/xps/SkDocument_XPS_None.cpp", 455 "src/xps/SkDocument_XPS_None.cpp",
422 ] 456 ]
423 } 457 }
424 458
425 if (is_android) { 459 if (is_android) {
426 deps += [ 460 deps += [
427 "//third_party/cpu-features", 461 "//third_party/cpu-features",
428 "//third_party/expat", 462 "//third_party/expat",
429 "//third_party/freetype2",
430 ] 463 ]
431 sources += [ 464 sources += [
432 "src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp", 465 "src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp",
433 "src/ports/SkDebug_android.cpp", 466 "src/ports/SkDebug_android.cpp",
434 "src/ports/SkFontHost_FreeType.cpp",
435 "src/ports/SkFontHost_FreeType_common.cpp",
436 "src/ports/SkFontMgr_android.cpp", 467 "src/ports/SkFontMgr_android.cpp",
437 "src/ports/SkFontMgr_android_factory.cpp", 468 "src/ports/SkFontMgr_android_factory.cpp",
438 "src/ports/SkFontMgr_android_parser.cpp", 469 "src/ports/SkFontMgr_android_parser.cpp",
439 ] 470 ]
440 libs += [ 471 libs += [
441 "EGL", 472 "EGL",
442 "GLESv2", 473 "GLESv2",
443 "log", 474 "log",
444 ] 475 ]
445 } 476 }
446 477
447 if (is_linux) { 478 if (is_linux) {
448 deps += [
449 "third_party:fontconfig",
450 "//third_party/freetype2",
451 ]
452 libs += [ 479 libs += [
453 "GL", 480 "GL",
454 "GLU", 481 "GLU",
455 "X11", 482 "X11",
456 ] 483 ]
457 sources += [ 484 sources += [
458 "src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp", 485 "src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp",
459 "src/ports/SkDebug_stdio.cpp", 486 "src/ports/SkDebug_stdio.cpp",
460 "src/ports/SkFontConfigInterface_direct.cpp",
461 "src/ports/SkFontConfigInterface_direct_factory.cpp",
462 "src/ports/SkFontHost_FreeType.cpp",
463 "src/ports/SkFontHost_FreeType_common.cpp",
464 "src/ports/SkFontMgr_FontConfigInterface.cpp",
465 "src/ports/SkFontMgr_fontconfig.cpp",
466 "src/ports/SkFontMgr_fontconfig_factory.cpp",
467 ] 487 ]
468 } 488 }
469 489
470 if (is_mac) { 490 if (is_mac) {
471 sources += [ 491 sources += [
472 "src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp", 492 "src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp",
473 "src/ports/SkDebug_stdio.cpp", 493 "src/ports/SkDebug_stdio.cpp",
474 "src/ports/SkFontHost_mac.cpp", 494 "src/ports/SkFontHost_mac.cpp",
475 "src/ports/SkImageEncoder_CG.cpp", 495 "src/ports/SkImageEncoder_CG.cpp",
476 "src/ports/SkImageGeneratorCG.cpp", 496 "src/ports/SkImageGeneratorCG.cpp",
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 "tools/SkShaper_harfbuzz.cpp", 793 "tools/SkShaper_harfbuzz.cpp",
774 "tools/using_skia_and_harfbuzz.cpp", 794 "tools/using_skia_and_harfbuzz.cpp",
775 ] 795 ]
776 deps = [ 796 deps = [
777 ":skia", 797 ":skia",
778 "//third_party/harfbuzz", 798 "//third_party/harfbuzz",
779 ] 799 ]
780 testonly = true 800 testonly = true
781 } 801 }
782 } 802 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698