all repos — mgba @ 9de8f084ba55460b02d300c1dd8b8e6c56f691d5

mGBA Game Boy Advance Emulator

src/third-party/libpng/contrib/conftest/pngcp.dfa (view raw)

 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#
14everything = 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.
20option 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.
25option PNGCP_TIMING on
26
27# Options to turn on png_read_png and png_write_png:
28option INFO_IMAGE on
29option SEQUENTIAL_READ on
30option EASY_ACCESS on
31option WRITE on
32option WRITE_16BIT on
33option 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
37option UNKNOWN_CHUNKS on
38option SET_UNKNOWN_CHUNKS on
39option HANDLE_AS_UNKNOWN on
40option SAVE_UNKNOWN_CHUNKS on
41option WRITE_UNKNOWN_CHUNKS on
42
43# pngcp needs this to handle palette files with invalid indices:
44option CHECK_FOR_INVALID_INDEX on
45option 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.
49option TEXT on
50
51# this is used to turn off limits:
52option USER_LIMITS on
53option SET_USER_LIMITS on
54
55# these are are just required for specific customizations
56option WRITE_CUSTOMIZE_ZTXT_COMPRESSION on
57option WRITE_CUSTOMIZE_COMPRESSION on