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