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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 DEFINES_IOS = [ | 515 DEFINES_IOS = [ |
516 "SK_BUILD_FOR_IOS", | 516 "SK_BUILD_FOR_IOS", |
517 "SK_IGNORE_ETC1_SUPPORT", | 517 "SK_IGNORE_ETC1_SUPPORT", |
518 "SKNX_NO_SIMD", | 518 "SKNX_NO_SIMD", |
519 ] | 519 ] |
520 | 520 |
521 DEFINES_ALL = [ | 521 DEFINES_ALL = [ |
522 # Chrome DEFINES. | 522 # Chrome DEFINES. |
523 "SK_USE_FLOATBITS", | 523 "SK_USE_FLOATBITS", |
524 "SK_USE_FREETYPE_EMBOLDEN", | 524 "SK_USE_FREETYPE_EMBOLDEN", |
| 525 "SK_SUPPORT_LEGACY_NEW_SURFACE_API", |
525 "SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR", | 526 "SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR", |
526 "SK_SUPPORT_LEGACY_PATHEFFECT_PTR", | 527 "SK_SUPPORT_LEGACY_PATHEFFECT_PTR", |
527 # Turn on a few Google3-specific build fixes. | 528 # Turn on a few Google3-specific build fixes. |
528 "GOOGLE3", | 529 "GOOGLE3", |
529 # Staging flags for API changes | 530 # Staging flags for API changes |
530 "SK_SUPPORT_LEGACY_COLORFILTER_PTR", | 531 "SK_SUPPORT_LEGACY_COLORFILTER_PTR", |
531 "SK_SUPPORT_LEGACY_CREATESHADER_PTR", | 532 "SK_SUPPORT_LEGACY_CREATESHADER_PTR", |
532 ] | 533 ] |
533 | 534 |
534 ################################################################################ | 535 ################################################################################ |
535 ## LINKOPTS | 536 ## LINKOPTS |
536 ################################################################################ | 537 ################################################################################ |
537 | 538 |
538 LINKOPTS_UNIX = [] | 539 LINKOPTS_UNIX = [] |
539 | 540 |
540 LINKOPTS_ANDROID = [ | 541 LINKOPTS_ANDROID = [ |
541 "-lEGL", | 542 "-lEGL", |
542 ] | 543 ] |
543 | 544 |
544 LINKOPTS_IOS = [] | 545 LINKOPTS_IOS = [] |
545 | 546 |
546 LINKOPTS_ALL = [ | 547 LINKOPTS_ALL = [ |
547 "-ldl", | 548 "-ldl", |
548 ] | 549 ] |
OLD | NEW |