xref: /aoo41x/main/sfx2/Library_sfx.mk (revision 3091fa8a)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24$(eval $(call gb_Library_Library,sfx))
25
26$(eval $(call gb_Library_add_package_headers,sfx,\
27	sfx2_inc \
28	sfx2_sdi \
29))
30
31$(eval $(call gb_Library_add_precompiled_header,sfx,$(SRCDIR)/sfx2/inc/pch/precompiled_sfx2))
32
33$(eval $(call gb_Library_add_sdi_headers,sfx,sfx2/sdi/sfxslots))
34
35$(eval $(call gb_Library_set_componentfile,sfx,sfx2/util/sfx))
36
37$(eval $(call gb_Library_set_include,sfx,\
38	-I$(SRCDIR)/sfx2/inc \
39	-I$(SRCDIR)/sfx2/inc/sfx2 \
40	-I$(SRCDIR)/sfx2/source/inc \
41	-I$(SRCDIR)/sfx2/inc/pch \
42	-I$(WORKDIR)/SdiTarget/sfx2/sdi \
43	-I$(WORKDIR)/inc/ \
44	$$(INCLUDE) \
45	-I$(OUTDIR)/inc/offuh \
46	-I$(OUTDIR)/inc \
47	$(LIBXML_CFLAGS) \
48))
49
50$(eval $(call gb_Library_set_defs,sfx,\
51	$$(DEFS) \
52	-DSFX2_DLLIMPLEMENTATION \
53))
54
55$(eval $(call gb_Library_add_linked_libs,sfx,\
56	comphelper \
57	cppu \
58	cppuhelper \
59	fwe \
60	i18nisolang1 \
61	sal \
62	sax \
63	sb \
64	sot \
65	stl \
66	svl \
67	svt \
68	ootk \
69	tl \
70	ucbhelper \
71	utl \
72	vcl \
73	vos3 \
74	xml2 \
75	$(gb_STDLIBS) \
76))
77
78$(eval $(call gb_Library_add_exception_objects,sfx,\
79	sfx2/source/appl/app \
80	sfx2/source/appl/appbas \
81	sfx2/source/appl/appbaslib \
82	sfx2/source/appl/appcfg \
83	sfx2/source/appl/appchild \
84	sfx2/source/appl/appdata \
85	sfx2/source/appl/appdde \
86	sfx2/source/appl/appinit \
87	sfx2/source/appl/appmain \
88	sfx2/source/appl/appmisc \
89	sfx2/source/appl/appopen \
90	sfx2/source/appl/appquit \
91	sfx2/source/appl/appreg \
92	sfx2/source/appl/appserv \
93	sfx2/source/appl/appuno \
94	sfx2/source/appl/childwin \
95	sfx2/source/appl/fileobj \
96	sfx2/source/appl/fwkhelper \
97	sfx2/source/appl/helpdispatch \
98	sfx2/source/appl/helpinterceptor \
99	sfx2/source/appl/imagemgr \
100	sfx2/source/appl/imestatuswindow \
101	sfx2/source/appl/impldde \
102	sfx2/source/appl/linkmgr2 \
103	sfx2/source/appl/linksrc \
104	sfx2/source/appl/lnkbase2 \
105	sfx2/source/appl/module \
106	sfx2/source/appl/newhelp \
107	sfx2/source/appl/opengrf \
108	sfx2/source/appl/sfxhelp \
109	sfx2/source/appl/sfxpicklist \
110	sfx2/source/appl/shutdownicon \
111	sfx2/source/appl/workwin \
112	sfx2/source/appl/xpackcreator \
113	sfx2/source/bastyp/bitset \
114	sfx2/source/bastyp/fltfnc \
115	sfx2/source/bastyp/fltlst \
116	sfx2/source/bastyp/frmhtml \
117	sfx2/source/bastyp/frmhtmlw \
118	sfx2/source/bastyp/helper \
119	sfx2/source/bastyp/mieclip \
120	sfx2/source/bastyp/minarray \
121	sfx2/source/bastyp/misc \
122	sfx2/source/bastyp/progress \
123	sfx2/source/bastyp/sfxhtml \
124	sfx2/source/bastyp/sfxresid \
125	sfx2/source/config/evntconf \
126	sfx2/source/control/bindings \
127	sfx2/source/control/ctrlitem \
128	sfx2/source/control/macro \
129	sfx2/source/control/minfitem \
130	sfx2/source/control/msg \
131	sfx2/source/control/msgpool \
132	sfx2/source/control/objface \
133	sfx2/source/control/querystatus \
134	sfx2/source/control/request \
135	sfx2/source/control/sfxstatuslistener \
136	sfx2/source/control/shell \
137	sfx2/source/control/sorgitm \
138	sfx2/source/control/statcach \
139	sfx2/source/control/unoctitm \
140	sfx2/source/dialog/alienwarn \
141	sfx2/source/dialog/basedlgs \
142	sfx2/source/dialog/dinfdlg \
143	sfx2/source/dialog/dinfedt \
144	sfx2/source/dialog/dockwin \
145	sfx2/source/dialog/filedlghelper \
146	sfx2/source/dialog/filtergrouping \
147	sfx2/source/dialog/intro \
148	sfx2/source/dialog/itemconnect \
149	sfx2/source/dialog/mailmodel \
150	sfx2/source/dialog/mgetempl \
151	sfx2/source/dialog/navigat \
152	sfx2/source/dialog/newstyle \
153	sfx2/source/dialog/partwnd \
154	sfx2/source/dialog/passwd \
155	sfx2/source/dialog/printopt \
156	sfx2/source/dialog/recfloat \
157	sfx2/source/dialog/securitypage \
158	sfx2/source/dialog/sfxdlg \
159	sfx2/source/dialog/splitwin \
160	sfx2/source/dialog/srchdlg \
161	sfx2/source/dialog/styfitem \
162	sfx2/source/dialog/styledlg \
163	sfx2/source/dialog/tabdlg \
164	sfx2/source/dialog/taskpane \
165	sfx2/source/dialog/templdlg \
166	sfx2/source/dialog/titledockwin \
167	sfx2/source/dialog/tplcitem \
168	sfx2/source/dialog/tplpitem \
169	sfx2/source/dialog/versdlg \
170	sfx2/source/doc/DocumentMetadataAccess \
171	sfx2/source/doc/Metadatable \
172	sfx2/source/doc/QuerySaveDocument \
173	sfx2/source/doc/SfxDocumentMetaData \
174	sfx2/source/doc/docfac \
175	sfx2/source/doc/docfile \
176	sfx2/source/doc/docfilt \
177	sfx2/source/doc/docinf \
178	sfx2/source/doc/docinsert \
179	sfx2/source/doc/docmacromode \
180	sfx2/source/doc/docstoragemodifylistener \
181	sfx2/source/doc/doctdlg \
182	sfx2/source/doc/doctempl \
183	sfx2/source/doc/doctemplates \
184	sfx2/source/doc/doctemplateslocal \
185	sfx2/source/doc/docvor \
186	sfx2/source/doc/frmdescr \
187	sfx2/source/doc/graphhelp \
188	sfx2/source/doc/guisaveas \
189	sfx2/source/doc/iframe \
190	sfx2/source/doc/new \
191	sfx2/source/doc/objcont \
192	sfx2/source/doc/objembed \
193	sfx2/source/doc/objitem \
194	sfx2/source/doc/objmisc \
195	sfx2/source/doc/objserv \
196	sfx2/source/doc/objstor \
197	sfx2/source/doc/objuno \
198	sfx2/source/doc/objxtor \
199	sfx2/source/doc/oleprops \
200	sfx2/source/doc/ownsubfilterservice \
201	sfx2/source/doc/plugin \
202	sfx2/source/doc/printhelper \
203	sfx2/source/doc/querytemplate \
204	sfx2/source/doc/docundomanager \
205	sfx2/source/doc/sfxbasemodel \
206	sfx2/source/doc/sfxmodelfactory \
207	sfx2/source/doc/syspath \
208	sfx2/source/explorer/nochaos \
209	sfx2/source/inet/inettbc \
210	sfx2/source/menu/mnuitem \
211	sfx2/source/menu/mnumgr \
212	sfx2/source/menu/thessubmenu \
213	sfx2/source/menu/virtmenu \
214	sfx2/source/notify/eventsupplier \
215	sfx2/source/notify/hintpost \
216	sfx2/source/sidebar/Sidebar \
217	sfx2/source/sidebar/SidebarChildWindow \
218	sfx2/source/sidebar/SidebarDockingWindow \
219	sfx2/source/sidebar/SidebarController \
220	sfx2/source/sidebar/SidebarPanelBase \
221	sfx2/source/sidebar/SidebarToolBox \
222	sfx2/source/sidebar/Accessible \
223	sfx2/source/sidebar/AccessibleTitleBar \
224	sfx2/source/sidebar/AsynchronousCall \
225	sfx2/source/sidebar/CommandInfoProvider \
226	sfx2/source/sidebar/Context \
227	sfx2/source/sidebar/ContextChangeBroadcaster \
228	sfx2/source/sidebar/ContextList \
229	sfx2/source/sidebar/ControlFactory \
230	sfx2/source/sidebar/ControllerFactory \
231	sfx2/source/sidebar/ControllerItem \
232	sfx2/source/sidebar/CustomImageRadioButton \
233	sfx2/source/sidebar/Deck \
234	sfx2/source/sidebar/DeckDescriptor \
235	sfx2/source/sidebar/DeckLayouter \
236	sfx2/source/sidebar/DeckTitleBar \
237	sfx2/source/sidebar/DrawHelper \
238	sfx2/source/sidebar/EnumContext \
239	sfx2/source/sidebar/FocusManager \
240	sfx2/source/sidebar/MenuButton \
241	sfx2/source/sidebar/IContextChangeReceiver \
242	sfx2/source/sidebar/ILayoutableWindow \
243	sfx2/source/sidebar/Paint \
244	sfx2/source/sidebar/Panel \
245	sfx2/source/sidebar/PanelDescriptor \
246	sfx2/source/sidebar/PanelTitleBar \
247	sfx2/source/sidebar/ResourceManager \
248	sfx2/source/sidebar/TabBar \
249	sfx2/source/sidebar/TabItem \
250	sfx2/source/sidebar/TitleBar \
251	sfx2/source/sidebar/Theme \
252	sfx2/source/sidebar/Tools \
253	sfx2/source/sidebar/ToolBoxBackground \
254	sfx2/source/statbar/stbitem \
255	sfx2/source/toolbox/imgmgr \
256	sfx2/source/toolbox/tbxitem \
257	sfx2/source/view/frame \
258	sfx2/source/view/frame2 \
259	sfx2/source/view/frmload \
260	sfx2/source/view/ipclient \
261	sfx2/source/view/orgmgr \
262	sfx2/source/view/printer \
263	sfx2/source/view/sfxbasecontroller \
264	sfx2/source/view/userinputinterception \
265	sfx2/source/view/viewfac \
266	sfx2/source/view/viewfrm \
267	sfx2/source/view/viewfrm2 \
268	sfx2/source/view/viewprn \
269	sfx2/source/view/viewsh \
270))
271
272# i116803: crash in impress when
273# "opening stylist, select graphic style, select modify from context menu, cancel dialog, close stylist"
274# only on unxlngi6 and unxlngi6.pro platform
275ifeq ($(OS),LINUX)
276$(eval $(call gb_Library_add_cxxobjects,sfx,\
277	sfx2/source/control/dispatch \
278    , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
279))
280else
281$(eval $(call gb_Library_add_exception_objects,sfx,\
282	sfx2/source/control/dispatch \
283))
284endif
285
286$(eval $(call gb_SdiTarget_SdiTarget,sfx2/sdi/sfxslots,sfx2/sdi/sfx))
287
288$(eval $(call gb_SdiTarget_set_include,sfx2/sdi/sfxslots,\
289	$$(INCLUDE) \
290	-I$(SRCDIR)/sfx2/inc/sfx2 \
291	-I$(SRCDIR)/sfx2/inc \
292	-I$(SRCDIR)/sfx2/sdi \
293))
294
295ifeq ($(OS),$(filter WNT MACOSX,$(OS)))
296$(eval $(call gb_Library_set_defs,sfx,\
297	$$(DEFS) \
298	-DENABLE_QUICKSTART_APPLET \
299))
300endif
301
302ifeq ($(ENABLE_SYSTRAY_GTK),TRUE)
303$(eval $(call gb_Library_set_defs,sfx,\
304	$$(DEFS) \
305	-DENABLE_QUICKSTART_APPLET \
306	-DENABLE_SYSTRAY_GTK \
307))
308endif
309
310ifeq ($(ENABLE_SYSTRAY_GTK),TRUE)
311$(eval $(call gb_Library_set_defs,sfx,\
312	$$(DEFS) \
313	-DENABLE_QUICKSTART_APPLET \
314	-DENABLE_SYSTRAY_GTK \
315))
316endif
317
318ifeq ($(OS),OS2)
319$(eval $(call gb_Library_add_exception_objects,sfx,\
320    sfx2/source/appl/shutdowniconOs2 \
321))
322endif
323ifeq ($(OS),MACOSX)
324$(eval $(call gb_Library_add_objcxxobjects,sfx,\
325    sfx2/source/appl/shutdowniconaqua \
326))
327$(eval $(call gb_Library_add_linked_libs,sfx,\
328	objc \
329	Cocoa \
330))
331endif
332
333ifeq ($(OS),WNT)
334
335# workaround: disable PCH for these objects to avoid redeclaration
336# errors - needs to be fixed in module tools
337$(eval $(call gb_Library_add_cxxobjects,sfx,\
338	sfx2/source/appl/shutdowniconw32 \
339	sfx2/source/doc/sfxacldetect \
340	sfx2/source/doc/syspathw32 \
341	, $(gb_LinkTarget_EXCEPTIONFLAGS) $(gb_COMPILEROPTFLAGS) -nologo -UPRECOMPILED_HEADERS \
342))
343
344$(eval $(call gb_Library_add_linked_libs,sfx,\
345	gdi32 \
346	advapi32 \
347	ole32 \
348	shell32 \
349	user32 \
350	uuid \
351))
352
353else
354
355$(eval $(call gb_Library_add_cxxobjects,sfx,\
356	sfx2/source/appl/shutdowniconw32 \
357	sfx2/source/doc/sfxacldetect \
358	, $(gb_LinkTarget_EXCEPTIONFLAGS) $(gb_COMPILEROPTFLAGS) \
359))
360
361endif
362# vim: set noet sw=4 ts=4:
363
364