Bump for 3.6-28
[LibreOffice.git] / extensions / Library_pl.mk
blobcbcfc795e233d7e86cd0684afa93623bc0cf5d0a
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,pl))
33 $(eval $(call gb_Library_set_componentfile,pl,extensions/source/plugin/pl))
35 $(eval $(call gb_Library_use_package,pl,np_sdk_inc))
37 $(eval $(call gb_Library_use_external,pl,mozilla_headers))
39 $(eval $(call gb_Library_set_include,pl,\
40 $$(INCLUDE) \
41 -I$(SRCDIR)/extensions/source/plugin/inc \
44 $(eval $(call gb_Library_use_api,pl,\
45 offapi \
46 udkapi \
49 ifeq ($(SOLAR_JAVA),TRUE)
50 $(eval $(call gb_Library_add_defs,pl,\
51 -DOJI \
54 endif # SOLAR_JAVA=YES
56 ifeq ($(SYSTEM_MOZILLA),YES)
57 $(eval $(call gb_Library_add_defs,pl,\
58 -DSYSTEM_MOZILLA \
60 endif # SYSTEM_MOZILLA=YES
62 ifeq ($(OS),SOLARIS)
63 $(eval $(call gb_Library_add_libs,pl,\
64 -lsocket \
66 endif # OS=SOLARIS
68 ifeq ($(GUI),WNT)
69 $(eval $(call gb_Library_use_libraries,pl,\
70 version \
71 ole32 \
72 advapi32 \
75 $(eval $(call gb_Library_add_exception_objects,pl,\
76 extensions/source/plugin/win/winmgr \
77 extensions/source/plugin/win/sysplug \
79 endif # GUI=WNT
81 ifeq ($(GUI),UNX)
83 ifeq ($(GUIBASE),aqua)
85 $(eval $(call gb_Library_add_objcxxobjects,pl,\
86 extensions/source/plugin/aqua/macmgr \
87 extensions/source/plugin/aqua/sysplug \
90 $(eval $(call gb_Library_use_externals,pl,\
91 cocoa \
92 carbon \
93 corefoundation \
96 else # GUIBASE!=aqua
98 ifeq ($(ENABLE_GTK),TRUE)
99 $(eval $(call gb_Library_add_defs,pl,\
100 -DENABLE_GTK \
103 $(eval $(call gb_Library_use_external,pl,gtk))
104 endif # ENABLE_GTK=TRUE
106 $(eval $(call gb_Library_add_exception_objects,pl,\
107 extensions/source/plugin/unx/nppapi \
108 extensions/source/plugin/unx/sysplug \
109 extensions/source/plugin/unx/unxmgr \
112 $(eval $(call gb_Library_use_static_libraries,pl,\
113 plugcon \
116 $(eval $(call gb_Library_add_libs,pl,\
117 -lX11 \
120 endif # GUIBASE=aqua
122 endif # GUI=UNX
124 $(eval $(call gb_Library_use_libraries,pl,\
125 tk \
126 vcl \
127 svl \
128 utl \
129 tl \
130 comphelper \
131 ucbhelper \
132 cppuhelper \
133 cppu \
134 sal \
135 salhelper \
136 $(gb_STDLIBS) \
139 $(eval $(call gb_Library_add_exception_objects,pl,\
140 extensions/source/plugin/base/context \
141 extensions/source/plugin/base/evtlstnr \
142 extensions/source/plugin/base/manager \
143 extensions/source/plugin/base/multiplx \
144 extensions/source/plugin/base/nfuncs \
145 extensions/source/plugin/base/plcom \
146 extensions/source/plugin/base/plctrl \
147 extensions/source/plugin/base/plmodel \
148 extensions/source/plugin/base/service \
149 extensions/source/plugin/base/xplugin \
152 # vim:set shiftwidth=4 softtabstop=4 expandtab: