xref: /trunk/main/sfx2/Library_sfx.mk (revision 7871dc3ea494bf86c742e1f4dfc9c6e20f5bcb2a)
1*7871dc3eSAndrew Rist#**************************************************************
2cdf0e10cSrcweir#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19cdf0e10cSrcweir#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew 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 \
216cdf0e10cSrcweir    sfx2/source/statbar/stbitem \
217cdf0e10cSrcweir    sfx2/source/toolbox/imgmgr \
218cdf0e10cSrcweir    sfx2/source/toolbox/tbxitem \
219cdf0e10cSrcweir    sfx2/source/view/frame \
220cdf0e10cSrcweir    sfx2/source/view/frame2 \
221cdf0e10cSrcweir    sfx2/source/view/frmload \
222cdf0e10cSrcweir    sfx2/source/view/ipclient \
223cdf0e10cSrcweir    sfx2/source/view/orgmgr \
224cdf0e10cSrcweir    sfx2/source/view/printer \
225cdf0e10cSrcweir    sfx2/source/view/sfxbasecontroller \
226cdf0e10cSrcweir    sfx2/source/view/userinputinterception \
227cdf0e10cSrcweir    sfx2/source/view/viewfac \
228cdf0e10cSrcweir    sfx2/source/view/viewfrm \
229cdf0e10cSrcweir    sfx2/source/view/viewfrm2 \
230cdf0e10cSrcweir    sfx2/source/view/viewprn \
231cdf0e10cSrcweir    sfx2/source/view/viewsh \
232cdf0e10cSrcweir))
233cdf0e10cSrcweir
2344f10e875SMathias Bauer# i116803: crash in impress when
2354f10e875SMathias Bauer# "opening stylist, select graphic style, select modify from context menu, cancel dialog, close stylist"
2364f10e875SMathias Bauer# only on unxlngi6 and unxlngi6.pro platform
2374f10e875SMathias Bauerifeq ($(OS),LINUX)
2384f10e875SMathias Bauer$(eval $(call gb_Library_add_cxxobjects,sfx,\
2394f10e875SMathias Bauer    sfx2/source/control/dispatch \
2404f10e875SMathias Bauer    , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
2414f10e875SMathias Bauer))
2424f10e875SMathias Bauerelse
2434f10e875SMathias Bauer$(eval $(call gb_Library_add_exception_objects,sfx,\
2444f10e875SMathias Bauer    sfx2/source/control/dispatch \
2454f10e875SMathias Bauer))
2464f10e875SMathias Bauerendif
2474f10e875SMathias Bauer
248cdf0e10cSrcweir$(eval $(call gb_SdiTarget_SdiTarget,sfx2/sdi/sfxslots,sfx2/sdi/sfx))
249cdf0e10cSrcweir
250cdf0e10cSrcweir$(eval $(call gb_SdiTarget_set_include,sfx2/sdi/sfxslots,\
251cdf0e10cSrcweir    $$(INCLUDE) \
252cdf0e10cSrcweir    -I$(SRCDIR)/sfx2/inc/sfx2 \
253cdf0e10cSrcweir    -I$(SRCDIR)/sfx2/inc \
254cdf0e10cSrcweir    -I$(SRCDIR)/sfx2/sdi \
255cdf0e10cSrcweir))
256cdf0e10cSrcweir
257cdf0e10cSrcweirifeq ($(OS),$(filter WNT MACOSX,$(OS)))
258cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,sfx,\
259cdf0e10cSrcweir    $$(DEFS) \
260cdf0e10cSrcweir    -DENABLE_QUICKSTART_APPLET \
261cdf0e10cSrcweir))
262cdf0e10cSrcweirendif
263cdf0e10cSrcweir
264ac203367SPedro Giffuniifeq ($(ENABLE_SYSTRAY_GTK),TRUE)
265ac203367SPedro Giffuni$(eval $(call gb_Library_set_defs,sfx,\
266ac203367SPedro Giffuni    $$(DEFS) \
267ac203367SPedro Giffuni    -DENABLE_QUICKSTART_APPLET \
268ac203367SPedro Giffuni    -DENABLE_SYSTRAY_GTK \
269ac203367SPedro Giffuni))
270ac203367SPedro Giffuniendif
271ac203367SPedro Giffuni
2722ad018beSPedro Giffuniifeq ($(ENABLE_SYSTRAY_GTK),TRUE)
2732ad018beSPedro Giffuni$(eval $(call gb_Library_set_defs,sfx,\
2742ad018beSPedro Giffuni    $$(DEFS) \
2752ad018beSPedro Giffuni    -DENABLE_QUICKSTART_APPLET \
2762ad018beSPedro Giffuni    -DENABLE_SYSTRAY_GTK \
2772ad018beSPedro Giffuni))
2782ad018beSPedro Giffuniendif
2792ad018beSPedro Giffuni
280cdf0e10cSrcweirifeq ($(OS),OS2)
281cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,sfx,\
28267a1b670SPedro Giffuni    sfx2/source/appl/shutdowniconOs2 \
283cdf0e10cSrcweir))
284cdf0e10cSrcweirendif
285cdf0e10cSrcweirifeq ($(OS),MACOSX)
286cdf0e10cSrcweir$(eval $(call gb_Library_add_objcxxobjects,sfx,\
287cdf0e10cSrcweir    sfx2/source/appl/shutdowniconaqua \
288cdf0e10cSrcweir))
289cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,sfx,\
290cdf0e10cSrcweir    objc \
291cdf0e10cSrcweir    Cocoa \
292cdf0e10cSrcweir))
293cdf0e10cSrcweirendif
294cdf0e10cSrcweir
295cdf0e10cSrcweirifeq ($(OS),WNT)
296cdf0e10cSrcweir
297cdf0e10cSrcweir# workaround: disable PCH for these objects to avoid redeclaration
298cdf0e10cSrcweir# errors - needs to be fixed in module tools
299cdf0e10cSrcweir$(eval $(call gb_Library_add_cxxobjects,sfx,\
300cdf0e10cSrcweir    sfx2/source/appl/shutdowniconw32 \
301cdf0e10cSrcweir    sfx2/source/doc/sfxacldetect \
302cdf0e10cSrcweir    sfx2/source/doc/syspathw32 \
303cdf0e10cSrcweir    , $(gb_LinkTarget_EXCEPTIONFLAGS) $(gb_COMPILEROPTFLAGS) -nologo -UPRECOMPILED_HEADERS \
304cdf0e10cSrcweir))
305cdf0e10cSrcweir
306cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,sfx,\
307cdf0e10cSrcweir    gdi32 \
308cdf0e10cSrcweir    advapi32 \
309cdf0e10cSrcweir    ole32 \
310cdf0e10cSrcweir    shell32 \
311cdf0e10cSrcweir    user32 \
312cdf0e10cSrcweir    uuid \
313cdf0e10cSrcweir))
314cdf0e10cSrcweir
315cdf0e10cSrcweirelse
316cdf0e10cSrcweir
317cdf0e10cSrcweir$(eval $(call gb_Library_add_cxxobjects,sfx,\
318cdf0e10cSrcweir    sfx2/source/appl/shutdowniconw32 \
319cdf0e10cSrcweir    sfx2/source/doc/sfxacldetect \
320cdf0e10cSrcweir    , $(gb_LinkTarget_EXCEPTIONFLAGS) $(gb_COMPILEROPTFLAGS) \
321cdf0e10cSrcweir))
322cdf0e10cSrcweir
323cdf0e10cSrcweirendif
324cdf0e10cSrcweir# vim: set noet sw=4 ts=4:
325cdf0e10cSrcweir
326