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