2007-03-22 10:30:00 -07:00
|
|
|
#
|
2012-05-21 04:12:37 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2007-03-22 10:30:00 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = imgicon
|
|
|
|
LIBRARY_NAME = imgicon
|
|
|
|
IS_COMPONENT = 1
|
|
|
|
MODULE_NAME = nsIconDecoderModule
|
2010-03-20 09:14:15 -07:00
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
EXPORT_LIBRARY = 1
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2007-12-07 16:08:09 -08:00
|
|
|
ifneq (,$(filter gtk2,$(MOZ_WIDGET_TOOLKIT)))
|
2007-03-22 10:30:00 -07:00
|
|
|
PLATFORM = gtk
|
|
|
|
endif
|
|
|
|
|
2008-09-20 01:03:23 -07:00
|
|
|
ifneq (,$(filter qt,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
PLATFORM = qt
|
|
|
|
endif
|
|
|
|
|
2011-05-05 14:14:27 -07:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2007-03-22 10:30:00 -07:00
|
|
|
PLATFORM = win
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),OS2)
|
|
|
|
PLATFORM = os2
|
|
|
|
endif
|
|
|
|
|
2009-04-20 07:52:03 -07:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2007-03-22 10:30:00 -07:00
|
|
|
PLATFORM = mac
|
|
|
|
endif
|
|
|
|
|
2011-06-13 14:02:13 -07:00
|
|
|
ifeq ($(OS_TARGET),Android)
|
|
|
|
PLATFORM = android
|
|
|
|
endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
CPPSRCS = \
|
|
|
|
nsIconURI.cpp \
|
|
|
|
nsIconModule.cpp \
|
|
|
|
nsIconProtocolHandler.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
XPIDLSRCS = nsIIconURI.idl
|
|
|
|
|
|
|
|
SHARED_LIBRARY_LIBS = $(PLATFORM)/$(LIB_PREFIX)imgicon$(PLATFORM)_s.$(LIB_SUFFIX)
|
|
|
|
|
|
|
|
LOCAL_INCLUDES = -I$(srcdir)/$(PLATFORM)
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|