2000-06-21 00:43:54 +04:00
|
|
|
#
|
2004-04-17 20:52:41 +04:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
2000-06-21 00:43:54 +04:00
|
|
|
#
|
2004-04-17 20:52:41 +04:00
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
2000-06-21 00:43:54 +04:00
|
|
|
#
|
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
2004-04-17 20:52:41 +04:00
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
2000-06-21 00:43:54 +04:00
|
|
|
#
|
2004-04-17 20:52:41 +04:00
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
2000-06-21 00:43:54 +04:00
|
|
|
#
|
2004-04-17 20:52:41 +04:00
|
|
|
# ***** END LICENSE BLOCK *****
|
2000-06-21 00:43:54 +04:00
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
2000-06-26 02:39:51 +04:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2007-07-21 11:18:21 +04:00
|
|
|
DIRS = \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef ENABLE_TESTS
|
|
|
|
DIRS += tests
|
|
|
|
endif
|
|
|
|
|
2000-06-26 02:39:51 +04:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
2001-12-18 12:14:29 +03:00
|
|
|
OSDIR = os2
|
2000-06-26 02:39:51 +04:00
|
|
|
else
|
2001-12-18 12:14:29 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
|
|
|
OSDIR = win
|
|
|
|
else
|
2008-02-27 05:03:08 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
2002-10-01 05:00:09 +04:00
|
|
|
OSDIR = mac
|
|
|
|
else
|
2002-10-09 05:25:42 +04:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),beos)
|
|
|
|
OSDIR = beos
|
|
|
|
else
|
2010-06-14 23:04:16 +04:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),android)
|
|
|
|
OSDIR = android
|
|
|
|
else
|
2001-12-18 12:14:29 +03:00
|
|
|
OSDIR = unix
|
|
|
|
endif
|
2000-06-26 02:39:51 +04:00
|
|
|
endif
|
2002-10-01 05:00:09 +04:00
|
|
|
endif
|
2002-10-09 05:25:42 +04:00
|
|
|
endif
|
2010-06-14 23:04:16 +04:00
|
|
|
endif
|
2000-06-21 00:43:54 +04:00
|
|
|
|
2002-06-17 21:09:57 +04:00
|
|
|
VPATH := $(srcdir) $(srcdir)/$(OSDIR)
|
2001-12-18 12:14:29 +03:00
|
|
|
|
2000-06-21 00:43:54 +04:00
|
|
|
MODULE = exthandler
|
|
|
|
LIBRARY_NAME = exthandler_s
|
2005-03-19 23:35:35 +03:00
|
|
|
LIBXUL_LIBRARY = 1
|
2000-06-21 00:43:54 +04:00
|
|
|
|
2003-07-01 00:29:59 +04:00
|
|
|
|
2008-02-27 05:03:08 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
2007-03-23 02:01:14 +03:00
|
|
|
|
2008-02-27 05:03:08 +03:00
|
|
|
CMMSRCS = nsOSHelperAppService.mm \
|
|
|
|
nsMIMEInfoMac.mm \
|
|
|
|
nsLocalHandlerAppMac.mm \
|
2007-03-23 02:01:14 +03:00
|
|
|
$(NULL)
|
2008-02-27 05:03:08 +03:00
|
|
|
else
|
|
|
|
OSHELPER = nsOSHelperAppService.cpp
|
2002-10-01 05:00:09 +04:00
|
|
|
endif
|
|
|
|
|
2004-02-24 01:49:28 +03:00
|
|
|
LOCAL_INCLUDES = -I$(srcdir)
|
|
|
|
|
2003-09-30 02:04:05 +04:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
|
|
|
|
OSHELPER += nsGNOMERegistry.cpp
|
2007-07-26 08:24:25 +04:00
|
|
|
OSHELPER += nsMIMEInfoUnix.cpp
|
2003-09-30 02:04:05 +04:00
|
|
|
endif
|
|
|
|
|
2010-06-14 23:04:16 +04:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),android)
|
|
|
|
OSHELPER += nsMIMEInfoAndroid.cpp
|
|
|
|
OSHELPER += nsAndroidHandlerApp.cpp
|
|
|
|
endif
|
|
|
|
|
2008-04-19 17:27:21 +04:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),qt)
|
|
|
|
OSHELPER += nsGNOMERegistry.cpp
|
|
|
|
OSHELPER += nsMIMEInfoUnix.cpp
|
|
|
|
endif
|
|
|
|
|
2004-02-24 01:49:28 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),beos)
|
|
|
|
OSHELPER += nsMIMEInfoBeOS.cpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
|
|
|
OSHELPER += nsMIMEInfoWin.cpp
|
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/win
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
|
|
|
OSHELPER += nsMIMEInfoOS2.cpp
|
|
|
|
endif
|
2004-01-28 17:48:22 +03:00
|
|
|
|
2004-01-29 00:59:10 +03:00
|
|
|
EXPORTS = \
|
2000-06-26 02:39:51 +04:00
|
|
|
$(OSDIR)/nsOSHelperAppService.h \
|
2000-06-21 00:43:54 +04:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
XPIDLSRCS = \
|
|
|
|
nsCExternalHandlerService.idl \
|
|
|
|
nsIExternalProtocolService.idl \
|
|
|
|
nsIExternalHelperAppService.idl \
|
2004-08-09 00:25:02 +04:00
|
|
|
nsIHelperAppLauncherDialog.idl \
|
2007-07-26 08:24:25 +04:00
|
|
|
nsIContentDispatchChooser.idl \
|
2007-07-21 11:18:21 +04:00
|
|
|
nsIHandlerService.idl \
|
2000-06-21 00:43:54 +04:00
|
|
|
$(NULL)
|
2003-09-30 02:04:05 +04:00
|
|
|
|
2000-06-21 00:43:54 +04:00
|
|
|
CPPSRCS = \
|
|
|
|
nsExternalHelperAppService.cpp \
|
2001-02-07 05:03:55 +03:00
|
|
|
nsExternalProtocolHandler.cpp \
|
2004-01-28 17:48:22 +03:00
|
|
|
nsMIMEInfoImpl.cpp \
|
2007-08-14 20:47:41 +04:00
|
|
|
nsLocalHandlerApp.cpp \
|
2000-06-27 00:18:21 +04:00
|
|
|
$(OSHELPER) \
|
2000-06-21 00:43:54 +04:00
|
|
|
$(NULL)
|
2000-06-26 02:39:51 +04:00
|
|
|
|
2008-07-25 20:36:07 +04:00
|
|
|
ifdef MOZ_ENABLE_DBUS
|
|
|
|
CPPSRCS += nsDBusHandlerApp.cpp
|
2010-04-24 11:39:53 +04:00
|
|
|
LOCAL_INCLUDES += $(TK_CFLAGS) $(MOZ_DBUS_CFLAGS)
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_DBUS_LIBS)
|
2008-07-25 20:36:07 +04:00
|
|
|
endif
|
|
|
|
|
2010-02-09 22:02:11 +03:00
|
|
|
ifdef MOZ_PLATFORM_MAEMO
|
2009-03-30 22:10:26 +04:00
|
|
|
ifdef MOZ_ENABLE_GNOMEVFS
|
|
|
|
LOCAL_INCLUDES += $(MOZ_GNOMEVFS_CFLAGS)
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_GNOMEVFS_LIBS)
|
|
|
|
endif
|
2009-08-25 22:58:11 +04:00
|
|
|
ifdef MOZ_ENABLE_GIO
|
|
|
|
LOCAL_INCLUDES += $(MOZ_GIO_CFLAGS)
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_GIO_LIBS)
|
|
|
|
endif
|
2009-03-30 22:10:26 +04:00
|
|
|
endif
|
|
|
|
|
2005-11-30 21:36:17 +03:00
|
|
|
ifeq ($(OS_ARCH),WINNT WINCE)
|
2001-12-18 12:14:29 +03:00
|
|
|
OS_LIBS += shell32.lib
|
2004-02-24 01:49:28 +03:00
|
|
|
GARBAGE += nsOSHelperAppService.cpp $(srcdir)/nsOSHelperAppService.cpp \
|
|
|
|
nsMIMEInfoWin.cpp $(srcdir)/nsMIMEInfoWin.cpp
|
2001-12-18 12:14:29 +03:00
|
|
|
endif
|
2000-06-26 02:39:51 +04:00
|
|
|
|
2007-08-14 20:47:41 +04:00
|
|
|
EXTRA_COMPONENTS = \
|
|
|
|
nsHandlerService.js \
|
|
|
|
nsWebHandlerApp.js \
|
|
|
|
$(NULL)
|
2007-07-21 11:18:21 +04:00
|
|
|
|
2000-06-21 00:43:54 +04:00
|
|
|
# we don't want the shared lib, but we want to force the creation of a static lib.
|
2001-06-19 02:10:38 +04:00
|
|
|
FORCE_STATIC_LIB = 1
|
2002-12-13 05:36:06 +03:00
|
|
|
SRCS_IN_OBJDIR = 1
|
2000-06-21 00:43:54 +04:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2010-04-29 03:56:44 +04:00
|
|
|
ifneq (,$(filter qt gtk2, $(MOZ_WIDGET_TOOLKIT)))
|
2010-04-29 00:33:28 +04:00
|
|
|
CXXFLAGS += $(TK_CFLAGS) $(MOZ_DBUS_GLIB_CFLAGS)
|
2003-09-30 02:04:05 +04:00
|
|
|
endif
|
|
|
|
|
2002-12-13 05:36:06 +03:00
|
|
|
# the use of multiple VPATH dirs is broken in cygwin make
|
2005-11-30 21:36:17 +03:00
|
|
|
ifeq ($(OS_ARCH),WINNT WINCE)
|
2004-02-24 01:49:28 +03:00
|
|
|
export:: $(OSDIR)/nsOSHelperAppService.cpp $(OSDIR)/nsMIMEInfoWin.cpp
|
2002-12-13 05:36:06 +03:00
|
|
|
$(INSTALL) $^ .
|
2002-06-17 21:09:57 +04:00
|
|
|
endif
|