bump product version to 4.1.6.2
[LibreOffice.git] / extensions / Library_npsoplugin.mk
blob90d4880f2f6b59cc22f7112aabca093eaa1b4428
1 # -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
4 # This file is part of the LibreOffice project.
6 # This Source Code Form is subject to the terms of the Mozilla Public
7 # License, v. 2.0. If a copy of the MPL was not distributed with this
8 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 $(eval $(call gb_Library_Library,npsoplugin))
14 $(eval $(call gb_Library_use_externals,npsoplugin,\
15 boost_headers \
16 npapi_headers \
19 $(eval $(call gb_Library_use_static_libraries,npsoplugin,\
20 npsoenv \
21 nputils \
24 ifneq ($(OS),WNT)
26 $(eval $(call gb_Library_add_libs,npsoplugin,\
27 -ldl \
30 $(eval $(call gb_Library_use_external,npsoplugin,gtk))
32 $(eval $(call gb_Library_add_defs,npsoplugin,\
33 -DMOZ_X11 \
36 ifeq ($(HAVE_NON_CONST_NPP_GETMIMEDESCRIPTION),TRUE)
37 $(eval $(call gb_Library_add_defs,npsoplugin,\
38 -DHAVE_NON_CONST_NPP_GETMIMEDESCRIPTION=1 \
40 endif
42 ifeq ($(filter-out LINUX FREEBSD NETBSD OPENBSD DRAGONFLY,$(OS)),)
43 $(eval $(call gb_Library_add_defs,npsoplugin,\
44 -DNP_LINUX \
46 endif
48 endif # GUI=UNX
50 ifeq ($(OS),WNT)
52 $(eval $(call gb_Library_use_static_libraries,npsoplugin,\
53 ooopathutils \
56 $(eval $(call gb_Library_use_system_win32_libs,npsoplugin,\
57 advapi32 \
58 comdlg32 \
59 gdi32 \
60 kernel32 \
61 ole32 \
62 oleaut32 \
63 shell32 \
64 user32 \
65 uuid \
66 winspool \
67 ws2_32 \
70 $(eval $(call gb_Library_add_defs,npsoplugin,\
71 -DENGLISH \
74 ifeq ($(COM),MSC)
75 $(eval $(call gb_Library_add_ldflags,npsoplugin,\
76 /EXPORT:NPP_GetMIMEDescription \
77 /EXPORT:NPP_Initialize \
78 /EXPORT:NPP_Shutdown \
79 /EXPORT:NPP_New \
80 /EXPORT:NPP_Destroy \
81 /EXPORT:NPP_SetWindow \
82 /EXPORT:NPP_NewStream \
83 /EXPORT:NPP_WriteReady \
84 /EXPORT:NPP_Write \
85 /EXPORT:NPP_DestroyStream \
86 /EXPORT:NPP_StreamAsFile \
87 /EXPORT:NPP_URLNotify \
88 /EXPORT:NPP_Print \
89 /EXPORT:NP_GetEntryPoints \
90 /EXPORT:NP_Initialize \
91 /EXPORT:NP_Shutdown \
92 /EXPORT:NP_GetMIMEDescription \
94 endif
96 $(eval $(call gb_Library_set_nativeres,npsoplugin,npsoplugin/npsoplugin))
98 endif # GUI=WNT
100 $(eval $(call gb_Library_add_exception_objects,npsoplugin,\
101 extensions/source/nsplugin/source/npshell \
104 # vim:set shiftwidth=4 softtabstop=4 noexpandtab: