2
# This Source Code Form is subject to the terms of the Mozilla Public
3
# License, v. 2.0. If a copy of the MPL was not distributed with this
4
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
topsrcdir = @top_srcdir@
11
include $(DEPTH)/config/autoconf.mk
14
LIBRARY_NAME = imgdecoders_s
16
MODULE_NAME = nsDecodersModule
20
CPPSRCS = nsPNGDecoder.cpp nsJPEGDecoder.cpp nsGIFDecoder2.cpp \
21
nsBMPDecoder.cpp nsICODecoder.cpp nsIconDecoder.cpp \
27
# Decoders need RasterImage.h
28
LOCAL_INCLUDES += -I$(topsrcdir)/image/src/
30
# PNG read/write stuff
31
DEFINES += -DMOZ_PNG_WRITE \
36
# The Icon Channel stuff really shouldn't live in decoders/icon, but we'll
37
# fix that another time.
38
ifneq (,$(filter gtk2,$(MOZ_WIDGET_TOOLKIT)))
41
ifneq (,$(filter qt,$(MOZ_WIDGET_TOOLKIT)))
44
ifeq ($(OS_ARCH),WINNT)
50
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
53
ifeq (android,$(MOZ_WIDGET_TOOLKIT))
54
DIRS = icon/android icon
58
include $(topsrcdir)/config/rules.mk