xref: /aoo41x/main/sfx2/Library_sfx.mk (revision 22de8995)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir$(eval $(call gb_Library_Library,sfx))
25cdf0e10cSrcweir
26cdf0e10cSrcweir$(eval $(call gb_Library_add_package_headers,sfx,\
27cdf0e10cSrcweir	sfx2_inc \
28cdf0e10cSrcweir	sfx2_sdi \
29cdf0e10cSrcweir))
30cdf0e10cSrcweir
31cdf0e10cSrcweir$(eval $(call gb_Library_add_precompiled_header,sfx,$(SRCDIR)/sfx2/inc/pch/precompiled_sfx2))
32cdf0e10cSrcweir
33cdf0e10cSrcweir$(eval $(call gb_Library_add_sdi_headers,sfx,sfx2/sdi/sfxslots))
34cdf0e10cSrcweir
35cdf0e10cSrcweir$(eval $(call gb_Library_set_componentfile,sfx,sfx2/util/sfx))
36cdf0e10cSrcweir
37cdf0e10cSrcweir$(eval $(call gb_Library_set_include,sfx,\
38cdf0e10cSrcweir	-I$(SRCDIR)/sfx2/inc \
39cdf0e10cSrcweir	-I$(SRCDIR)/sfx2/inc/sfx2 \
40cdf0e10cSrcweir	-I$(SRCDIR)/sfx2/source/inc \
41cdf0e10cSrcweir	-I$(SRCDIR)/sfx2/inc/pch \
42cdf0e10cSrcweir	-I$(WORKDIR)/SdiTarget/sfx2/sdi \
43cdf0e10cSrcweir	-I$(WORKDIR)/inc/ \
44cdf0e10cSrcweir	$$(INCLUDE) \
45cdf0e10cSrcweir	-I$(OUTDIR)/inc/offuh \
46cdf0e10cSrcweir	-I$(OUTDIR)/inc \
47cdf0e10cSrcweir	$(LIBXML_CFLAGS) \
48cdf0e10cSrcweir))
49cdf0e10cSrcweir
50cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,sfx,\
51cdf0e10cSrcweir	$$(DEFS) \
52cdf0e10cSrcweir	-DSFX2_DLLIMPLEMENTATION \
53cdf0e10cSrcweir))
54cdf0e10cSrcweir
55cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,sfx,\
56cdf0e10cSrcweir	comphelper \
57cdf0e10cSrcweir	cppu \
58cdf0e10cSrcweir	cppuhelper \
59cdf0e10cSrcweir	fwe \
60cdf0e10cSrcweir	i18nisolang1 \
61cdf0e10cSrcweir	sal \
62cdf0e10cSrcweir	sax \
63cdf0e10cSrcweir	sb \
64cdf0e10cSrcweir	sot \
65cdf0e10cSrcweir	stl \
66cdf0e10cSrcweir	svl \
67cdf0e10cSrcweir	svt \
68cdf0e10cSrcweir	tk \
69cdf0e10cSrcweir	tl \
70cdf0e10cSrcweir	ucbhelper \
71cdf0e10cSrcweir	utl \
72cdf0e10cSrcweir	vcl \
73cdf0e10cSrcweir	vos3 \
74cdf0e10cSrcweir	xml2 \
75cdf0e10cSrcweir	$(gb_STDLIBS) \
76cdf0e10cSrcweir))
77cdf0e10cSrcweir
78cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,sfx,\
79cdf0e10cSrcweir	sfx2/source/appl/app \
80cdf0e10cSrcweir	sfx2/source/appl/appbas \
81cdf0e10cSrcweir	sfx2/source/appl/appbaslib \
82cdf0e10cSrcweir	sfx2/source/appl/appcfg \
83cdf0e10cSrcweir	sfx2/source/appl/appchild \
84cdf0e10cSrcweir	sfx2/source/appl/appdata \
85cdf0e10cSrcweir	sfx2/source/appl/appdde \
86cdf0e10cSrcweir	sfx2/source/appl/appinit \
87cdf0e10cSrcweir	sfx2/source/appl/appmain \
88cdf0e10cSrcweir	sfx2/source/appl/appmisc \
89cdf0e10cSrcweir	sfx2/source/appl/appopen \
90cdf0e10cSrcweir	sfx2/source/appl/appquit \
91cdf0e10cSrcweir	sfx2/source/appl/appreg \
92cdf0e10cSrcweir	sfx2/source/appl/appserv \
93cdf0e10cSrcweir	sfx2/source/appl/appuno \
94cdf0e10cSrcweir	sfx2/source/appl/childwin \
95cdf0e10cSrcweir	sfx2/source/appl/fileobj \
96cdf0e10cSrcweir	sfx2/source/appl/fwkhelper \
97cdf0e10cSrcweir	sfx2/source/appl/helpdispatch \
98cdf0e10cSrcweir	sfx2/source/appl/helpinterceptor \
99cdf0e10cSrcweir	sfx2/source/appl/imagemgr \
100cdf0e10cSrcweir	sfx2/source/appl/imestatuswindow \
101cdf0e10cSrcweir	sfx2/source/appl/impldde \
102cdf0e10cSrcweir	sfx2/source/appl/linkmgr2 \
103cdf0e10cSrcweir	sfx2/source/appl/linksrc \
104cdf0e10cSrcweir	sfx2/source/appl/lnkbase2 \
105cdf0e10cSrcweir	sfx2/source/appl/module \
106cdf0e10cSrcweir	sfx2/source/appl/newhelp \
107cdf0e10cSrcweir	sfx2/source/appl/opengrf \
108cdf0e10cSrcweir	sfx2/source/appl/sfxhelp \
109cdf0e10cSrcweir	sfx2/source/appl/sfxpicklist \
110cdf0e10cSrcweir	sfx2/source/appl/shutdownicon \
111cdf0e10cSrcweir	sfx2/source/appl/workwin \
112cdf0e10cSrcweir	sfx2/source/appl/xpackcreator \
113cdf0e10cSrcweir	sfx2/source/bastyp/bitset \
114cdf0e10cSrcweir	sfx2/source/bastyp/fltfnc \
115cdf0e10cSrcweir	sfx2/source/bastyp/fltlst \
116cdf0e10cSrcweir	sfx2/source/bastyp/frmhtml \
117cdf0e10cSrcweir	sfx2/source/bastyp/frmhtmlw \
118cdf0e10cSrcweir	sfx2/source/bastyp/helper \
119cdf0e10cSrcweir	sfx2/source/bastyp/mieclip \
120cdf0e10cSrcweir	sfx2/source/bastyp/minarray \
121cdf0e10cSrcweir	sfx2/source/bastyp/misc \
122cdf0e10cSrcweir	sfx2/source/bastyp/progress \
123cdf0e10cSrcweir	sfx2/source/bastyp/sfxhtml \
124cdf0e10cSrcweir	sfx2/source/bastyp/sfxresid \
125cdf0e10cSrcweir	sfx2/source/config/evntconf \
126cdf0e10cSrcweir	sfx2/source/control/bindings \
127cdf0e10cSrcweir	sfx2/source/control/ctrlitem \
128cdf0e10cSrcweir	sfx2/source/control/macro \
129cdf0e10cSrcweir	sfx2/source/control/minfitem \
130cdf0e10cSrcweir	sfx2/source/control/msg \
131cdf0e10cSrcweir	sfx2/source/control/msgpool \
132cdf0e10cSrcweir	sfx2/source/control/objface \
133cdf0e10cSrcweir	sfx2/source/control/querystatus \
134cdf0e10cSrcweir	sfx2/source/control/request \
135cdf0e10cSrcweir	sfx2/source/control/sfxstatuslistener \
136cdf0e10cSrcweir	sfx2/source/control/shell \
137cdf0e10cSrcweir	sfx2/source/control/sorgitm \
138cdf0e10cSrcweir	sfx2/source/control/statcach \
139cdf0e10cSrcweir	sfx2/source/control/unoctitm \
140cdf0e10cSrcweir	sfx2/source/dialog/alienwarn \
141cdf0e10cSrcweir	sfx2/source/dialog/basedlgs \
142cdf0e10cSrcweir	sfx2/source/dialog/dinfdlg \
143cdf0e10cSrcweir	sfx2/source/dialog/dinfedt \
144cdf0e10cSrcweir	sfx2/source/dialog/dockwin \
145cdf0e10cSrcweir	sfx2/source/dialog/filedlghelper \
146cdf0e10cSrcweir	sfx2/source/dialog/filtergrouping \
147cdf0e10cSrcweir	sfx2/source/dialog/intro \
148cdf0e10cSrcweir	sfx2/source/dialog/itemconnect \
149cdf0e10cSrcweir	sfx2/source/dialog/mailmodel \
150cdf0e10cSrcweir	sfx2/source/dialog/mgetempl \
151cdf0e10cSrcweir	sfx2/source/dialog/navigat \
152cdf0e10cSrcweir	sfx2/source/dialog/newstyle \
153cdf0e10cSrcweir	sfx2/source/dialog/partwnd \
154cdf0e10cSrcweir	sfx2/source/dialog/passwd \
155cdf0e10cSrcweir	sfx2/source/dialog/printopt \
156cdf0e10cSrcweir	sfx2/source/dialog/recfloat \
157cdf0e10cSrcweir	sfx2/source/dialog/securitypage \
158cdf0e10cSrcweir	sfx2/source/dialog/sfxdlg \
159cdf0e10cSrcweir	sfx2/source/dialog/splitwin \
160cdf0e10cSrcweir	sfx2/source/dialog/srchdlg \
161cdf0e10cSrcweir	sfx2/source/dialog/styfitem \
162cdf0e10cSrcweir	sfx2/source/dialog/styledlg \
163cdf0e10cSrcweir	sfx2/source/dialog/tabdlg \
164cdf0e10cSrcweir	sfx2/source/dialog/taskpane \
165cdf0e10cSrcweir	sfx2/source/dialog/templdlg \
166cdf0e10cSrcweir	sfx2/source/dialog/titledockwin \
167cdf0e10cSrcweir	sfx2/source/dialog/tplcitem \
168cdf0e10cSrcweir	sfx2/source/dialog/tplpitem \
169cdf0e10cSrcweir	sfx2/source/dialog/versdlg \
170cdf0e10cSrcweir	sfx2/source/doc/DocumentMetadataAccess \
171cdf0e10cSrcweir	sfx2/source/doc/Metadatable \
172cdf0e10cSrcweir	sfx2/source/doc/QuerySaveDocument \
173cdf0e10cSrcweir	sfx2/source/doc/SfxDocumentMetaData \
174cdf0e10cSrcweir	sfx2/source/doc/docfac \
175cdf0e10cSrcweir	sfx2/source/doc/docfile \
176cdf0e10cSrcweir	sfx2/source/doc/docfilt \
177cdf0e10cSrcweir	sfx2/source/doc/docinf \
178cdf0e10cSrcweir	sfx2/source/doc/docinsert \
179cdf0e10cSrcweir	sfx2/source/doc/docmacromode \
180cdf0e10cSrcweir	sfx2/source/doc/docstoragemodifylistener \
181cdf0e10cSrcweir	sfx2/source/doc/doctdlg \
182cdf0e10cSrcweir	sfx2/source/doc/doctempl \
183cdf0e10cSrcweir	sfx2/source/doc/doctemplates \
184cdf0e10cSrcweir	sfx2/source/doc/doctemplateslocal \
185cdf0e10cSrcweir	sfx2/source/doc/docvor \
186cdf0e10cSrcweir	sfx2/source/doc/frmdescr \
187cdf0e10cSrcweir	sfx2/source/doc/graphhelp \
188cdf0e10cSrcweir	sfx2/source/doc/guisaveas \
189cdf0e10cSrcweir	sfx2/source/doc/iframe \
190cdf0e10cSrcweir	sfx2/source/doc/new \
191cdf0e10cSrcweir	sfx2/source/doc/objcont \
192cdf0e10cSrcweir	sfx2/source/doc/objembed \
193cdf0e10cSrcweir	sfx2/source/doc/objitem \
194cdf0e10cSrcweir	sfx2/source/doc/objmisc \
195cdf0e10cSrcweir	sfx2/source/doc/objserv \
196cdf0e10cSrcweir	sfx2/source/doc/objstor \
197cdf0e10cSrcweir	sfx2/source/doc/objuno \
198cdf0e10cSrcweir	sfx2/source/doc/objxtor \
199cdf0e10cSrcweir	sfx2/source/doc/oleprops \
200cdf0e10cSrcweir	sfx2/source/doc/ownsubfilterservice \
201cdf0e10cSrcweir	sfx2/source/doc/plugin \
202cdf0e10cSrcweir	sfx2/source/doc/printhelper \
203cdf0e10cSrcweir	sfx2/source/doc/querytemplate \
204cdf0e10cSrcweir	sfx2/source/doc/docundomanager \
205cdf0e10cSrcweir	sfx2/source/doc/sfxbasemodel \
206cdf0e10cSrcweir	sfx2/source/doc/sfxmodelfactory \
207cdf0e10cSrcweir	sfx2/source/doc/syspath \
208cdf0e10cSrcweir	sfx2/source/explorer/nochaos \
209cdf0e10cSrcweir	sfx2/source/inet/inettbc \
210cdf0e10cSrcweir	sfx2/source/menu/mnuitem \
211cdf0e10cSrcweir	sfx2/source/menu/mnumgr \
212cdf0e10cSrcweir	sfx2/source/menu/thessubmenu \
213cdf0e10cSrcweir	sfx2/source/menu/virtmenu \
214cdf0e10cSrcweir	sfx2/source/notify/eventsupplier \
215cdf0e10cSrcweir	sfx2/source/notify/hintpost \
216*22de8995SAndre Fischer	sfx2/source/sidebar/SidebarChildWindow \
217*22de8995SAndre Fischer	sfx2/source/sidebar/SidebarDockingWindow \
218*22de8995SAndre Fischer	sfx2/source/sidebar/SidebarController \
219*22de8995SAndre Fischer	sfx2/source/sidebar/ContentPanelManager \
220*22de8995SAndre Fischer	sfx2/source/sidebar/Deck \
221*22de8995SAndre Fischer	sfx2/source/sidebar/Panel \
222*22de8995SAndre Fischer	sfx2/source/sidebar/SidebarLayouter \
223*22de8995SAndre Fischer	sfx2/source/sidebar/TabBar \
224*22de8995SAndre Fischer	sfx2/source/sidebar/TitleBar \
225*22de8995SAndre Fischer	sfx2/source/sidebar/Context \
226cdf0e10cSrcweir	sfx2/source/statbar/stbitem \
227cdf0e10cSrcweir	sfx2/source/toolbox/imgmgr \
228cdf0e10cSrcweir	sfx2/source/toolbox/tbxitem \
229cdf0e10cSrcweir	sfx2/source/view/frame \
230cdf0e10cSrcweir	sfx2/source/view/frame2 \
231cdf0e10cSrcweir	sfx2/source/view/frmload \
232cdf0e10cSrcweir	sfx2/source/view/ipclient \
233cdf0e10cSrcweir	sfx2/source/view/orgmgr \
234cdf0e10cSrcweir	sfx2/source/view/printer \
235cdf0e10cSrcweir	sfx2/source/view/sfxbasecontroller \
236cdf0e10cSrcweir	sfx2/source/view/userinputinterception \
237cdf0e10cSrcweir	sfx2/source/view/viewfac \
238cdf0e10cSrcweir	sfx2/source/view/viewfrm \
239cdf0e10cSrcweir	sfx2/source/view/viewfrm2 \
240cdf0e10cSrcweir	sfx2/source/view/viewprn \
241cdf0e10cSrcweir	sfx2/source/view/viewsh \
242cdf0e10cSrcweir))
243cdf0e10cSrcweir
2444f10e875SMathias Bauer# i116803: crash in impress when
2454f10e875SMathias Bauer# "opening stylist, select graphic style, select modify from context menu, cancel dialog, close stylist"
2464f10e875SMathias Bauer# only on unxlngi6 and unxlngi6.pro platform
2474f10e875SMathias Bauerifeq ($(OS),LINUX)
2484f10e875SMathias Bauer$(eval $(call gb_Library_add_cxxobjects,sfx,\
2494f10e875SMathias Bauer	sfx2/source/control/dispatch \
2504f10e875SMathias Bauer    , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
2514f10e875SMathias Bauer))
2524f10e875SMathias Bauerelse
2534f10e875SMathias Bauer$(eval $(call gb_Library_add_exception_objects,sfx,\
2544f10e875SMathias Bauer	sfx2/source/control/dispatch \
2554f10e875SMathias Bauer))
2564f10e875SMathias Bauerendif
2574f10e875SMathias Bauer
258cdf0e10cSrcweir$(eval $(call gb_SdiTarget_SdiTarget,sfx2/sdi/sfxslots,sfx2/sdi/sfx))
259cdf0e10cSrcweir
260cdf0e10cSrcweir$(eval $(call gb_SdiTarget_set_include,sfx2/sdi/sfxslots,\
261cdf0e10cSrcweir	$$(INCLUDE) \
262cdf0e10cSrcweir	-I$(SRCDIR)/sfx2/inc/sfx2 \
263cdf0e10cSrcweir	-I$(SRCDIR)/sfx2/inc \
264cdf0e10cSrcweir	-I$(SRCDIR)/sfx2/sdi \
265cdf0e10cSrcweir))
266cdf0e10cSrcweir
267cdf0e10cSrcweirifeq ($(OS),$(filter WNT MACOSX,$(OS)))
268cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,sfx,\
269cdf0e10cSrcweir	$$(DEFS) \
270cdf0e10cSrcweir	-DENABLE_QUICKSTART_APPLET \
271cdf0e10cSrcweir))
272cdf0e10cSrcweirendif
273cdf0e10cSrcweir
2742ad018beSPedro Giffuniifeq ($(ENABLE_SYSTRAY_GTK),TRUE)
2752ad018beSPedro Giffuni$(eval $(call gb_Library_set_defs,sfx,\
2762ad018beSPedro Giffuni	$$(DEFS) \
2772ad018beSPedro Giffuni	-DENABLE_QUICKSTART_APPLET \
2782ad018beSPedro Giffuni	-DENABLE_SYSTRAY_GTK \
2792ad018beSPedro Giffuni))
2802ad018beSPedro Giffuniendif
2812ad018beSPedro Giffuni
282ac203367SPedro Giffuniifeq ($(ENABLE_SYSTRAY_GTK),TRUE)
283ac203367SPedro Giffuni$(eval $(call gb_Library_set_defs,sfx,\
284ac203367SPedro Giffuni	$$(DEFS) \
285ac203367SPedro Giffuni	-DENABLE_QUICKSTART_APPLET \
286ac203367SPedro Giffuni	-DENABLE_SYSTRAY_GTK \
287ac203367SPedro Giffuni))
288ac203367SPedro Giffuniendif
289ac203367SPedro Giffuni
290cdf0e10cSrcweirifeq ($(OS),OS2)
291cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,sfx,\
29267a1b670SPedro Giffuni    sfx2/source/appl/shutdowniconOs2 \
293cdf0e10cSrcweir))
294cdf0e10cSrcweirendif
295cdf0e10cSrcweirifeq ($(OS),MACOSX)
296cdf0e10cSrcweir$(eval $(call gb_Library_add_objcxxobjects,sfx,\
297cdf0e10cSrcweir    sfx2/source/appl/shutdowniconaqua \
298cdf0e10cSrcweir))
299cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,sfx,\
300cdf0e10cSrcweir	objc \
301cdf0e10cSrcweir	Cocoa \
302cdf0e10cSrcweir))
303cdf0e10cSrcweirendif
304cdf0e10cSrcweir
305cdf0e10cSrcweirifeq ($(OS),WNT)
306cdf0e10cSrcweir
307cdf0e10cSrcweir# workaround: disable PCH for these objects to avoid redeclaration
308cdf0e10cSrcweir# errors - needs to be fixed in module tools
309cdf0e10cSrcweir$(eval $(call gb_Library_add_cxxobjects,sfx,\
310cdf0e10cSrcweir	sfx2/source/appl/shutdowniconw32 \
311cdf0e10cSrcweir	sfx2/source/doc/sfxacldetect \
312cdf0e10cSrcweir	sfx2/source/doc/syspathw32 \
313cdf0e10cSrcweir	, $(gb_LinkTarget_EXCEPTIONFLAGS) $(gb_COMPILEROPTFLAGS) -nologo -UPRECOMPILED_HEADERS \
314cdf0e10cSrcweir))
315cdf0e10cSrcweir
316cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,sfx,\
317cdf0e10cSrcweir	gdi32 \
318cdf0e10cSrcweir	advapi32 \
319cdf0e10cSrcweir	ole32 \
320cdf0e10cSrcweir	shell32 \
321cdf0e10cSrcweir	user32 \
322cdf0e10cSrcweir	uuid \
323cdf0e10cSrcweir))
324cdf0e10cSrcweir
325cdf0e10cSrcweirelse
326cdf0e10cSrcweir
327cdf0e10cSrcweir$(eval $(call gb_Library_add_cxxobjects,sfx,\
328cdf0e10cSrcweir	sfx2/source/appl/shutdowniconw32 \
329cdf0e10cSrcweir	sfx2/source/doc/sfxacldetect \
330cdf0e10cSrcweir	, $(gb_LinkTarget_EXCEPTIONFLAGS) $(gb_COMPILEROPTFLAGS) \
331cdf0e10cSrcweir))
332cdf0e10cSrcweir
333cdf0e10cSrcweirendif
334cdf0e10cSrcweir# vim: set noet sw=4 ts=4:
335cdf0e10cSrcweir
336