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
,\
50 $(eval
$(call gb_Library_use_static_libraries
,npsoplugin
,\
54 $(eval
$(call gb_Library_use_system_win32_libs
,npsoplugin
,\
68 $(eval
$(call gb_Library_add_defs
,npsoplugin
,\
73 $(eval
$(call gb_Library_add_ldflags
,npsoplugin
,\
74 /EXPORT
:NPP_GetMIMEDescription \
75 /EXPORT
:NPP_Initialize \
76 /EXPORT
:NPP_Shutdown \
79 /EXPORT
:NPP_SetWindow \
80 /EXPORT
:NPP_NewStream \
81 /EXPORT
:NPP_WriteReady \
83 /EXPORT
:NPP_DestroyStream \
84 /EXPORT
:NPP_StreamAsFile \
85 /EXPORT
:NPP_URLNotify \
87 /EXPORT
:NP_GetEntryPoints \
88 /EXPORT
:NP_Initialize \
90 /EXPORT
:NP_GetMIMEDescription \
94 $(eval
$(call gb_Library_set_nativeres
,npsoplugin
,npsoplugin
/npsoplugin
))
98 $(eval
$(call gb_Library_add_exception_objects
,npsoplugin
,\
99 extensions
/source
/nsplugin
/source
/npshell \
102 # vim:set shiftwidth=4 softtabstop=4 noexpandtab: