OLD | NEW |
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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 DEFINES_UNIX = [ | 494 DEFINES_UNIX = [ |
495 "PNG_SKIP_SETJMP_CHECK", | 495 "PNG_SKIP_SETJMP_CHECK", |
496 "SK_BUILD_FOR_UNIX", | 496 "SK_BUILD_FOR_UNIX", |
497 "SK_SAMPLES_FOR_X", | 497 "SK_SAMPLES_FOR_X", |
498 "SK_SFNTLY_SUBSETTER", | 498 "SK_SFNTLY_SUBSETTER", |
499 "SK_CODEC_DECODES_GIF", | 499 "SK_CODEC_DECODES_GIF", |
500 "SK_CODEC_DECODES_JPEG", | 500 "SK_CODEC_DECODES_JPEG", |
501 "SK_CODEC_DECODES_PNG", | 501 "SK_CODEC_DECODES_PNG", |
502 "SK_CODEC_DECODES_RAW", | 502 "SK_CODEC_DECODES_RAW", |
503 "SK_CODEC_DECODES_WEBP", | 503 "SK_CODEC_DECODES_WEBP", |
504 "SK_SUPPORT_LEGACY_CREATESHADER_PTR", | |
505 ] | 504 ] |
506 | 505 |
507 DEFINES_ANDROID = [ | 506 DEFINES_ANDROID = [ |
508 "SK_BUILD_FOR_ANDROID", | 507 "SK_BUILD_FOR_ANDROID", |
509 "SK_CODEC_DECODES_GIF", | 508 "SK_CODEC_DECODES_GIF", |
510 "SK_CODEC_DECODES_JPEG", | 509 "SK_CODEC_DECODES_JPEG", |
511 "SK_CODEC_DECODES_PNG", | 510 "SK_CODEC_DECODES_PNG", |
512 "SK_CODEC_DECODES_RAW", | 511 "SK_CODEC_DECODES_RAW", |
513 "SK_CODEC_DECODES_WEBP", | 512 "SK_CODEC_DECODES_WEBP", |
514 ] | 513 ] |
515 | 514 |
516 DEFINES_IOS = [ | 515 DEFINES_IOS = [ |
517 "SK_BUILD_FOR_IOS", | 516 "SK_BUILD_FOR_IOS", |
518 "SK_IGNORE_ETC1_SUPPORT", | 517 "SK_IGNORE_ETC1_SUPPORT", |
519 "SKNX_NO_SIMD", | 518 "SKNX_NO_SIMD", |
520 ] | 519 ] |
521 | 520 |
522 DEFINES_ALL = [ | 521 DEFINES_ALL = [ |
523 # Chrome DEFINES. | 522 # Chrome DEFINES. |
524 "SK_USE_FLOATBITS", | 523 "SK_USE_FLOATBITS", |
525 "SK_USE_FREETYPE_EMBOLDEN", | 524 "SK_USE_FREETYPE_EMBOLDEN", |
526 "SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR", | 525 "SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR", |
527 "SK_SUPPORT_LEGACY_PATHEFFECT_PTR", | 526 "SK_SUPPORT_LEGACY_PATHEFFECT_PTR", |
528 # Turn on a few Google3-specific build fixes. | 527 # Turn on a few Google3-specific build fixes. |
529 "GOOGLE3", | 528 "GOOGLE3", |
| 529 # Staging flags for API changes |
| 530 "SK_SUPPORT_LEGACY_COLORFILTER_PTR", |
| 531 "SK_SUPPORT_LEGACY_CREATESHADER_PTR", |
530 ] | 532 ] |
531 | 533 |
532 ################################################################################ | 534 ################################################################################ |
533 ## LINKOPTS | 535 ## LINKOPTS |
534 ################################################################################ | 536 ################################################################################ |
535 | 537 |
536 LINKOPTS_UNIX = [] | 538 LINKOPTS_UNIX = [] |
537 | 539 |
538 LINKOPTS_ANDROID = [ | 540 LINKOPTS_ANDROID = [ |
539 "-lEGL", | 541 "-lEGL", |
540 ] | 542 ] |
541 | 543 |
542 LINKOPTS_IOS = [] | 544 LINKOPTS_IOS = [] |
543 | 545 |
544 LINKOPTS_ALL = [ | 546 LINKOPTS_ALL = [ |
545 "-ldl", | 547 "-ldl", |
546 ] | 548 ] |
OLD | NEW |