xref: /aoo41x/main/sfx2/Library_sfx.mk (revision 4f10e875)
1cdf0e10cSrcweir#*************************************************************************
2cdf0e10cSrcweir#
3cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4cdf0e10cSrcweir#
5cdf0e10cSrcweir# Copyright 2000, 2011 Oracle and/or its affiliates.
6cdf0e10cSrcweir#
7cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite
8cdf0e10cSrcweir#
9cdf0e10cSrcweir# This file is part of OpenOffice.org.
10cdf0e10cSrcweir#
11cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify
12cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3
13cdf0e10cSrcweir# only, as published by the Free Software Foundation.
14cdf0e10cSrcweir#
15cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful,
16cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of
17cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details
19cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code).
20cdf0e10cSrcweir#
21cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License
22cdf0e10cSrcweir# version 3 along with OpenOffice.org.  If not, see
23cdf0e10cSrcweir# <http://www.openoffice.org/license.html>
24cdf0e10cSrcweir# for a copy of the LGPLv3 License.
25cdf0e10cSrcweir#
26cdf0e10cSrcweir#*************************************************************************
27cdf0e10cSrcweir
28cdf0e10cSrcweir$(eval $(call gb_Library_Library,sfx))
29cdf0e10cSrcweir
30cdf0e10cSrcweir$(eval $(call gb_Library_add_package_headers,sfx,\
31cdf0e10cSrcweir	sfx2_inc \
32cdf0e10cSrcweir	sfx2_sdi \
33cdf0e10cSrcweir))
34cdf0e10cSrcweir
35cdf0e10cSrcweir$(eval $(call gb_Library_add_precompiled_header,sfx,$(SRCDIR)/sfx2/inc/pch/precompiled_sfx2))
36cdf0e10cSrcweir
37cdf0e10cSrcweir$(eval $(call gb_Library_add_sdi_headers,sfx,sfx2/sdi/sfxslots))
38cdf0e10cSrcweir
39cdf0e10cSrcweir$(eval $(call gb_Library_set_componentfile,sfx,sfx2/util/sfx))
40cdf0e10cSrcweir
41cdf0e10cSrcweir$(eval $(call gb_Library_set_include,sfx,\
42cdf0e10cSrcweir	-I$(SRCDIR)/sfx2/inc \
43cdf0e10cSrcweir	-I$(SRCDIR)/sfx2/inc/sfx2 \
44cdf0e10cSrcweir	-I$(SRCDIR)/sfx2/source/inc \
45cdf0e10cSrcweir	-I$(SRCDIR)/sfx2/inc/pch \
46cdf0e10cSrcweir	-I$(WORKDIR)/SdiTarget/sfx2/sdi \
47cdf0e10cSrcweir	-I$(WORKDIR)/inc/ \
48cdf0e10cSrcweir	$$(INCLUDE) \
49cdf0e10cSrcweir	-I$(OUTDIR)/inc/offuh \
50cdf0e10cSrcweir	-I$(OUTDIR)/inc \
51cdf0e10cSrcweir	$(LIBXML_CFLAGS) \
52cdf0e10cSrcweir))
53cdf0e10cSrcweir
54cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,sfx,\
55cdf0e10cSrcweir	$$(DEFS) \
56cdf0e10cSrcweir	-DSFX2_DLLIMPLEMENTATION \
57cdf0e10cSrcweir))
58cdf0e10cSrcweir
59cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,sfx,\
60cdf0e10cSrcweir	comphelper \
61cdf0e10cSrcweir	cppu \
62cdf0e10cSrcweir	cppuhelper \
63cdf0e10cSrcweir	fwe \
64cdf0e10cSrcweir	i18nisolang1 \
65cdf0e10cSrcweir	sal \
66cdf0e10cSrcweir	sax \
67cdf0e10cSrcweir	sb \
68cdf0e10cSrcweir	sot \
69cdf0e10cSrcweir	stl \
70cdf0e10cSrcweir	svl \
71cdf0e10cSrcweir	svt \
72cdf0e10cSrcweir	tk \
73cdf0e10cSrcweir	tl \
74cdf0e10cSrcweir	ucbhelper \
75cdf0e10cSrcweir	utl \
76cdf0e10cSrcweir	vcl \
77cdf0e10cSrcweir	vos3 \
78cdf0e10cSrcweir	xml2 \
79cdf0e10cSrcweir	$(gb_STDLIBS) \
80cdf0e10cSrcweir))
81cdf0e10cSrcweir
82cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,sfx,\
83cdf0e10cSrcweir	sfx2/source/appl/app \
84cdf0e10cSrcweir	sfx2/source/appl/appbas \
85cdf0e10cSrcweir	sfx2/source/appl/appbaslib \
86cdf0e10cSrcweir	sfx2/source/appl/appcfg \
87cdf0e10cSrcweir	sfx2/source/appl/appchild \
88cdf0e10cSrcweir	sfx2/source/appl/appdata \
89cdf0e10cSrcweir	sfx2/source/appl/appdde \
90cdf0e10cSrcweir	sfx2/source/appl/appinit \
91cdf0e10cSrcweir	sfx2/source/appl/appmain \
92cdf0e10cSrcweir	sfx2/source/appl/appmisc \
93cdf0e10cSrcweir	sfx2/source/appl/appopen \
94cdf0e10cSrcweir	sfx2/source/appl/appquit \
95cdf0e10cSrcweir	sfx2/source/appl/appreg \
96cdf0e10cSrcweir	sfx2/source/appl/appserv \
97cdf0e10cSrcweir	sfx2/source/appl/appuno \
98cdf0e10cSrcweir	sfx2/source/appl/childwin \
99cdf0e10cSrcweir	sfx2/source/appl/fileobj \
100cdf0e10cSrcweir	sfx2/source/appl/fwkhelper \
101cdf0e10cSrcweir	sfx2/source/appl/helpdispatch \
102cdf0e10cSrcweir	sfx2/source/appl/helpinterceptor \
103cdf0e10cSrcweir	sfx2/source/appl/imagemgr \
104cdf0e10cSrcweir	sfx2/source/appl/imestatuswindow \
105cdf0e10cSrcweir	sfx2/source/appl/impldde \
106cdf0e10cSrcweir	sfx2/source/appl/linkmgr2 \
107cdf0e10cSrcweir	sfx2/source/appl/linksrc \
108cdf0e10cSrcweir	sfx2/source/appl/lnkbase2 \
109cdf0e10cSrcweir	sfx2/source/appl/module \
110cdf0e10cSrcweir	sfx2/source/appl/newhelp \
111cdf0e10cSrcweir	sfx2/source/appl/opengrf \
112cdf0e10cSrcweir	sfx2/source/appl/sfxhelp \
113cdf0e10cSrcweir	sfx2/source/appl/sfxpicklist \
114cdf0e10cSrcweir	sfx2/source/appl/shutdownicon \
115cdf0e10cSrcweir	sfx2/source/appl/workwin \
116cdf0e10cSrcweir	sfx2/source/appl/xpackcreator \
117cdf0e10cSrcweir	sfx2/source/bastyp/bitset \
118cdf0e10cSrcweir	sfx2/source/bastyp/fltfnc \
119cdf0e10cSrcweir	sfx2/source/bastyp/fltlst \
120cdf0e10cSrcweir	sfx2/source/bastyp/frmhtml \
121cdf0e10cSrcweir	sfx2/source/bastyp/frmhtmlw \
122cdf0e10cSrcweir	sfx2/source/bastyp/helper \
123cdf0e10cSrcweir	sfx2/source/bastyp/mieclip \
124cdf0e10cSrcweir	sfx2/source/bastyp/minarray \
125cdf0e10cSrcweir	sfx2/source/bastyp/misc \
126cdf0e10cSrcweir	sfx2/source/bastyp/progress \
127cdf0e10cSrcweir	sfx2/source/bastyp/sfxhtml \
128cdf0e10cSrcweir	sfx2/source/bastyp/sfxresid \
129cdf0e10cSrcweir	sfx2/source/config/evntconf \
130cdf0e10cSrcweir	sfx2/source/control/bindings \
131cdf0e10cSrcweir	sfx2/source/control/ctrlitem \
132cdf0e10cSrcweir	sfx2/source/control/macro \
133cdf0e10cSrcweir	sfx2/source/control/minfitem \
134cdf0e10cSrcweir	sfx2/source/control/msg \
135cdf0e10cSrcweir	sfx2/source/control/msgpool \
136cdf0e10cSrcweir	sfx2/source/control/objface \
137cdf0e10cSrcweir	sfx2/source/control/querystatus \
138cdf0e10cSrcweir	sfx2/source/control/request \
139cdf0e10cSrcweir	sfx2/source/control/sfxstatuslistener \
140cdf0e10cSrcweir	sfx2/source/control/shell \
141cdf0e10cSrcweir	sfx2/source/control/sorgitm \
142cdf0e10cSrcweir	sfx2/source/control/statcach \
143cdf0e10cSrcweir	sfx2/source/control/unoctitm \
144cdf0e10cSrcweir	sfx2/source/dialog/alienwarn \
145cdf0e10cSrcweir	sfx2/source/dialog/basedlgs \
146cdf0e10cSrcweir	sfx2/source/dialog/dinfdlg \
147cdf0e10cSrcweir	sfx2/source/dialog/dinfedt \
148cdf0e10cSrcweir	sfx2/source/dialog/dockwin \
149cdf0e10cSrcweir	sfx2/source/dialog/filedlghelper \
150cdf0e10cSrcweir	sfx2/source/dialog/filtergrouping \
151cdf0e10cSrcweir	sfx2/source/dialog/intro \
152cdf0e10cSrcweir	sfx2/source/dialog/itemconnect \
153cdf0e10cSrcweir	sfx2/source/dialog/mailmodel \
154cdf0e10cSrcweir	sfx2/source/dialog/mgetempl \
155cdf0e10cSrcweir	sfx2/source/dialog/navigat \
156cdf0e10cSrcweir	sfx2/source/dialog/newstyle \
157cdf0e10cSrcweir	sfx2/source/dialog/partwnd \
158cdf0e10cSrcweir	sfx2/source/dialog/passwd \
159cdf0e10cSrcweir	sfx2/source/dialog/printopt \
160cdf0e10cSrcweir	sfx2/source/dialog/recfloat \
161cdf0e10cSrcweir	sfx2/source/dialog/securitypage \
162cdf0e10cSrcweir	sfx2/source/dialog/sfxdlg \
163cdf0e10cSrcweir	sfx2/source/dialog/splitwin \
164cdf0e10cSrcweir	sfx2/source/dialog/srchdlg \
165cdf0e10cSrcweir	sfx2/source/dialog/styfitem \
166cdf0e10cSrcweir	sfx2/source/dialog/styledlg \
167cdf0e10cSrcweir	sfx2/source/dialog/tabdlg \
168cdf0e10cSrcweir	sfx2/source/dialog/taskpane \
169cdf0e10cSrcweir	sfx2/source/dialog/templdlg \
170cdf0e10cSrcweir	sfx2/source/dialog/titledockwin \
171cdf0e10cSrcweir	sfx2/source/dialog/tplcitem \
172cdf0e10cSrcweir	sfx2/source/dialog/tplpitem \
173cdf0e10cSrcweir	sfx2/source/dialog/versdlg \
174cdf0e10cSrcweir	sfx2/source/doc/DocumentMetadataAccess \
175cdf0e10cSrcweir	sfx2/source/doc/Metadatable \
176cdf0e10cSrcweir	sfx2/source/doc/QuerySaveDocument \
177cdf0e10cSrcweir	sfx2/source/doc/SfxDocumentMetaData \
178cdf0e10cSrcweir	sfx2/source/doc/docfac \
179cdf0e10cSrcweir	sfx2/source/doc/docfile \
180cdf0e10cSrcweir	sfx2/source/doc/docfilt \
181cdf0e10cSrcweir	sfx2/source/doc/docinf \
182cdf0e10cSrcweir	sfx2/source/doc/docinsert \
183cdf0e10cSrcweir	sfx2/source/doc/docmacromode \
184cdf0e10cSrcweir	sfx2/source/doc/docstoragemodifylistener \
185cdf0e10cSrcweir	sfx2/source/doc/doctdlg \
186cdf0e10cSrcweir	sfx2/source/doc/doctempl \
187cdf0e10cSrcweir	sfx2/source/doc/doctemplates \
188cdf0e10cSrcweir	sfx2/source/doc/doctemplateslocal \
189cdf0e10cSrcweir	sfx2/source/doc/docvor \
190cdf0e10cSrcweir	sfx2/source/doc/frmdescr \
191cdf0e10cSrcweir	sfx2/source/doc/graphhelp \
192cdf0e10cSrcweir	sfx2/source/doc/guisaveas \
193cdf0e10cSrcweir	sfx2/source/doc/iframe \
194cdf0e10cSrcweir	sfx2/source/doc/new \
195cdf0e10cSrcweir	sfx2/source/doc/objcont \
196cdf0e10cSrcweir	sfx2/source/doc/objembed \
197cdf0e10cSrcweir	sfx2/source/doc/objitem \
198cdf0e10cSrcweir	sfx2/source/doc/objmisc \
199cdf0e10cSrcweir	sfx2/source/doc/objserv \
200cdf0e10cSrcweir	sfx2/source/doc/objstor \
201cdf0e10cSrcweir	sfx2/source/doc/objuno \
202cdf0e10cSrcweir	sfx2/source/doc/objxtor \
203cdf0e10cSrcweir	sfx2/source/doc/oleprops \
204cdf0e10cSrcweir	sfx2/source/doc/ownsubfilterservice \
205cdf0e10cSrcweir	sfx2/source/doc/plugin \
206cdf0e10cSrcweir	sfx2/source/doc/printhelper \
207cdf0e10cSrcweir	sfx2/source/doc/querytemplate \
208cdf0e10cSrcweir	sfx2/source/doc/docundomanager \
209cdf0e10cSrcweir	sfx2/source/doc/sfxbasemodel \
210cdf0e10cSrcweir	sfx2/source/doc/sfxmodelfactory \
211cdf0e10cSrcweir	sfx2/source/doc/syspath \
212cdf0e10cSrcweir	sfx2/source/explorer/nochaos \
213cdf0e10cSrcweir	sfx2/source/inet/inettbc \
214cdf0e10cSrcweir	sfx2/source/menu/mnuitem \
215cdf0e10cSrcweir	sfx2/source/menu/mnumgr \
216cdf0e10cSrcweir	sfx2/source/menu/objmnctl \
217cdf0e10cSrcweir	sfx2/source/menu/thessubmenu \
218cdf0e10cSrcweir	sfx2/source/menu/virtmenu \
219cdf0e10cSrcweir	sfx2/source/notify/eventsupplier \
220cdf0e10cSrcweir	sfx2/source/notify/hintpost \
221cdf0e10cSrcweir	sfx2/source/statbar/stbitem \
222cdf0e10cSrcweir	sfx2/source/toolbox/imgmgr \
223cdf0e10cSrcweir	sfx2/source/toolbox/tbxitem \
224cdf0e10cSrcweir	sfx2/source/view/frame \
225cdf0e10cSrcweir	sfx2/source/view/frame2 \
226cdf0e10cSrcweir	sfx2/source/view/frmload \
227cdf0e10cSrcweir	sfx2/source/view/ipclient \
228cdf0e10cSrcweir	sfx2/source/view/orgmgr \
229cdf0e10cSrcweir	sfx2/source/view/printer \
230cdf0e10cSrcweir	sfx2/source/view/sfxbasecontroller \
231cdf0e10cSrcweir	sfx2/source/view/userinputinterception \
232cdf0e10cSrcweir	sfx2/source/view/viewfac \
233cdf0e10cSrcweir	sfx2/source/view/viewfrm \
234cdf0e10cSrcweir	sfx2/source/view/viewfrm2 \
235cdf0e10cSrcweir	sfx2/source/view/viewprn \
236cdf0e10cSrcweir	sfx2/source/view/viewsh \
237cdf0e10cSrcweir))
238cdf0e10cSrcweir
239*4f10e875SMathias Bauer# i116803: crash in impress when
240*4f10e875SMathias Bauer# "opening stylist, select graphic style, select modify from context menu, cancel dialog, close stylist"
241*4f10e875SMathias Bauer# only on unxlngi6 and unxlngi6.pro platform
242*4f10e875SMathias Bauerifeq ($(OS),LINUX)
243*4f10e875SMathias Bauer$(eval $(call gb_Library_add_cxxobjects,sfx,\
244*4f10e875SMathias Bauer	sfx2/source/control/dispatch \
245*4f10e875SMathias Bauer    , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
246*4f10e875SMathias Bauer))
247*4f10e875SMathias Bauerelse
248*4f10e875SMathias Bauer$(eval $(call gb_Library_add_exception_objects,sfx,\
249*4f10e875SMathias Bauer	sfx2/source/control/dispatch \
250*4f10e875SMathias Bauer))
251*4f10e875SMathias Bauerendif
252*4f10e875SMathias Bauer
253cdf0e10cSrcweir$(eval $(call gb_SdiTarget_SdiTarget,sfx2/sdi/sfxslots,sfx2/sdi/sfx))
254cdf0e10cSrcweir
255cdf0e10cSrcweir$(eval $(call gb_SdiTarget_set_include,sfx2/sdi/sfxslots,\
256cdf0e10cSrcweir	$$(INCLUDE) \
257cdf0e10cSrcweir	-I$(SRCDIR)/sfx2/inc/sfx2 \
258cdf0e10cSrcweir	-I$(SRCDIR)/sfx2/inc \
259cdf0e10cSrcweir	-I$(SRCDIR)/sfx2/sdi \
260cdf0e10cSrcweir))
261cdf0e10cSrcweir
262cdf0e10cSrcweirifeq ($(OS),$(filter WNT MACOSX,$(OS)))
263cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,sfx,\
264cdf0e10cSrcweir	$$(DEFS) \
265cdf0e10cSrcweir	-DENABLE_QUICKSTART_APPLET \
266cdf0e10cSrcweir))
267cdf0e10cSrcweirendif
268cdf0e10cSrcweir
269cdf0e10cSrcweirifeq ($(OS),OS2)
270cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,sfx,\
271cdf0e10cSrcweir    sfx2/source/appl/shutdowniconOs2.ob \
272cdf0e10cSrcweir))
273cdf0e10cSrcweirendif
274cdf0e10cSrcweirifeq ($(OS),MACOSX)
275cdf0e10cSrcweir$(eval $(call gb_Library_add_objcxxobjects,sfx,\
276cdf0e10cSrcweir    sfx2/source/appl/shutdowniconaqua \
277cdf0e10cSrcweir))
278cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,sfx,\
279cdf0e10cSrcweir	objc \
280cdf0e10cSrcweir	Cocoa \
281cdf0e10cSrcweir))
282cdf0e10cSrcweirendif
283cdf0e10cSrcweir
284cdf0e10cSrcweirifeq ($(OS),WNT)
285cdf0e10cSrcweir
286cdf0e10cSrcweir# workaround: disable PCH for these objects to avoid redeclaration
287cdf0e10cSrcweir# errors - needs to be fixed in module tools
288cdf0e10cSrcweir$(eval $(call gb_Library_add_cxxobjects,sfx,\
289cdf0e10cSrcweir	sfx2/source/appl/shutdowniconw32 \
290cdf0e10cSrcweir	sfx2/source/doc/sfxacldetect \
291cdf0e10cSrcweir	sfx2/source/doc/syspathw32 \
292cdf0e10cSrcweir	, $(gb_LinkTarget_EXCEPTIONFLAGS) $(gb_COMPILEROPTFLAGS) -nologo -UPRECOMPILED_HEADERS \
293cdf0e10cSrcweir))
294cdf0e10cSrcweir
295cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,sfx,\
296cdf0e10cSrcweir	gdi32 \
297cdf0e10cSrcweir	advapi32 \
298cdf0e10cSrcweir	ole32 \
299cdf0e10cSrcweir	shell32 \
300cdf0e10cSrcweir	user32 \
301cdf0e10cSrcweir	uuid \
302cdf0e10cSrcweir))
303cdf0e10cSrcweir
304cdf0e10cSrcweirelse
305cdf0e10cSrcweir
306cdf0e10cSrcweir$(eval $(call gb_Library_add_cxxobjects,sfx,\
307cdf0e10cSrcweir	sfx2/source/appl/shutdowniconw32 \
308cdf0e10cSrcweir	sfx2/source/doc/sfxacldetect \
309cdf0e10cSrcweir	, $(gb_LinkTarget_EXCEPTIONFLAGS) $(gb_COMPILEROPTFLAGS) \
310cdf0e10cSrcweir))
311cdf0e10cSrcweir
312cdf0e10cSrcweirendif
313cdf0e10cSrcweir# vim: set noet sw=4 ts=4:
314cdf0e10cSrcweir
315