2 # Build time configuration of libpng
5 # Copyright: (c) John Bowler, 2016
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:
11 # Build libpng with support for pngcp. This means just png_read_png,
12 # png_write_png and small number of configuration settings.
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.
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
27 # Options to turn on png_read_png and png_write_png:
29 option SEQUENTIAL_READ on
33 option WRITE_FILTER on
35 # pngcp needs this to preserve unknown chunks, switching all these on means that
36 # pngcp can work without explicit known chunk reading support
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
43 # pngcp needs this to handle palette files with invalid indices:
44 option CHECK_FOR_INVALID_INDEX on
45 option GET_PALETTE_MAX on
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.
51 # this is used to turn off limits:
53 option SET_USER_LIMITS on
55 # these are just required for specific customizations
56 option WRITE_CUSTOMIZE_ZTXT_COMPRESSION on
57 option WRITE_CUSTOMIZE_COMPRESSION on