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@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
|
|
|
OSDIR = os2
|
|
|
|
else
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
|
|
|
OSDIR = win
|
|
|
|
else
|
2008-02-26 18:03:08 -08:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
2007-03-22 10:30:00 -07:00
|
|
|
OSDIR = mac
|
|
|
|
else
|
2010-06-14 12:04:16 -07:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),android)
|
|
|
|
OSDIR = android
|
|
|
|
else
|
2011-11-10 16:17:46 -08:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
|
|
|
|
OSDIR = gonk
|
|
|
|
else
|
2007-03-22 10:30:00 -07:00
|
|
|
OSDIR = unix
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2011-11-10 16:17:46 -08:00
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
VPATH := $(srcdir) $(srcdir)/$(OSDIR)
|
|
|
|
|
|
|
|
LIBRARY_NAME = exthandler_s
|
|
|
|
LIBXUL_LIBRARY = 1
|
2013-01-24 15:32:39 -08:00
|
|
|
FAIL_ON_WARNINGS = 1
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
|
2008-02-26 18:03:08 -08:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2008-02-26 18:03:08 -08:00
|
|
|
CMMSRCS = nsOSHelperAppService.mm \
|
|
|
|
nsMIMEInfoMac.mm \
|
|
|
|
nsLocalHandlerAppMac.mm \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
2008-02-26 18:03:08 -08:00
|
|
|
else
|
|
|
|
OSHELPER = nsOSHelperAppService.cpp
|
2007-03-22 10:30:00 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_INCLUDES = -I$(srcdir)
|
|
|
|
|
2010-08-17 20:19:24 -07:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/dom/base \
|
|
|
|
-I$(topsrcdir)/dom/ipc \
|
|
|
|
-I$(topsrcdir)/content/base/src \
|
|
|
|
-I$(topsrcdir)/content/events/src \
|
|
|
|
-I$(topsrcdir)/netwerk/base/src \
|
|
|
|
-I$(topsrcdir)/netwerk/protocol/http
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
|
|
|
|
OSHELPER += nsGNOMERegistry.cpp
|
2007-07-25 21:24:25 -07:00
|
|
|
OSHELPER += nsMIMEInfoUnix.cpp
|
2007-03-22 10:30:00 -07:00
|
|
|
endif
|
|
|
|
|
2010-06-14 12:04:16 -07:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),android)
|
|
|
|
OSHELPER += nsMIMEInfoAndroid.cpp
|
|
|
|
OSHELPER += nsAndroidHandlerApp.cpp
|
2010-09-30 08:37:36 -07:00
|
|
|
OSHELPER += nsExternalSharingAppService.cpp
|
2010-11-23 15:40:46 -08:00
|
|
|
OSHELPER += nsExternalURLHandlerService.cpp
|
2010-06-14 12:04:16 -07:00
|
|
|
endif
|
|
|
|
|
2008-04-19 06:27:21 -07:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),qt)
|
|
|
|
OSHELPER += nsGNOMERegistry.cpp
|
|
|
|
OSHELPER += nsMIMEInfoUnix.cpp
|
|
|
|
endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
|
|
|
OSHELPER += nsMIMEInfoWin.cpp
|
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/win
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
|
|
|
OSHELPER += nsMIMEInfoOS2.cpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
CPPSRCS = \
|
|
|
|
nsExternalHelperAppService.cpp \
|
|
|
|
nsExternalProtocolHandler.cpp \
|
|
|
|
nsMIMEInfoImpl.cpp \
|
2007-08-14 09:47:41 -07:00
|
|
|
nsLocalHandlerApp.cpp \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(OSHELPER) \
|
2011-04-02 19:14:00 -07:00
|
|
|
ExternalHelperAppChild.cpp \
|
|
|
|
ExternalHelperAppParent.cpp \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2008-07-25 09:36:07 -07:00
|
|
|
ifdef MOZ_ENABLE_DBUS
|
|
|
|
CPPSRCS += nsDBusHandlerApp.cpp
|
2010-04-24 00:39:53 -07:00
|
|
|
LOCAL_INCLUDES += $(TK_CFLAGS) $(MOZ_DBUS_CFLAGS)
|
2008-07-25 09:36:07 -07:00
|
|
|
endif
|
|
|
|
|
2010-10-18 09:46:42 -07:00
|
|
|
ifdef MOZ_ENABLE_MEEGOTOUCHSHARE
|
|
|
|
OSHELPER += nsMeegoExternalSharingAppService.cpp
|
|
|
|
LOCAL_INCLUDES += $(MOZ_PLATFORM_MAEMO_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
2010-07-30 12:46:20 -07:00
|
|
|
ifeq ($(MOZ_PLATFORM_MAEMO),5)
|
2009-03-30 11:10:26 -07:00
|
|
|
ifdef MOZ_ENABLE_GNOMEVFS
|
|
|
|
LOCAL_INCLUDES += $(MOZ_GNOMEVFS_CFLAGS)
|
|
|
|
endif
|
2009-08-25 11:58:11 -07:00
|
|
|
ifdef MOZ_ENABLE_GIO
|
|
|
|
LOCAL_INCLUDES += $(MOZ_GIO_CFLAGS)
|
|
|
|
endif
|
2009-03-30 11:10:26 -07:00
|
|
|
endif
|
|
|
|
|
2011-02-02 22:31:36 -08:00
|
|
|
ifdef MOZ_ENABLE_CONTENTACTION
|
2010-07-30 12:46:20 -07:00
|
|
|
CPPSRCS += nsContentHandlerApp.cpp
|
|
|
|
endif
|
|
|
|
|
2007-08-14 09:47:41 -07:00
|
|
|
EXTRA_COMPONENTS = \
|
|
|
|
nsHandlerService.js \
|
2010-06-22 09:59:15 -07:00
|
|
|
nsHandlerService.manifest \
|
2007-08-14 09:47:41 -07:00
|
|
|
nsWebHandlerApp.js \
|
2010-06-22 09:59:15 -07:00
|
|
|
nsWebHandlerApp.manifest \
|
2007-08-14 09:47:41 -07:00
|
|
|
$(NULL)
|
2007-07-21 00:18:21 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
# we don't want the shared lib, but we want to force the creation of a static lib.
|
|
|
|
FORCE_STATIC_LIB = 1
|
|
|
|
SRCS_IN_OBJDIR = 1
|
2010-08-10 10:14:45 -07:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
2007-03-22 10:30:00 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2010-04-28 16:56:44 -07:00
|
|
|
ifneq (,$(filter qt gtk2, $(MOZ_WIDGET_TOOLKIT)))
|
2010-04-28 13:33:28 -07:00
|
|
|
CXXFLAGS += $(TK_CFLAGS) $(MOZ_DBUS_GLIB_CFLAGS)
|
2007-03-22 10:30:00 -07:00
|
|
|
endif
|