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