xref: /aosp_15_r20/external/libpng/contrib/conftest/s_read.dfa (revision a67afe4df73cf47866eedc69947994b8ff839aba)
1*a67afe4dSAndroid Build Coastguard Worker# s_read.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, 2013
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 simplified read support (only).  This builds a minimal
12*a67afe4dSAndroid Build Coastguard Worker# libpng able to read all PNG formats and convert them into a small number of
13*a67afe4dSAndroid Build Coastguard Worker# well understood memory formats.
14*a67afe4dSAndroid Build Coastguard Worker#
15*a67afe4dSAndroid Build Coastguard Worker
16*a67afe4dSAndroid Build Coastguard Workereverything = off
17*a67afe4dSAndroid Build Coastguard Worker
18*a67afe4dSAndroid Build Coastguard Workeroption SIMPLIFIED_READ on
19*a67afe4dSAndroid Build Coastguard Worker
20*a67afe4dSAndroid Build Coastguard Worker# It isn't necessary to chose fixed or floating point for the APIs because the
21*a67afe4dSAndroid Build Coastguard Worker# simplified API doesn't need fixed or floating point numbers.  It is necessary
22*a67afe4dSAndroid Build Coastguard Worker# to chose an internal math implementation.  The default (because of 'everything
23*a67afe4dSAndroid Build Coastguard Worker# = off') is fixed point - turn the floating point implementation on if you have
24*a67afe4dSAndroid Build Coastguard Worker# hardware floating point or prefer your software floating point implementation.
25*a67afe4dSAndroid Build Coastguard Workeroption FLOATING_ARITHMETIC on
26*a67afe4dSAndroid Build Coastguard Worker
27*a67afe4dSAndroid Build Coastguard Worker# This is not strictly necessary, but without it the message strings in the API
28*a67afe4dSAndroid Build Coastguard Worker# will not be filled in
29*a67afe4dSAndroid Build Coastguard Workeroption ERROR_TEXT on
30*a67afe4dSAndroid Build Coastguard Worker
31*a67afe4dSAndroid Build Coastguard Worker# Switching these options on enables the 'AFIRST' and 'BGR' formats - you don't
32*a67afe4dSAndroid Build Coastguard Worker# need this if you don't use them, they just allow the in-memory layout to be
33*a67afe4dSAndroid Build Coastguard Worker# changed to match common hardware formats.
34*a67afe4dSAndroid Build Coastguard Workeroption SIMPLIFIED_READ_AFIRST on
35*a67afe4dSAndroid Build Coastguard Workeroption SIMPLIFIED_READ_BGR on
36