1998-08-19 20:42:14 +00:00
|
|
|
#
|
2004-04-18 22:01:16 +00:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1998-08-19 20:42:14 +00:00
|
|
|
#
|
2004-04-18 22:01:16 +00: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.
|
1998-08-19 20:42:14 +00:00
|
|
|
#
|
1999-11-06 03:43:54 +00:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
2004-04-18 22:01:16 +00: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):
|
1999-11-06 03:43:54 +00:00
|
|
|
#
|
2004-04-18 22:01:16 +00:00
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either 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.
|
1999-07-19 23:31:33 +00:00
|
|
|
#
|
2004-04-18 22:01:16 +00:00
|
|
|
# ***** END LICENSE BLOCK *****
|
1998-08-19 20:42:14 +00:00
|
|
|
|
2011-04-26 21:38:43 +00:00
|
|
|
DEPTH = ../../..
|
1998-08-19 20:42:14 +00:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2000-11-20 07:16:06 +00:00
|
|
|
MODULE = plugin
|
2000-07-02 18:44:42 +00:00
|
|
|
LIBRARY_NAME = gkplugin
|
2001-04-28 19:48:12 +00:00
|
|
|
EXPORT_LIBRARY = 1
|
2000-07-22 01:34:13 +00:00
|
|
|
IS_COMPONENT = 1
|
2001-06-20 20:21:49 +00:00
|
|
|
MODULE_NAME = nsPluginModule
|
2002-12-28 01:15:07 +00:00
|
|
|
GRE_MODULE = 1
|
2004-12-09 19:28:35 +00:00
|
|
|
LIBXUL_LIBRARY = 1
|
2002-12-28 01:15:07 +00:00
|
|
|
|
2010-04-13 16:10:00 +00:00
|
|
|
EXPORTS_NAMESPACES = mozilla
|
|
|
|
|
2011-04-26 21:38:43 +00:00
|
|
|
XPIDLSRCS = \
|
|
|
|
nsIHTTPHeaderListener.idl \
|
|
|
|
nsIPluginDocument.idl \
|
|
|
|
nsIPluginHost.idl \
|
|
|
|
nsIPluginInputStream.idl \
|
|
|
|
nsIPluginInstanceOwner.idl \
|
|
|
|
nsIPluginStreamInfo.idl \
|
|
|
|
nsIPluginTag.idl \
|
|
|
|
nsIPluginTagInfo.idl \
|
|
|
|
nspluginroot.idl \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
EXPORTS = \
|
|
|
|
npapi.h \
|
|
|
|
npfunctions.h \
|
|
|
|
nptypes.h \
|
|
|
|
npruntime.h \
|
|
|
|
nsPluginLogging.h \
|
|
|
|
nsPluginError.h \
|
|
|
|
nsPluginNativeWindow.h \
|
|
|
|
nsPluginsCID.h \
|
2011-05-18 01:48:34 +00:00
|
|
|
nsNPAPIPluginInstance.h \
|
|
|
|
nsPluginsDir.h \
|
|
|
|
nsPluginTags.h \
|
|
|
|
nsPluginDirServiceProvider.h \
|
|
|
|
nsPluginHost.h \
|
2011-06-01 04:37:54 +00:00
|
|
|
nsPluginInstanceOwner.h \
|
2011-04-26 21:38:43 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2010-04-13 16:10:00 +00:00
|
|
|
EXPORTS_mozilla = \
|
|
|
|
PluginPRLibrary.h \
|
|
|
|
$(NULL)
|
|
|
|
|
1999-07-19 23:31:33 +00:00
|
|
|
CPPSRCS = \
|
2008-09-15 12:45:01 +00:00
|
|
|
nsNPAPIPlugin.cpp \
|
|
|
|
nsNPAPIPluginInstance.cpp \
|
2010-07-13 18:42:03 +00:00
|
|
|
nsNPAPIPluginStreamListener.cpp \
|
2010-07-13 20:48:00 +00:00
|
|
|
nsPluginStreamListenerPeer.cpp \
|
2009-07-02 05:48:08 +00:00
|
|
|
nsPluginHost.cpp \
|
2000-07-22 01:34:13 +00:00
|
|
|
nsPluginModule.cpp \
|
2004-07-12 15:53:22 +00:00
|
|
|
nsJSNPRuntime.cpp \
|
2009-12-15 22:47:22 +00:00
|
|
|
nsPluginTags.cpp \
|
2010-04-13 16:10:00 +00:00
|
|
|
PluginPRLibrary.cpp \
|
2011-06-01 04:37:54 +00:00
|
|
|
nsPluginInstanceOwner.cpp \
|
1999-07-19 23:31:33 +00:00
|
|
|
$(NULL)
|
1998-08-19 20:42:14 +00:00
|
|
|
|
2011-09-16 21:34:31 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),android)
|
|
|
|
DIRS += android
|
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/dom/plugins/base/android
|
|
|
|
endif
|
|
|
|
|
2011-05-08 17:45:56 +00:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2001-12-18 09:14:29 +00:00
|
|
|
CPPSRCS += nsPluginsDirWin.cpp
|
2002-09-26 02:53:27 +00:00
|
|
|
CPPSRCS += nsPluginNativeWindowWin.cpp
|
2007-07-20 20:34:51 +00:00
|
|
|
CPPSRCS += nsPluginDirServiceProvider.cpp
|
2010-11-10 02:02:09 +00:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/base
|
2001-12-18 09:14:29 +00:00
|
|
|
else
|
2000-05-21 11:23:34 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
|
|
|
CPPSRCS += nsPluginsDirOS2.cpp
|
2002-11-06 15:52:36 +00:00
|
|
|
CPPSRCS += nsPluginNativeWindowOS2.cpp
|
2002-11-06 01:24:57 +00:00
|
|
|
else
|
2009-09-19 02:59:53 +00:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2002-11-06 01:24:57 +00:00
|
|
|
CPPSRCS += nsPluginsDirDarwin.cpp
|
|
|
|
CPPSRCS += nsPluginNativeWindow.cpp
|
2003-09-16 01:44:41 +00:00
|
|
|
else
|
|
|
|
CPPSRCS += nsPluginsDirUnix.cpp
|
2010-04-20 18:49:34 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
|
2003-09-16 01:44:41 +00:00
|
|
|
CPPSRCS += nsPluginNativeWindowGtk2.cpp
|
2000-04-25 02:05:08 +00:00
|
|
|
else
|
2010-04-20 18:49:34 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),qt)
|
|
|
|
CPPSRCS += nsPluginNativeWindowQt.cpp
|
|
|
|
else
|
2002-09-26 02:53:27 +00:00
|
|
|
CPPSRCS += nsPluginNativeWindow.cpp
|
2000-04-25 02:05:08 +00:00
|
|
|
endif
|
2000-05-21 11:23:34 +00:00
|
|
|
endif
|
2010-04-20 18:49:34 +00:00
|
|
|
endif
|
2001-12-18 09:14:29 +00:00
|
|
|
endif
|
2002-11-06 01:24:57 +00:00
|
|
|
endif
|
2000-04-25 02:05:08 +00:00
|
|
|
|
2011-09-16 21:34:31 +00:00
|
|
|
LOCAL_INCLUDES += \
|
2011-11-21 07:55:50 +00:00
|
|
|
-DSK_BUILD_FOR_ANDROID_NDK \
|
2012-01-31 14:40:58 +00:00
|
|
|
-I$(topsrcdir)/widget/android \
|
2011-02-12 01:56:11 +00:00
|
|
|
-I$(topsrcdir)/xpcom/base/ \
|
2011-11-21 07:55:50 +00:00
|
|
|
-I$(topsrcdir)/gfx/skia/include/core \
|
|
|
|
-I$(topsrcdir)/gfx/skia/include/config \
|
2011-06-01 05:00:20 +00:00
|
|
|
$(MOZ_CAIRO_CFLAGS) \
|
2011-02-12 01:56:11 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2011-06-01 04:37:54 +00:00
|
|
|
include $(topsrcdir)/dom/dom-config.mk
|
2009-06-30 18:51:05 +00:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
1999-07-19 23:31:33 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
1998-08-19 20:42:14 +00:00
|
|
|
|
2010-01-28 05:22:41 +00:00
|
|
|
CXXFLAGS += $(TK_CFLAGS)
|
|
|
|
|
2011-05-18 13:05:24 +00:00
|
|
|
$(DIST)/bin/plugins:
|
|
|
|
$(NSINSTALL) -D $@
|
|
|
|
|
|
|
|
export:: $(DIST)/bin/plugins
|