Stop leaking all ScPostIt instances.
[LibreOffice.git] / extensions / Library_npsoplugin.mk
blob74bdb8ae24fa5b7155e56f1557d19478e2064872
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 else ifeq ($(OS),WNT)
50 $(eval $(call gb_Library_use_static_libraries,npsoplugin,\
51 ooopathutils \
54 $(eval $(call gb_Library_use_system_win32_libs,npsoplugin,\
55 advapi32 \
56 comdlg32 \
57 gdi32 \
58 kernel32 \
59 ole32 \
60 oleaut32 \
61 shell32 \
62 user32 \
63 uuid \
64 winspool \
65 ws2_32 \
68 $(eval $(call gb_Library_add_defs,npsoplugin,\
69 -DENGLISH \
72 ifeq ($(COM),MSC)
73 $(eval $(call gb_Library_add_ldflags,npsoplugin,\
74 /EXPORT:NPP_GetMIMEDescription \
75 /EXPORT:NPP_Initialize \
76 /EXPORT:NPP_Shutdown \
77 /EXPORT:NPP_New \
78 /EXPORT:NPP_Destroy \
79 /EXPORT:NPP_SetWindow \
80 /EXPORT:NPP_NewStream \
81 /EXPORT:NPP_WriteReady \
82 /EXPORT:NPP_Write \
83 /EXPORT:NPP_DestroyStream \
84 /EXPORT:NPP_StreamAsFile \
85 /EXPORT:NPP_URLNotify \
86 /EXPORT:NPP_Print \
87 /EXPORT:NP_GetEntryPoints \
88 /EXPORT:NP_Initialize \
89 /EXPORT:NP_Shutdown \
90 /EXPORT:NP_GetMIMEDescription \
92 endif
94 $(eval $(call gb_Library_set_nativeres,npsoplugin,npsoplugin/npsoplugin))
96 endif
98 $(eval $(call gb_Library_add_exception_objects,npsoplugin,\
99 extensions/source/nsplugin/source/npshell \
102 # vim:set shiftwidth=4 softtabstop=4 noexpandtab: