1 # -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
3 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License or as specified alternatively below. You may obtain a copy of
8 # the License at http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
15 # The Initial Developer of the Original Code is
16 # Peter Foley <pefoley2@verizon.net>
17 # Portions created by the Initial Developer are Copyright (C) 2011 the
18 # Initial Developer. All Rights Reserved.
20 # Major Contributor(s):
22 # For minor contributions see the git repository.
24 # Alternatively, the contents of this file may be used under the terms of
25 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
26 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
27 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
28 # instead of those above.
31 $(eval
$(call gb_Library_Library
,npsoplugin
))
33 $(eval
$(call gb_Library_use_packages
,npsoplugin
,\
38 $(eval
$(call gb_Library_use_external
,npsoplugin
,npapi_headers
))
40 $(eval
$(call gb_Library_use_static_libraries
,npsoplugin
,\
47 $(eval
$(call gb_Library_add_libs
,npsoplugin
,\
51 $(eval
$(call gb_Library_use_external
,npsoplugin
,gtk
))
53 $(eval
$(call gb_Library_add_defs
,npsoplugin
,\
57 ifeq ($(HAVE_NON_CONST_NPP_GETMIMEDESCRIPTION
),TRUE
)
58 $(eval
$(call gb_Library_add_defs
,npsoplugin
,\
59 -DHAVE_NON_CONST_NPP_GETMIMEDESCRIPTION
=1 \
63 ifeq ($(filter-out LINUX FREEBSD NETBSD OPENBSD DRAGONFLY
,$(OS
)),)
64 $(eval
$(call gb_Library_add_defs
,npsoplugin
,\
73 $(eval
$(call gb_Library_use_static_libraries
,npsoplugin
,\
77 $(eval
$(call gb_Library_use_system_win32_libs
,npsoplugin
,\
91 $(eval
$(call gb_Library_add_defs
,npsoplugin
,\
96 $(eval
$(call gb_Library_add_ldflags
,npsoplugin
,\
97 /EXPORT
:NPP_GetMIMEDescription \
98 /EXPORT
:NPP_Initialize \
99 /EXPORT
:NPP_Shutdown \
101 /EXPORT
:NPP_Destroy \
102 /EXPORT
:NPP_SetWindow \
103 /EXPORT
:NPP_NewStream \
104 /EXPORT
:NPP_WriteReady \
106 /EXPORT
:NPP_DestroyStream \
107 /EXPORT
:NPP_StreamAsFile \
108 /EXPORT
:NPP_URLNotify \
110 /EXPORT
:NP_GetEntryPoints \
111 /EXPORT
:NP_Initialize \
112 /EXPORT
:NP_Shutdown \
113 /EXPORT
:NP_GetMIMEDescription \
117 $(eval
$(call gb_Library_set_nativeres
,npsoplugin
,npsoplugin
/npsoplugin
))
121 $(eval
$(call gb_Library_add_exception_objects
,npsoplugin
,\
122 extensions
/source
/nsplugin
/source
/npshell \
125 # vim:set shiftwidth=4 softtabstop=4 noexpandtab: