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

Side by Side Diff: public.bzl

Issue 1702533004: Individually enable and disable SkCodecs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add missing WEBP check, disable codecs on Google3 iOS Created 4 years, 10 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
OLDNEW
1 ################################################################################ 1 ################################################################################
2 # Skylark macros 2 # Skylark macros
3 ################################################################################ 3 ################################################################################
4 4
5 is_bazel = not hasattr(native, "genmpm") 5 is_bazel = not hasattr(native, "genmpm")
6 6
7 def portable_select(select_dict, bazel_condition, default_condition): 7 def portable_select(select_dict, bazel_condition, default_condition):
8 """Replaces select() with a Bazel-friendly wrapper. 8 """Replaces select() with a Bazel-friendly wrapper.
9 9
10 Args: 10 Args:
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 472
473 ################################################################################ 473 ################################################################################
474 ## DEFINES 474 ## DEFINES
475 ################################################################################ 475 ################################################################################
476 476
477 DEFINES_UNIX = [ 477 DEFINES_UNIX = [
478 "PNG_SKIP_SETJMP_CHECK", 478 "PNG_SKIP_SETJMP_CHECK",
479 "SK_BUILD_FOR_UNIX", 479 "SK_BUILD_FOR_UNIX",
480 "SK_SAMPLES_FOR_X", 480 "SK_SAMPLES_FOR_X",
481 "SK_SFNTLY_SUBSETTER", 481 "SK_SFNTLY_SUBSETTER",
482 "SK_CODEC_DECODES_GIF",
483 "SK_CODEC_DECODES_ICO",
484 "SK_CODEC_DECODES_JPEG",
485 "SK_CODEC_DECODES_PNG",
482 "SK_CODEC_DECODES_RAW", 486 "SK_CODEC_DECODES_RAW",
487 "SK_CODEC_DECODES_WEBP",
483 ] 488 ]
484 489
485 DEFINES_ANDROID = [ 490 DEFINES_ANDROID = [
486 "SK_BUILD_FOR_ANDROID", 491 "SK_BUILD_FOR_ANDROID",
487 # TODO(benjaminwagner): Try to get png library updated? 492 "SK_CODEC_DECODES_GIF",
488 "SK_PNG_NO_INDEX_SUPPORTED", 493 "SK_CODEC_DECODES_ICO",
494 "SK_CODEC_DECODES_JPEG",
495 "SK_CODEC_DECODES_PNG",
489 "SK_CODEC_DECODES_RAW", 496 "SK_CODEC_DECODES_RAW",
497 "SK_CODEC_DECODES_WEBP",
490 ] 498 ]
491 499
492 DEFINES_IOS = [ 500 DEFINES_IOS = [
493 "SK_BUILD_FOR_IOS", 501 "SK_BUILD_FOR_IOS",
494 "SK_IGNORE_ETC1_SUPPORT", 502 "SK_IGNORE_ETC1_SUPPORT",
495 "SKNX_NO_SIMD", 503 "SKNX_NO_SIMD",
496 ] 504 ]
497 505
498 DEFINES_ALL = [ 506 DEFINES_ALL = [
499 # Chrome DEFINES. 507 # Chrome DEFINES.
500 "SK_USE_FLOATBITS", 508 "SK_USE_FLOATBITS",
501 "SK_USE_FREETYPE_EMBOLDEN", 509 "SK_USE_FREETYPE_EMBOLDEN",
502 # Turn on a few Google3-specific build fixes. 510 # Turn on a few Google3-specific build fixes.
503 "GOOGLE3", 511 "GOOGLE3",
512 # There image codecs can be enabled on all platforms since
513 # they don't have any dependencies.
514 "SK_CODEC_DECODES_BMP",
515 "SK_CODEC_DECODES_WBMP",
504 ] 516 ]
505 517
506 ################################################################################ 518 ################################################################################
507 ## LINKOPTS 519 ## LINKOPTS
508 ################################################################################ 520 ################################################################################
509 521
510 LINKOPTS_UNIX = [] 522 LINKOPTS_UNIX = []
511 523
512 LINKOPTS_ANDROID = [ 524 LINKOPTS_ANDROID = [
513 "-lEGL", 525 "-lEGL",
514 ] 526 ]
515 527
516 LINKOPTS_IOS = [] 528 LINKOPTS_IOS = []
517 529
518 LINKOPTS_ALL = [ 530 LINKOPTS_ALL = [
519 "-ldl", 531 "-ldl",
520 ] 532 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698