Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / extensions / Library_pl.mk
blobe849cfd385581587b0686c766b0211398dfda160
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,npapi_headers))
39 $(eval $(call gb_Library_set_include,pl,\
40 $$(INCLUDE) \
41 -I$(SRCDIR)/extensions/source/plugin/inc \
44 $(eval $(call gb_Library_use_sdk_api,pl))
46 ifeq ($(SOLAR_JAVA),TRUE)
47 $(eval $(call gb_Library_add_defs,pl,\
48 -DOJI \
51 endif # SOLAR_JAVA=YES
53 ifeq ($(SYSTEM_MOZILLA),YES)
54 $(eval $(call gb_Library_add_defs,pl,\
55 -DSYSTEM_MOZILLA \
57 endif # SYSTEM_MOZILLA=YES
59 ifeq ($(OS),SOLARIS)
60 $(eval $(call gb_Library_add_libs,pl,\
61 -lsocket \
63 endif # OS=SOLARIS
65 ifeq ($(GUI),WNT)
66 $(eval $(call gb_Library_use_system_win32_libs,pl,\
67 advapi32 \
68 ole32 \
69 version \
72 $(eval $(call gb_Library_add_exception_objects,pl,\
73 extensions/source/plugin/win/winmgr \
74 extensions/source/plugin/win/sysplug \
76 endif # GUI=WNT
78 ifeq ($(GUI),UNX)
80 ifeq ($(GUIBASE),aqua)
82 $(eval $(call gb_Library_add_objcxxobjects,pl,\
83 extensions/source/plugin/aqua/macmgr \
84 extensions/source/plugin/aqua/sysplug \
87 $(eval $(call gb_Library_use_system_darwin_frameworks,pl,\
88 Cocoa \
89 Carbon \
90 CoreFoundation \
93 else # GUIBASE!=aqua
95 ifeq ($(ENABLE_GTK),TRUE)
96 $(eval $(call gb_Library_add_defs,pl,\
97 -DENABLE_GTK \
100 $(eval $(call gb_Library_use_external,pl,gtk))
101 endif # ENABLE_GTK=TRUE
103 $(eval $(call gb_Library_add_exception_objects,pl,\
104 extensions/source/plugin/unx/nppapi \
105 extensions/source/plugin/unx/sysplug \
106 extensions/source/plugin/unx/unxmgr \
109 $(eval $(call gb_Library_use_static_libraries,pl,\
110 plugcon \
113 $(eval $(call gb_Library_add_libs,pl,\
114 -lX11 \
117 endif # GUIBASE=aqua
119 endif # GUI=UNX
121 $(eval $(call gb_Library_use_libraries,pl,\
122 tk \
123 vcl \
124 svl \
125 utl \
126 tl \
127 comphelper \
128 ucbhelper \
129 cppuhelper \
130 cppu \
131 sal \
132 salhelper \
133 $(gb_UWINAPI) \
136 $(eval $(call gb_Library_add_exception_objects,pl,\
137 extensions/source/plugin/base/context \
138 extensions/source/plugin/base/evtlstnr \
139 extensions/source/plugin/base/manager \
140 extensions/source/plugin/base/multiplx \
141 extensions/source/plugin/base/nfuncs \
142 extensions/source/plugin/base/plcom \
143 extensions/source/plugin/base/plctrl \
144 extensions/source/plugin/base/plmodel \
145 extensions/source/plugin/base/service \
146 extensions/source/plugin/base/xplugin \
149 # vim:set shiftwidth=4 softtabstop=4 expandtab: