1b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari# simple.dfa
2b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari#  Build time configuration of libpng
3b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari#
4b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari# Author: John Bowler
5b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari# Copyright: (c) John Bowler, 2013
6b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari# Usage rights:
7b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari#  To the extent possible under law, the author has waived all copyright and
8b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari#  related or neighboring rights to this work.  This work is published from:
9b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari#  United States.
10b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari#
11b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari# Build libpng with just the simplified APIs (read and write).
12b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari#
13b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari
14b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurarieverything = off
15b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari
16b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurarioption SIMPLIFIED_WRITE on
17b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurarioption SIMPLIFIED_READ on
18b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari
19b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari# It isn't necessary to chose fixed or floating point for the APIs because the
20b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari# simplified API doesn't need fixed or floating point numbers.  It is necessary
21b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari# to chose an internal math implementation.  The default (because of 'everything
22b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari# = off') is fixed point - turn the floating point implementation on if you have
23b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari# hardware floating point or prefer your software floating point implementation.
24b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurarioption FLOATING_ARITHMETIC on
25b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari
26b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari# This is not strictly necessary, but without it the message strings in the API
27b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari# will not be filled in
28b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurarioption ERROR_TEXT on
29b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari
30b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari# Switching these options on enables the 'AFIRST' and 'BGR' formats - you don't
31b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari# need this if you don't use them, they just allow the in-memory layout to be
32b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurari# changed to match common hardware formats.
33b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurarioption SIMPLIFIED_READ_AFIRST on
34b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurarioption SIMPLIFIED_READ_BGR on
35b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurarioption SIMPLIFIED_WRITE_AFIRST on
36b478e66e7c2621eef5f465e4629ce642db00716bSireesh Tripurarioption SIMPLIFIED_WRITE_BGR on
37