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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 DEFINES_IOS = [ | 527 DEFINES_IOS = [ |
528 "SK_BUILD_FOR_IOS", | 528 "SK_BUILD_FOR_IOS", |
529 "SK_IGNORE_ETC1_SUPPORT", | 529 "SK_IGNORE_ETC1_SUPPORT", |
530 "SKNX_NO_SIMD", | 530 "SKNX_NO_SIMD", |
531 ] | 531 ] |
532 | 532 |
533 DEFINES_ALL = [ | 533 DEFINES_ALL = [ |
534 # Chrome DEFINES. | 534 # Chrome DEFINES. |
535 "SK_USE_FLOATBITS", | 535 "SK_USE_FLOATBITS", |
536 "SK_USE_FREETYPE_EMBOLDEN", | 536 "SK_USE_FREETYPE_EMBOLDEN", |
537 "SK_SUPPORT_LEGACY_NEW_SURFACE_API", | |
538 "SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR", | |
539 "SK_SUPPORT_LEGACY_PATHEFFECT_PTR", | |
540 # Turn on a few Google3-specific build fixes. | 537 # Turn on a few Google3-specific build fixes. |
541 "GOOGLE3", | 538 "GOOGLE3", |
542 # Staging flags for API changes | 539 # Staging flags for API changes |
543 "SK_SUPPORT_LEGACY_COLORFILTER_PTR", | 540 "SK_SUPPORT_LEGACY_COLORFILTER_PTR", |
544 "SK_SUPPORT_LEGACY_CREATESHADER_PTR", | 541 "SK_SUPPORT_LEGACY_CREATESHADER_PTR", |
| 542 "SK_SUPPORT_LEGACY_IMAGEFILTER_PTR", |
| 543 "SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR", |
| 544 "SK_SUPPORT_LEGACY_NEW_SURFACE_API", |
| 545 "SK_SUPPORT_LEGACY_PATHEFFECT_PTR", |
545 "SK_SUPPORT_LEGACY_PICTURE_PTR", | 546 "SK_SUPPORT_LEGACY_PICTURE_PTR", |
546 "SK_SUPPORT_LEGACY_XFERMODE_PTR", | 547 "SK_SUPPORT_LEGACY_XFERMODE_PTR", |
547 ] | 548 ] |
548 | 549 |
549 ################################################################################ | 550 ################################################################################ |
550 ## LINKOPTS | 551 ## LINKOPTS |
551 ################################################################################ | 552 ################################################################################ |
552 | 553 |
553 LINKOPTS_UNIX = [] | 554 LINKOPTS_UNIX = [] |
554 | 555 |
555 LINKOPTS_ANDROID = [ | 556 LINKOPTS_ANDROID = [ |
556 "-lEGL", | 557 "-lEGL", |
557 ] | 558 ] |
558 | 559 |
559 LINKOPTS_IOS = [] | 560 LINKOPTS_IOS = [] |
560 | 561 |
561 LINKOPTS_ALL = [ | 562 LINKOPTS_ALL = [ |
562 "-ldl", | 563 "-ldl", |
563 ] | 564 ] |
OLD | NEW |