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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 DEFINES_ALL = [ | 543 DEFINES_ALL = [ |
544 # Chrome DEFINES. | 544 # Chrome DEFINES. |
545 "SK_USE_FLOATBITS", | 545 "SK_USE_FLOATBITS", |
546 "SK_USE_FREETYPE_EMBOLDEN", | 546 "SK_USE_FREETYPE_EMBOLDEN", |
547 # Turn on a few Google3-specific build fixes. | 547 # Turn on a few Google3-specific build fixes. |
548 "GOOGLE3", | 548 "GOOGLE3", |
549 # Staging flags for API changes | 549 # Staging flags for API changes |
550 "SK_SUPPORT_LEGACY_COLORFILTER_PTR", | 550 "SK_SUPPORT_LEGACY_COLORFILTER_PTR", |
551 "SK_SUPPORT_LEGACY_CREATESHADER_PTR", | 551 "SK_SUPPORT_LEGACY_CREATESHADER_PTR", |
552 "SK_SUPPORT_LEGACY_IMAGEFILTER_PTR", | 552 "SK_SUPPORT_LEGACY_IMAGEFILTER_PTR", |
553 "SK_SUPPORT_LEGACY_LAYERITER", | |
554 "SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR", | 553 "SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR", |
555 "SK_SUPPORT_LEGACY_NEW_SURFACE_API", | 554 "SK_SUPPORT_LEGACY_NEW_SURFACE_API", |
556 "SK_SUPPORT_LEGACY_PATHEFFECT_PTR", | 555 "SK_SUPPORT_LEGACY_PATHEFFECT_PTR", |
557 "SK_SUPPORT_LEGACY_PICTURE_PTR", | 556 "SK_SUPPORT_LEGACY_PICTURE_PTR", |
558 "SK_SUPPORT_LEGACY_MASKFILTER_PTR", | 557 "SK_SUPPORT_LEGACY_MASKFILTER_PTR", |
559 "SK_SUPPORT_LEGACY_IMAGEFACTORY", | 558 "SK_SUPPORT_LEGACY_IMAGEFACTORY", |
560 "SK_SUPPORT_LEGACY_XFERMODE_PTR", | 559 "SK_SUPPORT_LEGACY_XFERMODE_PTR", |
561 ] | 560 ] |
562 | 561 |
563 ################################################################################ | 562 ################################################################################ |
564 ## LINKOPTS | 563 ## LINKOPTS |
565 ################################################################################ | 564 ################################################################################ |
566 | 565 |
567 LINKOPTS_UNIX = [] | 566 LINKOPTS_UNIX = [] |
568 | 567 |
569 LINKOPTS_ANDROID = [ | 568 LINKOPTS_ANDROID = [ |
570 "-lEGL", | 569 "-lEGL", |
571 ] | 570 ] |
572 | 571 |
573 LINKOPTS_IOS = [] | 572 LINKOPTS_IOS = [] |
574 | 573 |
575 LINKOPTS_ALL = [ | 574 LINKOPTS_ALL = [ |
576 "-ldl", | 575 "-ldl", |
577 ] | 576 ] |
OLD | NEW |