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
,\
19 $(eval
$(call gb_Library_use_static_libraries
,npsoplugin
,\
26 $(eval
$(call gb_Library_add_libs
,npsoplugin
,\
30 $(eval
$(call gb_Library_use_external
,npsoplugin
,gtk
))
32 $(eval
$(call gb_Library_add_defs
,npsoplugin
,\
36 ifeq ($(HAVE_NON_CONST_NPP_GETMIMEDESCRIPTION
),TRUE
)
37 $(eval
$(call gb_Library_add_defs
,npsoplugin
,\
38 -DHAVE_NON_CONST_NPP_GETMIMEDESCRIPTION
=1 \
42 ifeq ($(filter-out LINUX FREEBSD NETBSD OPENBSD DRAGONFLY
,$(OS
)),)
43 $(eval
$(call gb_Library_add_defs
,npsoplugin
,\
52 $(eval
$(call gb_Library_use_static_libraries
,npsoplugin
,\
56 $(eval
$(call gb_Library_use_system_win32_libs
,npsoplugin
,\
70 $(eval
$(call gb_Library_add_defs
,npsoplugin
,\
75 $(eval
$(call gb_Library_add_ldflags
,npsoplugin
,\
76 /EXPORT
:NPP_GetMIMEDescription \
77 /EXPORT
:NPP_Initialize \
78 /EXPORT
:NPP_Shutdown \
81 /EXPORT
:NPP_SetWindow \
82 /EXPORT
:NPP_NewStream \
83 /EXPORT
:NPP_WriteReady \
85 /EXPORT
:NPP_DestroyStream \
86 /EXPORT
:NPP_StreamAsFile \
87 /EXPORT
:NPP_URLNotify \
89 /EXPORT
:NP_GetEntryPoints \
90 /EXPORT
:NP_Initialize \
92 /EXPORT
:NP_GetMIMEDescription \
96 $(eval
$(call gb_Library_set_nativeres
,npsoplugin
,npsoplugin
/npsoplugin
))
100 $(eval
$(call gb_Library_add_exception_objects
,npsoplugin
,\
101 extensions
/source
/nsplugin
/source
/npshell \
104 # vim:set shiftwidth=4 softtabstop=4 noexpandtab: