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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 | 472 |
473 ################################################################################ | 473 ################################################################################ |
474 ## DEFINES | 474 ## DEFINES |
475 ################################################################################ | 475 ################################################################################ |
476 | 476 |
477 DEFINES_UNIX = [ | 477 DEFINES_UNIX = [ |
478 "PNG_SKIP_SETJMP_CHECK", | 478 "PNG_SKIP_SETJMP_CHECK", |
479 "SK_BUILD_FOR_UNIX", | 479 "SK_BUILD_FOR_UNIX", |
480 "SK_SAMPLES_FOR_X", | 480 "SK_SAMPLES_FOR_X", |
481 "SK_SFNTLY_SUBSETTER", | 481 "SK_SFNTLY_SUBSETTER", |
| 482 "SK_CODEC_DECODES_GIF", |
| 483 "SK_CODEC_DECODES_JPEG", |
| 484 "SK_CODEC_DECODES_PNG", |
482 "SK_CODEC_DECODES_RAW", | 485 "SK_CODEC_DECODES_RAW", |
| 486 "SK_CODEC_DECODES_WEBP", |
483 ] | 487 ] |
484 | 488 |
485 DEFINES_ANDROID = [ | 489 DEFINES_ANDROID = [ |
486 "SK_BUILD_FOR_ANDROID", | 490 "SK_BUILD_FOR_ANDROID", |
487 # TODO(benjaminwagner): Try to get png library updated? | 491 "SK_CODEC_DECODES_GIF", |
488 "SK_PNG_NO_INDEX_SUPPORTED", | 492 "SK_CODEC_DECODES_JPEG", |
| 493 "SK_CODEC_DECODES_PNG", |
489 "SK_CODEC_DECODES_RAW", | 494 "SK_CODEC_DECODES_RAW", |
| 495 "SK_CODEC_DECODES_WEBP", |
490 ] | 496 ] |
491 | 497 |
492 DEFINES_IOS = [ | 498 DEFINES_IOS = [ |
493 "SK_BUILD_FOR_IOS", | 499 "SK_BUILD_FOR_IOS", |
494 "SK_IGNORE_ETC1_SUPPORT", | 500 "SK_IGNORE_ETC1_SUPPORT", |
495 "SKNX_NO_SIMD", | 501 "SKNX_NO_SIMD", |
496 ] | 502 ] |
497 | 503 |
498 DEFINES_ALL = [ | 504 DEFINES_ALL = [ |
499 # Chrome DEFINES. | 505 # Chrome DEFINES. |
(...skipping 11 matching lines...) Expand all Loading... |
511 | 517 |
512 LINKOPTS_ANDROID = [ | 518 LINKOPTS_ANDROID = [ |
513 "-lEGL", | 519 "-lEGL", |
514 ] | 520 ] |
515 | 521 |
516 LINKOPTS_IOS = [] | 522 LINKOPTS_IOS = [] |
517 | 523 |
518 LINKOPTS_ALL = [ | 524 LINKOPTS_ALL = [ |
519 "-ldl", | 525 "-ldl", |
520 ] | 526 ] |
OLD | NEW |