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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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_RAW", | 482 "SK_CODEC_DECODES_RAW", |
483 ] | 483 ] |
484 | 484 |
485 DEFINES_ANDROID = [ | 485 DEFINES_ANDROID = [ |
486 "SK_BUILD_FOR_ANDROID", | 486 "SK_BUILD_FOR_ANDROID", |
487 # TODO(benjaminwagner): Try to get png library updated? | |
msarett
2016/02/16 22:24:22
INDEX_SUPPORTED is not a feature of a newer libpng
| |
488 "SK_PNG_NO_INDEX_SUPPORTED", | |
489 "SK_CODEC_DECODES_RAW", | 487 "SK_CODEC_DECODES_RAW", |
490 ] | 488 ] |
491 | 489 |
492 DEFINES_IOS = [ | 490 DEFINES_IOS = [ |
493 "SK_BUILD_FOR_IOS", | 491 "SK_BUILD_FOR_IOS", |
494 "SK_IGNORE_ETC1_SUPPORT", | 492 "SK_IGNORE_ETC1_SUPPORT", |
495 "SKNX_NO_SIMD", | 493 "SKNX_NO_SIMD", |
496 ] | 494 ] |
497 | 495 |
498 DEFINES_ALL = [ | 496 DEFINES_ALL = [ |
499 # Chrome DEFINES. | 497 # Chrome DEFINES. |
500 "SK_USE_FLOATBITS", | 498 "SK_USE_FLOATBITS", |
501 "SK_USE_FREETYPE_EMBOLDEN", | 499 "SK_USE_FREETYPE_EMBOLDEN", |
502 # Turn on a few Google3-specific build fixes. | 500 # Turn on a few Google3-specific build fixes. |
503 "GOOGLE3", | 501 "GOOGLE3", |
502 # Turn on image codecs | |
dogben
2016/02/16 22:31:16
We have removed all dependencies for the iOS Googl
msarett
2016/02/16 22:33:54
Yes. Though we should be able to keep BMP and WBM
msarett
2016/02/17 14:34:53
Thanks, removing these on iOS.
| |
503 "SK_CODEC_DECODES_BMP", | |
504 "SK_CODEC_DECODES_GIF", | |
505 "SK_CODEC_DECODES_ICO", | |
506 "SK_CODEC_DECODES_JPEG", | |
507 "SK_CODEC_DECODES_PNG", | |
508 "SK_CODEC_DECODES_WBMP", | |
509 "SK_CODEC_DECODES_WEBP", | |
504 ] | 510 ] |
505 | 511 |
506 ################################################################################ | 512 ################################################################################ |
507 ## LINKOPTS | 513 ## LINKOPTS |
508 ################################################################################ | 514 ################################################################################ |
509 | 515 |
510 LINKOPTS_UNIX = [] | 516 LINKOPTS_UNIX = [] |
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 |