| 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 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 "*", | 241 "*", |
| 240 [ | 242 [ |
| 241 "public_defines", | 243 "public_defines", |
| 242 "deps", | 244 "deps", |
| 243 "sources", | 245 "sources", |
| 244 ]) | 246 ]) |
| 245 } | 247 } |
| 246 } | 248 } |
| 247 } | 249 } |
| 248 | 250 |
| 251 optional("fontmgr_fontconfig") { |
| 252 enabled = skia_use_freetype && skia_use_fontconfig |
| 253 public_defines = [] |
| 254 |
| 255 deps = [ |
| 256 "//third_party:fontconfig", |
| 257 "//third_party/freetype2", |
| 258 ] |
| 259 sources = [ |
| 260 "src/ports/SkFontConfigInterface_direct.cpp", |
| 261 "src/ports/SkFontConfigInterface_direct_factory.cpp", |
| 262 "src/ports/SkFontMgr_FontConfigInterface.cpp", |
| 263 "src/ports/SkFontMgr_fontconfig.cpp", |
| 264 "src/ports/SkFontMgr_fontconfig_factory.cpp", |
| 265 ] |
| 266 } |
| 267 |
| 249 optional("gif") { | 268 optional("gif") { |
| 250 enabled = skia_use_giflib | 269 enabled = skia_use_giflib |
| 251 public_defines = [ "SK_HAS_GIF_LIBRARY" ] | 270 public_defines = [ "SK_HAS_GIF_LIBRARY" ] |
| 252 | 271 |
| 253 deps = [ | 272 deps = [ |
| 254 "//third_party/giflib", | 273 "//third_party/giflib", |
| 255 ] | 274 ] |
| 256 sources = [ | 275 sources = [ |
| 257 "src/codec/SkGifCodec.cpp", | 276 "src/codec/SkGifCodec.cpp", |
| 258 ] | 277 ] |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 deps = [ | 315 deps = [ |
| 297 "//third_party/libpng", | 316 "//third_party/libpng", |
| 298 ] | 317 ] |
| 299 sources = [ | 318 sources = [ |
| 300 "src/codec/SkIcoCodec.cpp", | 319 "src/codec/SkIcoCodec.cpp", |
| 301 "src/codec/SkPngCodec.cpp", | 320 "src/codec/SkPngCodec.cpp", |
| 302 "src/images/SkPNGImageEncoder.cpp", | 321 "src/images/SkPNGImageEncoder.cpp", |
| 303 ] | 322 ] |
| 304 } | 323 } |
| 305 | 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 18 matching lines...) Expand all Loading... |
| 334 component("skia") { | 366 component("skia") { |
| 335 public_configs = [ ":skia_public" ] | 367 public_configs = [ ":skia_public" ] |
| 336 configs += skia_library_configs | 368 configs += skia_library_configs |
| 337 | 369 |
| 338 deps = [ | 370 deps = [ |
| 339 ":arm64", | 371 ":arm64", |
| 340 ":armv7", | 372 ":armv7", |
| 341 ":avx", | 373 ":avx", |
| 342 ":crc32", | 374 ":crc32", |
| 343 ":dsp", | 375 ":dsp", |
| 376 ":fontmgr_fontconfig", |
| 344 ":gif", | 377 ":gif", |
| 345 ":jpeg", | 378 ":jpeg", |
| 346 ":none", | 379 ":none", |
| 347 ":pdf", | 380 ":pdf", |
| 348 ":png", | 381 ":png", |
| 349 ":sse2", | 382 ":sse2", |
| 350 ":sse41", | 383 ":sse41", |
| 351 ":sse42", | 384 ":sse42", |
| 352 ":ssse3", | 385 ":ssse3", |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |