Updated core
[LibreOffice.git] / sfx2 / Library_sfx.mk
blobaefe3a2d116dab7d3f6ab269633d37366f98daf9
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 # This file incorporates work covered by the following license notice:
11 # Licensed to the Apache Software Foundation (ASF) under one or more
12 # contributor license agreements. See the NOTICE file distributed
13 # with this work for additional information regarding copyright
14 # ownership. The ASF licenses this file to you under the Apache
15 # License, Version 2.0 (the "License"); you may not use this file
16 # except in compliance with the License. You may obtain a copy of
17 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 $(eval $(call gb_Library_Library,sfx))
22 $(eval $(call gb_Library_add_sdi_headers,sfx,sfx2/sdi/sfxslots))
24 $(eval $(call gb_Library_set_componentfile,sfx,sfx2/util/sfx))
26 $(eval $(call gb_Library_use_custom_headers,sfx,\
27 officecfg/registry \
30 $(eval $(call gb_Library_use_sdk_api,sfx))
32 $(eval $(call gb_Library_set_include,sfx,\
33 -I$(SRCDIR)/sfx2/inc \
34 -I$(SRCDIR)/include/sfx2/ \
35 -I$(SRCDIR)/sfx2/source/inc \
36 -I$(WORKDIR)/SdiTarget/sfx2/sdi \
37 $$(INCLUDE) \
40 $(eval $(call gb_Library_add_defs,sfx,-DSFX2_DLLIMPLEMENTATION))
42 $(eval $(call gb_Library_add_defs,sfx,\
43 $(if $(filter TRUE,$(ENABLE_CUPS)),-DENABLE_CUPS) \
46 ifeq ($(ENABLE_SYSTRAY_GTK),TRUE)
47 $(eval $(call gb_Library_add_defs,sfx,\
48 -DENABLE_QUICKSTART_APPLET \
49 -DENABLE_SYSTRAY_GTK \
50 -DPLUGIN_NAME=libqstart_gtk$(gb_Library_OOOEXT) \
52 endif
54 $(eval $(call gb_Library_use_libraries,sfx,\
55 basegfx \
56 comphelper \
57 cppu \
58 cppuhelper \
59 drawinglayer \
60 fwe \
61 i18nlangtag \
62 sal \
63 sax \
64 sb \
65 sot \
66 svl \
67 svt \
68 tk \
69 tl \
70 ucbhelper \
71 utl \
72 vcl \
73 $(gb_UWINAPI) \
76 $(eval $(call gb_Library_use_externals,sfx,\
77 boost_headers \
78 libxml2 \
81 $(eval $(call gb_Library_add_exception_objects,sfx,\
82 sfx2/source/appl/app \
83 sfx2/source/appl/appbas \
84 sfx2/source/appl/appbaslib \
85 sfx2/source/appl/appcfg \
86 sfx2/source/appl/appchild \
87 sfx2/source/appl/appdata \
88 sfx2/source/appl/appdde \
89 sfx2/source/appl/appinit \
90 sfx2/source/appl/appmain \
91 sfx2/source/appl/appmisc \
92 sfx2/source/appl/appopen \
93 sfx2/source/appl/appquit \
94 sfx2/source/appl/appreg \
95 sfx2/source/appl/appserv \
96 sfx2/source/appl/appuno \
97 sfx2/source/appl/childwin \
98 sfx2/source/appl/fileobj \
99 sfx2/source/appl/fwkhelper \
100 sfx2/source/appl/helpdispatch \
101 sfx2/source/appl/helpinterceptor \
102 sfx2/source/appl/imagemgr \
103 sfx2/source/appl/imestatuswindow \
104 sfx2/source/appl/impldde \
105 sfx2/source/appl/linkmgr2 \
106 sfx2/source/appl/linksrc \
107 sfx2/source/appl/lnkbase2 \
108 sfx2/source/appl/module \
109 sfx2/source/appl/newhelp \
110 sfx2/source/appl/opengrf \
111 sfx2/source/appl/openuriexternally \
112 sfx2/source/appl/sfxhelp \
113 sfx2/source/appl/sfxpicklist \
114 sfx2/source/appl/shutdownicon \
115 sfx2/source/appl/workwin \
116 sfx2/source/appl/xpackcreator \
117 sfx2/source/bastyp/bitset \
118 sfx2/source/bastyp/fltfnc \
119 sfx2/source/bastyp/fltlst \
120 sfx2/source/bastyp/frmhtml \
121 sfx2/source/bastyp/frmhtmlw \
122 sfx2/source/bastyp/helper \
123 sfx2/source/bastyp/mieclip \
124 sfx2/source/bastyp/progress \
125 sfx2/source/bastyp/sfxhtml \
126 sfx2/source/bastyp/sfxresid \
127 sfx2/source/config/evntconf \
128 sfx2/source/control/bindings \
129 sfx2/source/control/ctrlitem \
130 sfx2/source/control/minfitem \
131 sfx2/source/control/msg \
132 sfx2/source/control/msgpool \
133 sfx2/source/control/objface \
134 sfx2/source/control/querystatus \
135 sfx2/source/control/request \
136 sfx2/source/control/sfxstatuslistener \
137 sfx2/source/control/shell \
138 sfx2/source/control/sorgitm \
139 sfx2/source/control/statcach \
140 sfx2/source/control/templateabstractview \
141 sfx2/source/control/templateviewitem \
142 sfx2/source/control/templatelocalview \
143 sfx2/source/control/templatecontaineritem \
144 sfx2/source/control/templateremoteview \
145 sfx2/source/control/templatesearchview \
146 sfx2/source/control/thumbnailviewitem \
147 sfx2/source/control/thumbnailviewacc \
148 sfx2/source/control/thumbnailview \
149 sfx2/source/control/unoctitm \
150 sfx2/source/dialog/alienwarn \
151 sfx2/source/dialog/basedlgs \
152 sfx2/source/dialog/checkin \
153 sfx2/source/dialog/dinfdlg \
154 sfx2/source/dialog/dinfedt \
155 sfx2/source/dialog/dockwin \
156 sfx2/source/dialog/documentfontsdialog \
157 sfx2/source/dialog/filedlghelper \
158 sfx2/source/dialog/filtergrouping \
159 sfx2/source/dialog/itemconnect \
160 sfx2/source/dialog/infobar \
161 sfx2/source/dialog/inputdlg \
162 sfx2/source/dialog/mailmodel \
163 sfx2/source/dialog/bluthsnd \
164 sfx2/source/dialog/mgetempl \
165 sfx2/source/dialog/navigat \
166 sfx2/source/dialog/newstyle \
167 sfx2/source/dialog/partwnd \
168 sfx2/source/dialog/passwd \
169 sfx2/source/dialog/printopt \
170 sfx2/source/dialog/recfloat \
171 sfx2/source/dialog/securitypage \
172 sfx2/source/dialog/sfxdlg \
173 sfx2/source/dialog/splitwin \
174 sfx2/source/dialog/srchdlg \
175 sfx2/source/dialog/styfitem \
176 sfx2/source/dialog/styledlg \
177 sfx2/source/dialog/tabdlg \
178 sfx2/source/dialog/taskpane \
179 sfx2/source/dialog/templateinfodlg \
180 sfx2/source/dialog/templdlg \
181 sfx2/source/dialog/titledockwin \
182 sfx2/source/dialog/tplcitem \
183 sfx2/source/dialog/tplpitem \
184 sfx2/source/dialog/versdlg \
185 sfx2/source/doc/DocumentMetadataAccess \
186 sfx2/source/doc/Metadatable \
187 sfx2/source/doc/QuerySaveDocument \
188 sfx2/source/doc/SfxDocumentMetaData \
189 sfx2/source/doc/docfac \
190 sfx2/source/doc/docfile \
191 sfx2/source/doc/docfilt \
192 sfx2/source/doc/docinf \
193 sfx2/source/doc/docinsert \
194 sfx2/source/doc/docmacromode \
195 sfx2/source/doc/docstoragemodifylistener \
196 sfx2/source/doc/doctempl \
197 sfx2/source/doc/doctemplates \
198 sfx2/source/doc/doctemplateslocal \
199 sfx2/source/doc/frmdescr \
200 sfx2/source/doc/graphhelp \
201 sfx2/source/doc/guisaveas \
202 sfx2/source/doc/iframe \
203 sfx2/source/doc/new \
204 sfx2/source/doc/objcont \
205 sfx2/source/doc/objembed \
206 sfx2/source/doc/objitem \
207 sfx2/source/doc/objmisc \
208 sfx2/source/doc/objserv \
209 sfx2/source/doc/objstor \
210 sfx2/source/doc/objxtor \
211 sfx2/source/doc/oleprops \
212 sfx2/source/doc/ownsubfilterservice \
213 sfx2/source/doc/plugin \
214 sfx2/source/doc/printhelper \
215 sfx2/source/doc/querytemplate \
216 sfx2/source/doc/docundomanager \
217 sfx2/source/doc/sfxacldetect \
218 sfx2/source/doc/sfxbasemodel \
219 sfx2/source/doc/sfxmodelfactory \
220 sfx2/source/doc/syspath \
221 sfx2/source/doc/zoomitem \
222 sfx2/source/doc/templatedlg \
223 sfx2/source/explorer/nochaos \
224 sfx2/source/inet/inettbc \
225 sfx2/source/menu/mnuitem \
226 sfx2/source/menu/mnumgr \
227 sfx2/source/menu/thessubmenu \
228 sfx2/source/menu/virtmenu \
229 sfx2/source/notify/eventsupplier \
230 sfx2/source/notify/hintpost \
231 sfx2/source/sidebar/SidebarChildWindow \
232 sfx2/source/sidebar/SidebarDockingWindow \
233 sfx2/source/sidebar/SidebarController \
234 sfx2/source/sidebar/SidebarPanelBase \
235 sfx2/source/sidebar/SidebarToolBox \
236 sfx2/source/sidebar/Accessible \
237 sfx2/source/sidebar/AccessibleTitleBar \
238 sfx2/source/sidebar/AsynchronousCall \
239 sfx2/source/sidebar/CommandInfoProvider \
240 sfx2/source/sidebar/Context \
241 sfx2/source/sidebar/ContextChangeBroadcaster \
242 sfx2/source/sidebar/ContextList \
243 sfx2/source/sidebar/ControlFactory \
244 sfx2/source/sidebar/ControllerFactory \
245 sfx2/source/sidebar/ControllerItem \
246 sfx2/source/sidebar/CustomImageRadioButton \
247 sfx2/source/sidebar/Deck \
248 sfx2/source/sidebar/DeckDescriptor \
249 sfx2/source/sidebar/DeckLayouter \
250 sfx2/source/sidebar/DeckTitleBar \
251 sfx2/source/sidebar/DrawHelper \
252 sfx2/source/sidebar/EnumContext \
253 sfx2/source/sidebar/FocusManager \
254 sfx2/source/sidebar/MenuButton \
255 sfx2/source/sidebar/IContextChangeReceiver \
256 sfx2/source/sidebar/ILayoutableWindow \
257 sfx2/source/sidebar/Paint \
258 sfx2/source/sidebar/Panel \
259 sfx2/source/sidebar/PanelDescriptor \
260 sfx2/source/sidebar/PanelTitleBar \
261 sfx2/source/sidebar/ResourceManager \
262 sfx2/source/sidebar/TabBar \
263 sfx2/source/sidebar/TabItem \
264 sfx2/source/sidebar/TitleBar \
265 sfx2/source/sidebar/Theme \
266 sfx2/source/sidebar/Tools \
267 sfx2/source/sidebar/ToolBoxBackground \
268 sfx2/source/statbar/stbitem \
269 sfx2/source/toolbox/imgmgr \
270 sfx2/source/toolbox/tbxitem \
271 sfx2/source/view/frame \
272 sfx2/source/view/frame2 \
273 sfx2/source/view/frmload \
274 sfx2/source/view/ipclient \
275 sfx2/source/view/printer \
276 sfx2/source/view/sfxbasecontroller \
277 sfx2/source/view/userinputinterception \
278 sfx2/source/view/viewfac \
279 sfx2/source/view/viewfrm \
280 sfx2/source/view/viewfrm2 \
281 sfx2/source/view/viewprn \
282 sfx2/source/view/viewsh \
285 # i116803: crash in impress when
286 # "opening stylist, select graphic style, select modify from context menu, cancel dialog, close stylist"
287 # only on unxlngi6 and unxlngi6.pro platform
288 ifeq ($(OS),LINUX)
289 $(eval $(call gb_Library_add_cxxobjects,sfx,\
290 sfx2/source/control/dispatch \
291 , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
293 else
294 $(eval $(call gb_Library_add_exception_objects,sfx,\
295 sfx2/source/control/dispatch \
297 endif
300 $(eval $(call gb_SdiTarget_SdiTarget,sfx2/sdi/sfxslots,sfx2/sdi/sfx))
302 $(eval $(call gb_SdiTarget_set_include,sfx2/sdi/sfxslots,\
303 $$(INCLUDE) \
304 -I$(SRCDIR)/include/sfx2/ \
305 -I$(SRCDIR)/sfx2/inc \
306 -I$(SRCDIR)/sfx2/sdi \
309 ifeq ($(OS),$(filter WNT MACOSX,$(OS)))
310 $(eval $(call gb_Library_add_defs,sfx,\
311 -DENABLE_QUICKSTART_APPLET \
313 endif
315 ifeq ($(OS),MACOSX)
316 $(eval $(call gb_Library_add_objcxxobjects,sfx,\
317 sfx2/source/appl/shutdowniconaqua \
319 $(eval $(call gb_Library_add_libs,sfx,\
320 -lobjc \
322 $(eval $(call gb_Library_use_system_darwin_frameworks,sfx,\
323 Cocoa \
325 endif
327 ifeq ($(OS),WNT)
329 $(eval $(call gb_Library_add_exception_objects,sfx,\
330 sfx2/source/appl/shutdowniconw32 \
331 sfx2/source/doc/syspathw32 \
334 $(eval $(call gb_Library_use_system_win32_libs,sfx,\
335 advapi32 \
336 gdi32 \
337 ole32 \
338 shell32 \
339 uuid \
342 endif
344 # Runtime dependency for unit-tests
345 $(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,sfx)) :| \
346 $(call gb_AllLangResTarget_get_target,sfx)
348 # vim: set noet sw=4 ts=4: