pngcp.dfa 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # pngcp.dfa
  2. # Build time configuration of libpng
  3. #
  4. # Author: John Bowler
  5. # Copyright: (c) John Bowler, 2016
  6. # Usage rights:
  7. # To the extent possible under law, the author has waived all copyright and
  8. # related or neighboring rights to this work. This work is published from:
  9. # United States.
  10. #
  11. # Build libpng with support for pngcp. This means just png_read_png,
  12. # png_write_png and small number of configuration settings.
  13. #
  14. everything = off
  15. # This option is specific to this configuration; it adds a #define to the
  16. # generated pnglibconf.h which turns on the (not portable) timing option for
  17. # pngcp. Note that any option is automatically preceded by PNG_; there is no
  18. # way round this and this is deliberate.
  19. option PNGCP_TIMING
  20. # Because of the everything off above the option must also be turned on. This
  21. # may not be done in one step because it is safer and avoids mis-spelled options
  22. # in user .dfa files to error out if an unrecognized option is turned on.
  23. option PNGCP_TIMING on
  24. # Options to turn on png_read_png and png_write_png:
  25. option INFO_IMAGE on
  26. option SEQUENTIAL_READ on
  27. option EASY_ACCESS on
  28. option WRITE on
  29. option WRITE_16BIT on
  30. option WRITE_FILTER on
  31. # pngcp needs this to preserve unknown chunks, switching all these on means that
  32. # pngcp can work without explicit known chunk reading support
  33. option UNKNOWN_CHUNKS on
  34. option SET_UNKNOWN_CHUNKS on
  35. option HANDLE_AS_UNKNOWN on
  36. option SAVE_UNKNOWN_CHUNKS on
  37. option WRITE_UNKNOWN_CHUNKS on
  38. # pngcp needs this to handle palette files with invalid indices:
  39. option CHECK_FOR_INVALID_INDEX on
  40. option GET_PALETTE_MAX on
  41. # Pre-libpng 1.7 pngcp has to stash text chunks manually, post 1.7 without this
  42. # text chunks should be handled as unknown ok.
  43. option TEXT on
  44. # this is used to turn off limits:
  45. option USER_LIMITS on
  46. option SET_USER_LIMITS on
  47. # these are just required for specific customizations
  48. option WRITE_CUSTOMIZE_ZTXT_COMPRESSION on
  49. option WRITE_CUSTOMIZE_COMPRESSION on