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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 DEFINES_UNIX = [ | 494 DEFINES_UNIX = [ |
495 "PNG_SKIP_SETJMP_CHECK", | 495 "PNG_SKIP_SETJMP_CHECK", |
496 "SK_BUILD_FOR_UNIX", | 496 "SK_BUILD_FOR_UNIX", |
497 "SK_SAMPLES_FOR_X", | 497 "SK_SAMPLES_FOR_X", |
498 "SK_SFNTLY_SUBSETTER", | 498 "SK_SFNTLY_SUBSETTER", |
499 "SK_CODEC_DECODES_GIF", | 499 "SK_CODEC_DECODES_GIF", |
500 "SK_CODEC_DECODES_JPEG", | 500 "SK_CODEC_DECODES_JPEG", |
501 "SK_CODEC_DECODES_PNG", | 501 "SK_CODEC_DECODES_PNG", |
502 "SK_CODEC_DECODES_RAW", | 502 "SK_CODEC_DECODES_RAW", |
503 "SK_CODEC_DECODES_WEBP", | 503 "SK_CODEC_DECODES_WEBP", |
| 504 "SK_SUPPORT_LEGACY_CREATESHADER_PTR", |
504 ] | 505 ] |
505 | 506 |
506 DEFINES_ANDROID = [ | 507 DEFINES_ANDROID = [ |
507 "SK_BUILD_FOR_ANDROID", | 508 "SK_BUILD_FOR_ANDROID", |
508 "SK_CODEC_DECODES_GIF", | 509 "SK_CODEC_DECODES_GIF", |
509 "SK_CODEC_DECODES_JPEG", | 510 "SK_CODEC_DECODES_JPEG", |
510 "SK_CODEC_DECODES_PNG", | 511 "SK_CODEC_DECODES_PNG", |
511 "SK_CODEC_DECODES_RAW", | 512 "SK_CODEC_DECODES_RAW", |
512 "SK_CODEC_DECODES_WEBP", | 513 "SK_CODEC_DECODES_WEBP", |
513 ] | 514 ] |
514 | 515 |
515 DEFINES_IOS = [ | 516 DEFINES_IOS = [ |
516 "SK_BUILD_FOR_IOS", | 517 "SK_BUILD_FOR_IOS", |
517 "SK_IGNORE_ETC1_SUPPORT", | 518 "SK_IGNORE_ETC1_SUPPORT", |
518 "SKNX_NO_SIMD", | 519 "SKNX_NO_SIMD", |
519 ] | 520 ] |
520 | 521 |
521 DEFINES_ALL = [ | 522 DEFINES_ALL = [ |
522 # Chrome DEFINES. | 523 # Chrome DEFINES. |
523 "SK_USE_FLOATBITS", | 524 "SK_USE_FLOATBITS", |
524 "SK_USE_FREETYPE_EMBOLDEN", | 525 "SK_USE_FREETYPE_EMBOLDEN", |
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 "SK_SUPPORT_LEGACY_COLORFILTER_PTR", | |
531 "SK_SUPPORT_LEGACY_CREATESHADER_PTR", | |
532 ] | 530 ] |
533 | 531 |
534 ################################################################################ | 532 ################################################################################ |
535 ## LINKOPTS | 533 ## LINKOPTS |
536 ################################################################################ | 534 ################################################################################ |
537 | 535 |
538 LINKOPTS_UNIX = [] | 536 LINKOPTS_UNIX = [] |
539 | 537 |
540 LINKOPTS_ANDROID = [ | 538 LINKOPTS_ANDROID = [ |
541 "-lEGL", | 539 "-lEGL", |
542 ] | 540 ] |
543 | 541 |
544 LINKOPTS_IOS = [] | 542 LINKOPTS_IOS = [] |
545 | 543 |
546 LINKOPTS_ALL = [ | 544 LINKOPTS_ALL = [ |
547 "-ldl", | 545 "-ldl", |
548 ] | 546 ] |
OLD | NEW |