Alex Naidis | 7a055fd | 2016-10-01 12:23:07 +0200 | [diff] [blame] | 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 | |
| 16 | # This option is specific to this configuration; it adds a #define to the |
| 17 | # generated pnglibconf.h which turns on the (not portable) timing option for |
| 18 | # pngcp. Note that any option is automatically preceded by PNG_; there is no |
| 19 | # way round this and this is deliberate. |
| 20 | option PNGCP_TIMING |
| 21 | |
| 22 | # Because of the everything off above the option must also be turned on. This |
| 23 | # may not be done in one step because it is safer and avoids mis-spelled options |
| 24 | # in user .dfa files to error out if an unrecognized option is turned on. |
| 25 | option PNGCP_TIMING on |
| 26 | |
| 27 | # Options to turn on png_read_png and png_write_png: |
| 28 | option INFO_IMAGE on |
| 29 | option SEQUENTIAL_READ on |
| 30 | option EASY_ACCESS on |
| 31 | option WRITE on |
| 32 | option WRITE_16BIT on |
| 33 | option WRITE_FILTER on |
| 34 | |
| 35 | # pngcp needs this to preserve unknown chunks, switching all these on means that |
| 36 | # pngcp can work without explicit known chunk reading suppport |
| 37 | option UNKNOWN_CHUNKS on |
| 38 | option SET_UNKNOWN_CHUNKS on |
| 39 | option HANDLE_AS_UNKNOWN on |
| 40 | option SAVE_UNKNOWN_CHUNKS on |
| 41 | option WRITE_UNKNOWN_CHUNKS on |
| 42 | |
| 43 | # pngcp needs this to handle palette files with invalid indices: |
| 44 | option CHECK_FOR_INVALID_INDEX on |
| 45 | option GET_PALETTE_MAX on |
| 46 | |
| 47 | # Pre-libpng 1.7 pngcp has to stash text chunks manually, post 1.7 without this |
| 48 | # text chunks should be handled as unknown ok. |
| 49 | option TEXT on |
| 50 | |
| 51 | # this is used to turn off limits: |
| 52 | option USER_LIMITS on |
| 53 | option SET_USER_LIMITS on |
| 54 | |
| 55 | # these are are just required for specific customizations |
| 56 | option WRITE_CUSTOMIZE_ZTXT_COMPRESSION on |
| 57 | option WRITE_CUSTOMIZE_COMPRESSION on |