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