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/objmnctl \ 217 sfx2/source/menu/thessubmenu \ 218 sfx2/source/menu/virtmenu \ 219 sfx2/source/notify/eventsupplier \ 220 sfx2/source/notify/hintpost \ 221 sfx2/source/statbar/stbitem \ 222 sfx2/source/toolbox/imgmgr \ 223 sfx2/source/toolbox/tbxitem \ 224 sfx2/source/view/frame \ 225 sfx2/source/view/frame2 \ 226 sfx2/source/view/frmload \ 227 sfx2/source/view/ipclient \ 228 sfx2/source/view/orgmgr \ 229 sfx2/source/view/printer \ 230 sfx2/source/view/sfxbasecontroller \ 231 sfx2/source/view/userinputinterception \ 232 sfx2/source/view/viewfac \ 233 sfx2/source/view/viewfrm \ 234 sfx2/source/view/viewfrm2 \ 235 sfx2/source/view/viewprn \ 236 sfx2/source/view/viewsh \ 237)) 238 239# i116803: crash in impress when 240# "opening stylist, select graphic style, select modify from context menu, cancel dialog, close stylist" 241# only on unxlngi6 and unxlngi6.pro platform 242ifeq ($(OS),LINUX) 243$(eval $(call gb_Library_add_cxxobjects,sfx,\ 244 sfx2/source/control/dispatch \ 245 , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \ 246)) 247else 248$(eval $(call gb_Library_add_exception_objects,sfx,\ 249 sfx2/source/control/dispatch \ 250)) 251endif 252 253$(eval $(call gb_SdiTarget_SdiTarget,sfx2/sdi/sfxslots,sfx2/sdi/sfx)) 254 255$(eval $(call gb_SdiTarget_set_include,sfx2/sdi/sfxslots,\ 256 $$(INCLUDE) \ 257 -I$(SRCDIR)/sfx2/inc/sfx2 \ 258 -I$(SRCDIR)/sfx2/inc \ 259 -I$(SRCDIR)/sfx2/sdi \ 260)) 261 262ifeq ($(OS),$(filter WNT MACOSX,$(OS))) 263$(eval $(call gb_Library_set_defs,sfx,\ 264 $$(DEFS) \ 265 -DENABLE_QUICKSTART_APPLET \ 266)) 267endif 268 269ifeq ($(OS),OS2) 270$(eval $(call gb_Library_add_exception_objects,sfx,\ 271 sfx2/source/appl/shutdowniconOs2.ob \ 272)) 273endif 274ifeq ($(OS),MACOSX) 275$(eval $(call gb_Library_add_objcxxobjects,sfx,\ 276 sfx2/source/appl/shutdowniconaqua \ 277)) 278$(eval $(call gb_Library_add_linked_libs,sfx,\ 279 objc \ 280 Cocoa \ 281)) 282endif 283 284ifeq ($(OS),WNT) 285 286# workaround: disable PCH for these objects to avoid redeclaration 287# errors - needs to be fixed in module tools 288$(eval $(call gb_Library_add_cxxobjects,sfx,\ 289 sfx2/source/appl/shutdowniconw32 \ 290 sfx2/source/doc/sfxacldetect \ 291 sfx2/source/doc/syspathw32 \ 292 , $(gb_LinkTarget_EXCEPTIONFLAGS) $(gb_COMPILEROPTFLAGS) -nologo -UPRECOMPILED_HEADERS \ 293)) 294 295$(eval $(call gb_Library_add_linked_libs,sfx,\ 296 gdi32 \ 297 advapi32 \ 298 ole32 \ 299 shell32 \ 300 user32 \ 301 uuid \ 302)) 303 304else 305 306$(eval $(call gb_Library_add_cxxobjects,sfx,\ 307 sfx2/source/appl/shutdowniconw32 \ 308 sfx2/source/doc/sfxacldetect \ 309 , $(gb_LinkTarget_EXCEPTIONFLAGS) $(gb_COMPILEROPTFLAGS) \ 310)) 311 312endif 313# vim: set noet sw=4 ts=4: 314 315