• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# this file is included by various Makefiles and defines the set of sources used by our version of LibPng
2#
3LIBPNG_SOURCES := png.c pngerror.c pngget.c pngmem.c pngpread.c pngread.c \
4                  pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c pngvcrd.c pngwio.c \
5                  pngwrite.c pngwtran.c pngwutil.c
6
7# Enable MMX code path for x86, except on Darwin where it fails
8PNG_MMX := no
9ifeq ($(HOST_ARCH),x86)
10ifneq ($(BUILD_DEBUG_EMULATOR),true)
11    PNG_MMX := yes
12endif
13endif
14ifeq ($(HOST_OS),darwin)
15    PNG_MMX := no
16endif
17
18ifeq ($(PNG_MMX),yes)
19    LIBPNG_SOURCES += pnggccrd.c
20else
21    LIBPNG_CFLAGS += -DPNG_NO_MMX_CODE
22endif
23
24LIBPNG_SOURCES := $(LIBPNG_SOURCES:%=$(LIBPNG_DIR)/%)
25