diff options
author | Sven Weidauer <sven.weidauer@gmail.com> | 2011-03-07 16:47:39 +0000 |
---|---|---|
committer | Sven Weidauer <sven.weidauer@gmail.com> | 2011-03-07 16:47:39 +0000 |
commit | 721b73bc557e8e400ed5b02f23531064650ec105 (patch) | |
tree | c0680ab6ed021a351326926ada6c541a0aadbbad | |
parent | fc6125f79adfa07dcd1316c70618a5baebc8da12 (diff) | |
download | netsurf-721b73bc557e8e400ed5b02f23531064650ec105.tar.gz netsurf-721b73bc557e8e400ed5b02f23531064650ec105.tar.bz2 |
Using feature_enabled in Makefile.target to see if Apple ImageIO should be used.
svn path=/trunk/netsurf/; revision=11931
-rw-r--r-- | Makefile.defaults | 3 | ||||
-rw-r--r-- | cocoa/Makefile.target | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.defaults b/Makefile.defaults index e84d2935d..daf30e2ba 100644 --- a/Makefile.defaults +++ b/Makefile.defaults @@ -379,9 +379,10 @@ ifeq ($(TARGET),cocoa) NETSURF_USE_MNG := NO NETSURF_USE_JPEG := NO + NETSURF_USE_IMAGEIO := YES # Optimisation levels - CFLAGS += -O2 -Wuninitialized -DWITH_APPLE_IMAGE + CFLAGS += -O2 -Wuninitialized endif diff --git a/cocoa/Makefile.target b/cocoa/Makefile.target index ee79b9c92..f45133438 100644 --- a/cocoa/Makefile.target +++ b/cocoa/Makefile.target @@ -43,6 +43,7 @@ $(eval $(call feature_enabled,GIF,-DWITH_GIF,-lnsgif,GIF (libnsgif))) $(eval $(call feature_enabled,PNG,-DWITH_PNG,-lpng,PNG (libpng) )) $(eval $(call feature_enabled,NSSVG,-DWITH_NS_SVG,-lsvgtiny,SVG (libsvgtiny))) + $(eval $(call feature_enabled,IMAGEIO,-DWITH_APPLE_IMAGE,,Apple ImageIO )) ifneq ($(UNIVERSAL),) UNIVERSAL_FLAGS := $(foreach arch,$(UNIVERSAL),-arch $(arch) ) |