Impress Remote 1.0.5, tag sdremote-1.0.5
[LibreOffice.git] / extensions / Library_npsoplugin.mk
blob31908f6076643ef103df24d247f2eeeea584e501
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_New \
99 /EXPORT:NPP_Destroy \
100 /EXPORT:NPP_SetWindow \
101 /EXPORT:NPP_NewStream \
102 /EXPORT:NPP_WriteReady \
103 /EXPORT:NPP_Write \
104 /EXPORT:NPP_DestroyStream \
105 /EXPORT:NPP_StreamAsFile \
106 /EXPORT:NPP_URLNotify \
107 /EXPORT:NPP_Print \
108 /EXPORT:NPP_Shutdown \
109 /EXPORT:NP_GetEntryPoints \
110 /EXPORT:NP_Initialize \
111 /EXPORT:NP_Shutdown \
112 /EXPORT:NP_GetMIMEDescription \
114 endif
116 # Trick to get rid of the default.res to avoid duplicate VERSION
117 # resource: Set NATIVERES for npsoplugin to be *only* npsoplugin_res
119 $(eval $(call gb_LinkTarget_get_target,npsoplugin) : $(call gb_WinResTarget_get_target,npsoplugin_res))
120 $(eval $(call gb_LinkTarget_get_target,npsoplugin) : NATIVERES := $(call gb_WinResTarget_get_target,npsoplugin_res))
122 endif # GUI=WNT
124 $(eval $(call gb_Library_add_exception_objects,npsoplugin,\
125 extensions/source/nsplugin/source/npshell \
128 # vim:set shiftwidth=4 softtabstop=4 noexpandtab: