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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
72 BASE_SRCS_ALL = struct( | 72 BASE_SRCS_ALL = struct( |
73 include = [ | 73 include = [ |
74 "src/**/*.h", | 74 "src/**/*.h", |
75 "src/**/*.cpp", | 75 "src/**/*.cpp", |
76 | 76 |
77 # Third Party | 77 # Third Party |
78 "third_party/etc1/*.cpp", | 78 "third_party/etc1/*.cpp", |
79 "third_party/etc1/*.h", | 79 "third_party/etc1/*.h", |
80 "third_party/ktx/*.cpp", | 80 "third_party/ktx/*.cpp", |
81 "third_party/ktx/*.h", | 81 "third_party/ktx/*.h", |
82 | |
83 "third_party/libpng/*.c", | |
dogben
2016/06/09 12:27:18
These files are not synced to Google3. I will repl
dogben
2016/06/09 12:35:20
I responded in internal cl/124383007.
scroggo
2016/06/21 20:09:42
I think that is resolved by that CL and cl/1254658
| |
84 "third_party/libpng/*.h", | |
82 ], | 85 ], |
83 exclude = PRIVATE_HDRS_LIST + [ | 86 exclude = PRIVATE_HDRS_LIST + [ |
84 # Exclude platform-dependent files. | 87 # Exclude platform-dependent files. |
85 "src/android/*", | 88 "src/android/*", |
86 "src/codec/*", | 89 "src/codec/*", |
87 "src/device/xps/*", # Windows-only. Move to ports? | 90 "src/device/xps/*", # Windows-only. Move to ports? |
88 "src/doc/*_XPS.cpp", # Windows-only. Move to ports? | 91 "src/doc/*_XPS.cpp", # Windows-only. Move to ports? |
89 "src/fonts/SkFontMgr_fontconfig.cpp", | 92 "src/fonts/SkFontMgr_fontconfig.cpp", |
90 "src/gpu/gl/android/*", | 93 "src/gpu/gl/android/*", |
91 "src/gpu/gl/egl/*", | 94 "src/gpu/gl/egl/*", |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
376 "src/gpu", | 379 "src/gpu", |
377 "src/image", | 380 "src/image", |
378 "src/lazy", | 381 "src/lazy", |
379 "src/opts", | 382 "src/opts", |
380 "src/ports", | 383 "src/ports", |
381 "src/pdf", | 384 "src/pdf", |
382 "src/sfnt", | 385 "src/sfnt", |
383 "src/utils", | 386 "src/utils", |
384 "third_party/etc1", | 387 "third_party/etc1", |
385 "third_party/ktx", | 388 "third_party/ktx", |
389 "third_party/libpng", | |
386 ] | 390 ] |
387 | 391 |
388 ################################################################################ | 392 ################################################################################ |
389 ## DM_SRCS | 393 ## DM_SRCS |
390 ################################################################################ | 394 ################################################################################ |
391 | 395 |
392 DM_SRCS_ALL = struct( | 396 DM_SRCS_ALL = struct( |
393 include = [ | 397 include = [ |
394 "dm/*.cpp", | 398 "dm/*.cpp", |
395 "dm/*.h", | 399 "dm/*.h", |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
540 | 544 |
541 COPTS_IOS = [] | 545 COPTS_IOS = [] |
542 | 546 |
543 COPTS_ALL = [] | 547 COPTS_ALL = [] |
544 | 548 |
545 ################################################################################ | 549 ################################################################################ |
546 ## DEFINES | 550 ## DEFINES |
547 ################################################################################ | 551 ################################################################################ |
548 | 552 |
549 DEFINES_UNIX = [ | 553 DEFINES_UNIX = [ |
550 "PNG_SKIP_SETJMP_CHECK", | |
551 "SK_BUILD_FOR_UNIX", | 554 "SK_BUILD_FOR_UNIX", |
552 "SK_SAMPLES_FOR_X", | 555 "SK_SAMPLES_FOR_X", |
553 "SK_SFNTLY_SUBSETTER", | 556 "SK_SFNTLY_SUBSETTER", |
554 "SK_CODEC_DECODES_RAW", | 557 "SK_CODEC_DECODES_RAW", |
555 "SK_HAS_GIF_LIBRARY", | 558 "SK_HAS_GIF_LIBRARY", |
556 "SK_HAS_JPEG_LIBRARY", | 559 "SK_HAS_JPEG_LIBRARY", |
557 "SK_HAS_PNG_LIBRARY", | |
558 "SK_HAS_WEBP_LIBRARY", | 560 "SK_HAS_WEBP_LIBRARY", |
559 ] | 561 ] |
560 | 562 |
561 DEFINES_ANDROID = [ | 563 DEFINES_ANDROID = [ |
562 "SK_BUILD_FOR_ANDROID", | 564 "SK_BUILD_FOR_ANDROID", |
563 "SK_CODEC_DECODES_RAW", | 565 "SK_CODEC_DECODES_RAW", |
564 "SK_HAS_GIF_LIBRARY", | 566 "SK_HAS_GIF_LIBRARY", |
565 "SK_HAS_JPEG_LIBRARY", | 567 "SK_HAS_JPEG_LIBRARY", |
566 "SK_HAS_PNG_LIBRARY", | |
567 "SK_HAS_WEBP_LIBRARY", | 568 "SK_HAS_WEBP_LIBRARY", |
568 ] | 569 ] |
569 | 570 |
570 DEFINES_IOS = [ | 571 DEFINES_IOS = [ |
571 "SK_BUILD_FOR_IOS", | 572 "SK_BUILD_FOR_IOS", |
572 "SK_BUILD_NO_OPTS", | 573 "SK_BUILD_NO_OPTS", |
573 "SK_IGNORE_ETC1_SUPPORT", | 574 "SK_IGNORE_ETC1_SUPPORT", |
574 "SKNX_NO_SIMD", | 575 "SKNX_NO_SIMD", |
575 ] | 576 ] |
576 | 577 |
577 DEFINES_ALL = [ | 578 DEFINES_ALL = [ |
578 # Chrome DEFINES. | 579 # Chrome DEFINES. |
579 "SK_USE_FLOATBITS", | 580 "SK_USE_FLOATBITS", |
580 "SK_USE_FREETYPE_EMBOLDEN", | 581 "SK_USE_FREETYPE_EMBOLDEN", |
581 # Turn on a few Google3-specific build fixes. | 582 # Turn on a few Google3-specific build fixes. |
582 "GOOGLE3", | 583 "GOOGLE3", |
584 # Build our version of libpng | |
dogben
2016/06/09 12:38:02
I don't know if these defines will work for the iO
scroggo
2016/06/21 20:09:42
I'll leave PNG out of iOS for now, so it will be t
| |
585 "SK_HAS_PNG_LIBRARY", | |
586 "PNG_ARM_NEON_OPT=0", | |
587 "PNG_INTEL_SSE_OPT=0", | |
588 "PNG_ARM_NEON_IMPLEMENTATION=0", | |
583 # Staging flags for API changes | 589 # Staging flags for API changes |
584 "SK_SUPPORT_LEGACY_COLORFILTER_PTR", | 590 "SK_SUPPORT_LEGACY_COLORFILTER_PTR", |
585 "SK_SUPPORT_LEGACY_CREATESHADER_PTR", | 591 "SK_SUPPORT_LEGACY_CREATESHADER_PTR", |
586 "SK_SUPPORT_LEGACY_IMAGEFILTER_PTR", | 592 "SK_SUPPORT_LEGACY_IMAGEFILTER_PTR", |
587 "SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR", | 593 "SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR", |
588 "SK_SUPPORT_LEGACY_NEW_SURFACE_API", | 594 "SK_SUPPORT_LEGACY_NEW_SURFACE_API", |
589 "SK_SUPPORT_LEGACY_PATHEFFECT_PTR", | 595 "SK_SUPPORT_LEGACY_PATHEFFECT_PTR", |
590 "SK_SUPPORT_LEGACY_PICTURE_PTR", | 596 "SK_SUPPORT_LEGACY_PICTURE_PTR", |
591 "SK_SUPPORT_LEGACY_MASKFILTER_PTR", | 597 "SK_SUPPORT_LEGACY_MASKFILTER_PTR", |
592 "SK_SUPPORT_LEGACY_IMAGEFACTORY", | 598 "SK_SUPPORT_LEGACY_IMAGEFACTORY", |
593 "SK_SUPPORT_LEGACY_XFERMODE_PTR", | 599 "SK_SUPPORT_LEGACY_XFERMODE_PTR", |
594 "SK_SUPPORT_LEGACY_TYPEFACE_PTR", | 600 "SK_SUPPORT_LEGACY_TYPEFACE_PTR", |
595 ] | 601 ] |
596 | 602 |
597 ################################################################################ | 603 ################################################################################ |
598 ## LINKOPTS | 604 ## LINKOPTS |
599 ################################################################################ | 605 ################################################################################ |
600 | 606 |
601 LINKOPTS_UNIX = [] | 607 LINKOPTS_UNIX = [] |
602 | 608 |
603 LINKOPTS_ANDROID = [ | 609 LINKOPTS_ANDROID = [ |
604 "-lEGL", | 610 "-lEGL", |
605 ] | 611 ] |
606 | 612 |
607 LINKOPTS_IOS = [] | 613 LINKOPTS_IOS = [] |
608 | 614 |
609 LINKOPTS_ALL = [ | 615 LINKOPTS_ALL = [ |
610 "-ldl", | 616 "-ldl", |
611 ] | 617 ] |
OLD | NEW |