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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 "SK_BUILD_FOR_ANDROID", | 562 "SK_BUILD_FOR_ANDROID", |
563 "SK_CODEC_DECODES_RAW", | 563 "SK_CODEC_DECODES_RAW", |
564 "SK_HAS_GIF_LIBRARY", | 564 "SK_HAS_GIF_LIBRARY", |
565 "SK_HAS_JPEG_LIBRARY", | 565 "SK_HAS_JPEG_LIBRARY", |
566 "SK_HAS_PNG_LIBRARY", | 566 "SK_HAS_PNG_LIBRARY", |
567 "SK_HAS_WEBP_LIBRARY", | 567 "SK_HAS_WEBP_LIBRARY", |
568 ] | 568 ] |
569 | 569 |
570 DEFINES_IOS = [ | 570 DEFINES_IOS = [ |
571 "SK_BUILD_FOR_IOS", | 571 "SK_BUILD_FOR_IOS", |
| 572 "SK_BUILD_NO_OPTS", |
572 "SK_IGNORE_ETC1_SUPPORT", | 573 "SK_IGNORE_ETC1_SUPPORT", |
573 "SKNX_NO_SIMD", | 574 "SKNX_NO_SIMD", |
574 ] | 575 ] |
575 | 576 |
576 DEFINES_ALL = [ | 577 DEFINES_ALL = [ |
577 # Chrome DEFINES. | 578 # Chrome DEFINES. |
578 "SK_USE_FLOATBITS", | 579 "SK_USE_FLOATBITS", |
579 "SK_USE_FREETYPE_EMBOLDEN", | 580 "SK_USE_FREETYPE_EMBOLDEN", |
580 # Turn on a few Google3-specific build fixes. | 581 # Turn on a few Google3-specific build fixes. |
581 "GOOGLE3", | 582 "GOOGLE3", |
(...skipping 19 matching lines...) Expand all Loading... |
601 | 602 |
602 LINKOPTS_ANDROID = [ | 603 LINKOPTS_ANDROID = [ |
603 "-lEGL", | 604 "-lEGL", |
604 ] | 605 ] |
605 | 606 |
606 LINKOPTS_IOS = [] | 607 LINKOPTS_IOS = [] |
607 | 608 |
608 LINKOPTS_ALL = [ | 609 LINKOPTS_ALL = [ |
609 "-ldl", | 610 "-ldl", |
610 ] | 611 ] |
OLD | NEW |