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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 "SKNX_NO_SIMD", | 581 "SKNX_NO_SIMD", |
582 ] | 582 ] |
583 | 583 |
584 DEFINES_ALL = [ | 584 DEFINES_ALL = [ |
585 # Chrome DEFINES. | 585 # Chrome DEFINES. |
586 "SK_USE_FLOATBITS", | 586 "SK_USE_FLOATBITS", |
587 "SK_USE_FREETYPE_EMBOLDEN", | 587 "SK_USE_FREETYPE_EMBOLDEN", |
588 # Turn on a few Google3-specific build fixes. | 588 # Turn on a few Google3-specific build fixes. |
589 "GOOGLE3", | 589 "GOOGLE3", |
590 # Staging flags for API changes | 590 # Staging flags for API changes |
| 591 "SK_SUPPORT_LEGACY_ACCESSBITMAP", |
591 "SK_SUPPORT_LEGACY_COLORFILTER_PTR", | 592 "SK_SUPPORT_LEGACY_COLORFILTER_PTR", |
592 "SK_SUPPORT_LEGACY_CREATESHADER_PTR", | 593 "SK_SUPPORT_LEGACY_CREATESHADER_PTR", |
| 594 "SK_SUPPORT_LEGACY_IMAGEFACTORY", |
593 "SK_SUPPORT_LEGACY_IMAGEFILTER_PTR", | 595 "SK_SUPPORT_LEGACY_IMAGEFILTER_PTR", |
| 596 "SK_SUPPORT_LEGACY_MASKFILTER_PTR", |
594 "SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR", | 597 "SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR", |
595 "SK_SUPPORT_LEGACY_NEW_SURFACE_API", | 598 "SK_SUPPORT_LEGACY_NEW_SURFACE_API", |
596 "SK_SUPPORT_LEGACY_PATHEFFECT_PTR", | 599 "SK_SUPPORT_LEGACY_PATHEFFECT_PTR", |
597 "SK_SUPPORT_LEGACY_PICTURE_PTR", | 600 "SK_SUPPORT_LEGACY_PICTURE_PTR", |
598 "SK_SUPPORT_LEGACY_MASKFILTER_PTR", | 601 "SK_SUPPORT_LEGACY_TYPEFACE_PTR", |
599 "SK_SUPPORT_LEGACY_IMAGEFACTORY", | |
600 "SK_SUPPORT_LEGACY_XFERMODE_PTR", | 602 "SK_SUPPORT_LEGACY_XFERMODE_PTR", |
601 "SK_SUPPORT_LEGACY_TYPEFACE_PTR", | |
602 ] | 603 ] |
603 | 604 |
604 ################################################################################ | 605 ################################################################################ |
605 ## LINKOPTS | 606 ## LINKOPTS |
606 ################################################################################ | 607 ################################################################################ |
607 | 608 |
608 LINKOPTS_UNIX = [] | 609 LINKOPTS_UNIX = [] |
609 | 610 |
610 LINKOPTS_ANDROID = [ | 611 LINKOPTS_ANDROID = [ |
611 "-lEGL", | 612 "-lEGL", |
612 ] | 613 ] |
613 | 614 |
614 LINKOPTS_IOS = [] | 615 LINKOPTS_IOS = [] |
615 | 616 |
616 LINKOPTS_ALL = [ | 617 LINKOPTS_ALL = [ |
617 "-ldl", | 618 "-ldl", |
618 ] | 619 ] |
OLD | NEW |