Branch libreoffice-5-0-4
[LibreOffice.git] / extensions / Library_pl.mk
blob680877ca455697dde3ae4e758fbf08c32265aa93
1 # -*- Mode: makefile-gmake; 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,pl))
14 $(eval $(call gb_Library_set_componentfile,pl,extensions/source/plugin/pl))
16 $(eval $(call gb_Library_use_externals,pl,\
17 boost_headers \
18 npapi_headers \
21 $(eval $(call gb_Library_set_include,pl,\
22 $$(INCLUDE) \
23 -I$(SRCDIR)/extensions/source/plugin/inc \
26 $(eval $(call gb_Library_use_sdk_api,pl))
28 ifeq ($(ENABLE_JAVA),TRUE)
29 $(eval $(call gb_Library_add_defs,pl,\
30 -DOJI \
33 endif # ENABLE_JAVA=YES
35 ifeq ($(SYSTEM_MOZILLA),YES)
36 $(eval $(call gb_Library_add_defs,pl,\
37 -DSYSTEM_MOZILLA \
39 endif # SYSTEM_MOZILLA=YES
41 ifeq ($(OS),SOLARIS)
42 $(eval $(call gb_Library_add_libs,pl,\
43 -lsocket \
45 endif # OS=SOLARIS
47 ifeq ($(OS),WNT)
48 $(eval $(call gb_Library_use_system_win32_libs,pl,\
49 advapi32 \
50 ole32 \
51 version \
54 $(eval $(call gb_Library_add_exception_objects,pl,\
55 extensions/source/plugin/win/winmgr \
56 extensions/source/plugin/win/sysplug \
59 else ifeq ($(OS),MACOSX)
61 $(eval $(call gb_Library_add_objcxxobjects,pl,\
62 extensions/source/plugin/aqua/macmgr \
63 extensions/source/plugin/aqua/sysplug \
66 $(eval $(call gb_Library_use_system_darwin_frameworks,pl,\
67 Cocoa \
68 Carbon \
69 CoreFoundation \
72 else
74 ifeq ($(ENABLE_GTK),TRUE)
75 $(eval $(call gb_Library_add_defs,pl,\
76 -DENABLE_GTK \
79 $(eval $(call gb_Library_use_external,pl,gtk))
80 endif # ENABLE_GTK=TRUE
82 $(eval $(call gb_Library_add_exception_objects,pl,\
83 extensions/source/plugin/unx/nppapi \
84 extensions/source/plugin/unx/sysplug \
85 extensions/source/plugin/unx/unxmgr \
88 $(eval $(call gb_Library_use_static_libraries,pl,\
89 plugcon \
92 $(eval $(call gb_Library_add_libs,pl,\
93 -lX11 \
96 endif
98 $(eval $(call gb_Library_use_libraries,pl,\
99 tk \
100 vcl \
101 svl \
102 utl \
103 tl \
104 comphelper \
105 ucbhelper \
106 cppuhelper \
107 cppu \
108 sal \
109 salhelper \
110 $(gb_UWINAPI) \
113 $(eval $(call gb_Library_add_exception_objects,pl,\
114 extensions/source/plugin/base/context \
115 extensions/source/plugin/base/evtlstnr \
116 extensions/source/plugin/base/manager \
117 extensions/source/plugin/base/multiplx \
118 extensions/source/plugin/base/nfuncs \
119 extensions/source/plugin/base/plcom \
120 extensions/source/plugin/base/plctrl \
121 extensions/source/plugin/base/plmodel \
122 extensions/source/plugin/base/service \
123 extensions/source/plugin/base/xplugin \
126 # vim:set noet sw=4 ts=4: