Bump for 4.0-15
[LibreOffice.git] / extensions / Library_npsoplugin.mk
blob0ff92e55f18afe7bb60adbaf5b523372eb4e4fe4
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
13 # License.
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,\
34 comphelper_inc \
35 np_sdk_inc \
38 $(eval $(call gb_Library_use_external,npsoplugin,npapi_headers))
40 $(eval $(call gb_Library_use_static_libraries,npsoplugin,\
41 npsoenv \
42 nputils \
45 ifeq ($(GUI),UNX)
47 $(eval $(call gb_Library_add_libs,npsoplugin,\
48 -ldl \
51 $(eval $(call gb_Library_use_external,npsoplugin,gtk))
53 $(eval $(call gb_Library_add_defs,npsoplugin,\
54 -DMOZ_X11 \
57 ifeq ($(HAVE_NON_CONST_NPP_GETMIMEDESCRIPTION),TRUE)
58 $(eval $(call gb_Library_add_defs,npsoplugin,\
59 -DHAVE_NON_CONST_NPP_GETMIMEDESCRIPTION=1 \
61 endif
63 ifeq ($(filter-out LINUX FREEBSD NETBSD OPENBSD DRAGONFLY,$(OS)),)
64 $(eval $(call gb_Library_add_defs,npsoplugin,\
65 -DNP_LINUX \
67 endif
69 endif # GUI=UNX
71 ifeq ($(OS),WNT)
73 $(eval $(call gb_Library_use_static_libraries,npsoplugin,\
74 ooopathutils \
77 $(eval $(call gb_Library_use_system_win32_libs,npsoplugin,\
78 advapi32 \
79 comdlg32 \
80 gdi32 \
81 kernel32 \
82 ole32 \
83 oleaut32 \
84 shell32 \
85 user32 \
86 uuid \
87 winspool \
88 ws2_32 \
91 $(eval $(call gb_Library_add_defs,npsoplugin,\
92 -DENGLISH \
95 ifeq ($(COM),MSC)
96 $(eval $(call gb_Library_add_ldflags,npsoplugin,\
97 /EXPORT:NPP_GetMIMEDescription \
98 /EXPORT:NPP_Initialize \
99 /EXPORT:NPP_Shutdown \
100 /EXPORT:NPP_New \
101 /EXPORT:NPP_Destroy \
102 /EXPORT:NPP_SetWindow \
103 /EXPORT:NPP_NewStream \
104 /EXPORT:NPP_WriteReady \
105 /EXPORT:NPP_Write \
106 /EXPORT:NPP_DestroyStream \
107 /EXPORT:NPP_StreamAsFile \
108 /EXPORT:NPP_URLNotify \
109 /EXPORT:NPP_Print \
110 /EXPORT:NP_GetEntryPoints \
111 /EXPORT:NP_Initialize \
112 /EXPORT:NP_Shutdown \
113 /EXPORT:NP_GetMIMEDescription \
115 endif
117 $(eval $(call gb_Library_set_nativeres,npsoplugin,npsoplugin/npsoplugin))
119 endif # GUI=WNT
121 $(eval $(call gb_Library_add_exception_objects,npsoplugin,\
122 extensions/source/nsplugin/source/npshell \
125 # vim:set shiftwidth=4 softtabstop=4 noexpandtab: