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