Update git submodules
[LibreOffice.git] / sfx2 / Library_sfx.mk
blob5013ebc7a318fd147ea4e04433e56a69582a51d6
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,services))
26 $(eval $(call gb_Library_add_componentimpls,sfx, \
27 $(if $(ENABLE_WASM_STRIP_RECENT),,extended) \
30 $(eval $(call gb_Library_set_precompiled_header,sfx,sfx2/inc/pch/precompiled_sfx))
32 $(eval $(call gb_Library_use_custom_headers,sfx,\
33 officecfg/registry \
36 $(eval $(call gb_Library_use_sdk_api,sfx))
38 $(eval $(call gb_Library_set_include,sfx,\
39 -I$(SRCDIR)/sfx2/inc \
40 -I$(SRCDIR)/sfx2/source/inc \
41 -I$(WORKDIR)/SdiTarget/sfx2/sdi \
42 $$(INCLUDE) \
45 $(eval $(call gb_Library_add_defs,sfx,-DSFX2_DLLIMPLEMENTATION))
47 $(eval $(call gb_Library_add_defs,sfx,\
48 $(if $(filter TRUE,$(ENABLE_CUPS)),-DENABLE_CUPS) \
51 $(eval $(call gb_Library_use_libraries,sfx,\
52 basegfx \
53 comphelper \
54 cppu \
55 cppuhelper \
56 docmodel \
57 drawinglayercore \
58 drawinglayer \
59 fwk \
60 i18nlangtag \
61 i18nutil \
62 sal \
63 salhelper \
64 sax \
65 sb \
66 sot \
67 svl \
68 svt \
69 tk \
70 tl \
71 ucbhelper \
72 utl \
73 vcl \
74 $(if $(ENABLE_BREAKPAD), \
75 crashreport \
76 ) \
79 $(eval $(call gb_Library_use_externals,sfx,\
80 boost_headers \
81 icu_headers \
82 icui18n \
83 icuuc \
84 libxml2 \
87 ifneq ($(ENABLE_WASM_STRIP_RECENT),TRUE)
88 $(eval $(call gb_Library_add_exception_objects,sfx,\
89 sfx2/source/dialog/backingcomp \
90 sfx2/source/dialog/backingwindow \
91 sfx2/source/control/recentdocsview \
92 sfx2/source/control/recentdocsviewitem \
94 endif
96 $(eval $(call gb_Library_add_exception_objects,sfx,\
97 sfx2/source/accessibility/AccessibilityCheck \
98 sfx2/source/accessibility/AccessibilityIssue \
99 sfx2/source/appl/app \
100 sfx2/source/appl/appbas \
101 sfx2/source/appl/appbaslib \
102 sfx2/source/appl/appcfg \
103 sfx2/source/appl/appchild \
104 sfx2/source/appl/appdata \
105 sfx2/source/appl/appdde \
106 sfx2/source/appl/appdispatchprovider \
107 sfx2/source/appl/appinit \
108 sfx2/source/appl/appmain \
109 sfx2/source/appl/appmisc \
110 sfx2/source/appl/appopen \
111 sfx2/source/appl/appquit \
112 sfx2/source/appl/appreg \
113 sfx2/source/appl/appserv \
114 sfx2/source/appl/appuno \
115 sfx2/source/appl/childwin \
116 sfx2/source/appl/fileobj \
117 sfx2/source/appl/flatpak \
118 sfx2/source/appl/fwkhelper \
119 sfx2/source/appl/getbasctlfunction \
120 sfx2/source/appl/helpdispatch \
121 sfx2/source/appl/helpinterceptor \
122 sfx2/source/appl/impldde \
123 sfx2/source/appl/linkmgr2 \
124 sfx2/source/appl/linksrc \
125 sfx2/source/appl/lnkbase2 \
126 sfx2/source/appl/macroloader \
127 sfx2/source/appl/module \
128 sfx2/source/appl/newhelp \
129 sfx2/source/appl/opengrf \
130 sfx2/source/appl/openuriexternally \
131 sfx2/source/appl/preventduplicateinteraction \
132 sfx2/source/appl/sfxhelp \
133 sfx2/source/appl/sfxpicklist \
134 sfx2/source/appl/shutdownicon \
135 sfx2/source/appl/workwin \
136 sfx2/source/appl/xpackcreator \
137 sfx2/source/bastyp/bitset \
138 sfx2/source/bastyp/fltfnc \
139 sfx2/source/bastyp/fltlst \
140 sfx2/source/bastyp/frmhtml \
141 sfx2/source/bastyp/frmhtmlw \
142 sfx2/source/bastyp/helper \
143 sfx2/source/bastyp/mieclip \
144 sfx2/source/bastyp/progress \
145 sfx2/source/bastyp/sfxhtml \
146 sfx2/source/bastyp/sfxresid \
147 sfx2/source/commandpopup/CommandPopup \
148 sfx2/source/config/evntconf \
149 sfx2/source/control/bindings \
150 sfx2/source/control/ctrlitem \
151 sfx2/source/control/dispatch \
152 sfx2/source/control/minfitem \
153 sfx2/source/control/msg \
154 sfx2/source/control/msgpool \
155 sfx2/source/control/objface \
156 sfx2/source/control/request \
157 sfx2/source/control/sfxstatuslistener \
158 sfx2/source/control/shell \
159 sfx2/source/control/sorgitm \
160 sfx2/source/control/statcach \
161 sfx2/source/control/templatedefaultview \
162 sfx2/source/control/templateviewitem \
163 sfx2/source/control/templatelocalview \
164 sfx2/source/control/templatecontaineritem \
165 sfx2/source/control/templatedlglocalview \
166 sfx2/source/control/listview \
167 sfx2/source/control/thumbnailviewitem \
168 sfx2/source/control/thumbnailviewacc \
169 sfx2/source/control/thumbnailview \
170 sfx2/source/control/charmapcontrol \
171 sfx2/source/control/charwin \
172 sfx2/source/control/unoctitm \
173 sfx2/source/devtools/DevelopmentToolChildWindow \
174 sfx2/source/devtools/DevelopmentToolDockingWindow \
175 sfx2/source/devtools/DocumentModelTreeHandler \
176 sfx2/source/devtools/ObjectInspectorTreeHandler \
177 sfx2/source/dialog/alienwarn \
178 sfx2/source/dialog/basedlgs \
179 sfx2/source/dialog/checkin \
180 sfx2/source/dialog/dialoghelper \
181 sfx2/source/dialog/charmappopup \
182 sfx2/source/dialog/dinfdlg \
183 sfx2/source/dialog/dockwin \
184 sfx2/source/dialog/documentfontsdialog \
185 sfx2/source/dialog/filedlghelper \
186 sfx2/source/dialog/filtergrouping \
187 sfx2/source/dialog/infobar \
188 sfx2/source/dialog/inputdlg \
189 sfx2/source/dialog/mailmodel \
190 sfx2/source/dialog/bluthsnd \
191 sfx2/source/dialog/mgetempl \
192 sfx2/source/dialog/navigat \
193 sfx2/source/dialog/newstyle \
194 sfx2/source/dialog/partwnd \
195 sfx2/source/dialog/passwd \
196 sfx2/source/dialog/printopt \
197 sfx2/source/dialog/recfloat \
198 sfx2/source/dialog/securitypage \
199 sfx2/source/dialog/sfxdlg \
200 sfx2/source/dialog/splitwin \
201 sfx2/source/dialog/srchdlg \
202 sfx2/source/dialog/styfitem \
203 sfx2/source/dialog/styledlg \
204 sfx2/source/dialog/tabdlg \
205 sfx2/source/dialog/templdlg \
206 sfx2/source/dialog/StyleList \
207 sfx2/source/dialog/tplcitem \
208 sfx2/source/dialog/tplpitem \
209 sfx2/source/dialog/versdlg \
210 sfx2/source/doc/DocumentMetadataAccess \
211 sfx2/source/doc/DocumentSigner \
212 sfx2/source/doc/Metadatable \
213 sfx2/source/doc/QuerySaveDocument \
214 sfx2/source/doc/SfxDocumentMetaData \
215 sfx2/source/doc/autoredactdialog \
216 sfx2/source/doc/docfac \
217 sfx2/source/doc/docfile \
218 sfx2/source/doc/docfilt \
219 sfx2/source/doc/docinf \
220 sfx2/source/doc/docinsert \
221 sfx2/source/doc/docmacromode \
222 sfx2/source/doc/docstoragemodifylistener \
223 sfx2/source/doc/doctempl \
224 sfx2/source/doc/doctemplates \
225 sfx2/source/doc/doctemplateslocal \
226 sfx2/source/doc/exoticfileloadexception \
227 sfx2/source/doc/frmdescr \
228 sfx2/source/doc/graphhelp \
229 sfx2/source/doc/guisaveas \
230 sfx2/source/doc/iframe \
231 sfx2/source/doc/new \
232 sfx2/source/doc/objcont \
233 sfx2/source/doc/objembed \
234 sfx2/source/doc/objitem \
235 sfx2/source/doc/objmisc \
236 sfx2/source/doc/objserv \
237 sfx2/source/doc/objstor \
238 sfx2/source/doc/objxtor \
239 sfx2/source/doc/oleprops \
240 sfx2/source/doc/ownsubfilterservice \
241 sfx2/source/doc/printhelper \
242 sfx2/source/doc/docundomanager \
243 sfx2/source/doc/sfxbasemodel \
244 sfx2/source/doc/sfxmodelfactory \
245 sfx2/source/doc/SfxRedactionHelper \
246 sfx2/source/doc/signaturestate \
247 sfx2/source/doc/syspath \
248 sfx2/source/doc/zoomitem \
249 sfx2/source/doc/templatedlg \
250 sfx2/source/doc/watermarkitem \
251 sfx2/source/doc/saveastemplatedlg \
252 sfx2/source/explorer/nochaos \
253 sfx2/source/inet/inettbc \
254 sfx2/source/notebookbar/SfxNotebookBar \
255 sfx2/source/notebookbar/NotebookbarTabControl \
256 sfx2/source/notify/eventsupplier \
257 sfx2/source/notify/globalevents \
258 sfx2/source/notify/hintpost \
259 sfx2/source/notify/openurlhint \
260 sfx2/source/safemode/safemode \
261 sfx2/source/sidebar/Sidebar \
262 sfx2/source/sidebar/SidebarChildWindow \
263 sfx2/source/sidebar/SidebarDockingWindow \
264 sfx2/source/sidebar/SidebarController \
265 sfx2/source/sidebar/SidebarModelUpdate \
266 sfx2/source/sidebar/SidebarPanelBase \
267 sfx2/source/sidebar/SidebarToolBox \
268 sfx2/source/sidebar/AsynchronousCall \
269 sfx2/source/sidebar/Context \
270 sfx2/source/sidebar/ContextChangeBroadcaster \
271 sfx2/source/sidebar/ContextList \
272 sfx2/source/sidebar/ControllerFactory \
273 sfx2/source/sidebar/ControllerItem \
274 sfx2/source/sidebar/Deck \
275 sfx2/source/sidebar/DeckDescriptor \
276 sfx2/source/sidebar/DeckLayouter \
277 sfx2/source/sidebar/DeckTitleBar \
278 sfx2/source/sidebar/FocusManager \
279 sfx2/source/sidebar/IContextChangeReceiver \
280 sfx2/source/sidebar/ILayoutableWindow \
281 sfx2/source/sidebar/Panel \
282 sfx2/source/sidebar/PanelDescriptor \
283 sfx2/source/sidebar/PanelLayout \
284 sfx2/source/sidebar/PanelTitleBar \
285 sfx2/source/sidebar/ResourceManager \
286 sfx2/source/sidebar/TabBar \
287 sfx2/source/sidebar/TitleBar \
288 sfx2/source/sidebar/Theme \
289 sfx2/source/sidebar/Tools \
290 sfx2/source/sidebar/uiobject\
291 sfx2/source/sidebar/UnoPanel \
292 sfx2/source/sidebar/UnoPanels \
293 sfx2/source/sidebar/UnoDeck \
294 sfx2/source/sidebar/UnoDecks \
295 sfx2/source/sidebar/UnoSidebar \
296 sfx2/source/statbar/stbitem \
297 sfx2/source/styles/StyleManager \
298 sfx2/source/toolbox/tbxitem \
299 sfx2/source/toolbox/weldutils \
300 sfx2/source/view/classificationcontroller \
301 sfx2/source/view/classificationhelper \
302 sfx2/source/view/frame \
303 sfx2/source/view/frame2 \
304 sfx2/source/view/frmload \
305 sfx2/source/view/ipclient \
306 sfx2/source/view/lokcharthelper \
307 sfx2/source/view/lokstarmathhelper \
308 sfx2/source/view/lokhelper \
309 sfx2/source/view/printer \
310 sfx2/source/view/sfxbasecontroller \
311 sfx2/source/view/userinputinterception \
312 sfx2/source/view/viewfac \
313 sfx2/source/view/viewfrm \
314 sfx2/source/view/viewfrm2 \
315 sfx2/source/view/viewprn \
316 sfx2/source/view/viewsh \
319 $(eval $(call gb_SdiTarget_SdiTarget,sfx2/sdi/sfxslots,sfx2/sdi/sfx))
321 $(eval $(call gb_SdiTarget_set_include,sfx2/sdi/sfxslots,\
322 $$(INCLUDE) \
323 -I$(SRCDIR)/sfx2/inc \
324 -I$(SRCDIR)/sfx2/sdi \
327 ifeq ($(OS),$(filter WNT MACOSX,$(OS)))
328 $(eval $(call gb_Library_add_defs,sfx,\
329 -DENABLE_QUICKSTART_APPLET \
331 endif
333 ifeq ($(OS),MACOSX)
334 $(eval $(call gb_Library_add_cxxflags,sfx,\
335 $(gb_OBJCXXFLAGS) \
337 $(eval $(call gb_Library_add_objcxxobjects,sfx,\
338 sfx2/source/appl/shutdowniconaqua \
340 $(eval $(call gb_Library_add_libs,sfx,\
341 -lobjc \
343 $(eval $(call gb_Library_use_system_darwin_frameworks,sfx,\
344 Cocoa \
346 endif
348 ifeq ($(OS),WNT)
350 $(eval $(call gb_Library_add_exception_objects,sfx,\
351 sfx2/source/appl/shutdowniconw32 \
352 sfx2/source/doc/syspathw32 \
355 $(eval $(call gb_Library_use_system_win32_libs,sfx,\
356 advapi32 \
357 gdi32 \
358 ole32 \
359 shell32 \
360 uuid \
363 endif
365 # vim: set noet sw=4 ts=4: