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/dispatch \ 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/sidebar/Sidebar \ 221 sfx2/source/sidebar/SidebarChildWindow \ 222 sfx2/source/sidebar/SidebarDockingWindow \ 223 sfx2/source/sidebar/SidebarController \ 224 sfx2/source/sidebar/SidebarPanelBase \ 225 sfx2/source/sidebar/SidebarToolBox \ 226 sfx2/source/sidebar/Accessible \ 227 sfx2/source/sidebar/AccessibleTitleBar \ 228 sfx2/source/sidebar/AsynchronousCall \ 229 sfx2/source/sidebar/CommandInfoProvider \ 230 sfx2/source/sidebar/Context \ 231 sfx2/source/sidebar/ContextChangeBroadcaster \ 232 sfx2/source/sidebar/ContextList \ 233 sfx2/source/sidebar/ControlFactory \ 234 sfx2/source/sidebar/ControllerFactory \ 235 sfx2/source/sidebar/ControllerItem \ 236 sfx2/source/sidebar/CustomImageRadioButton \ 237 sfx2/source/sidebar/Deck \ 238 sfx2/source/sidebar/DeckDescriptor \ 239 sfx2/source/sidebar/DeckLayouter \ 240 sfx2/source/sidebar/DeckTitleBar \ 241 sfx2/source/sidebar/DrawHelper \ 242 sfx2/source/sidebar/EnumContext \ 243 sfx2/source/sidebar/FocusManager \ 244 sfx2/source/sidebar/GridLayouter \ 245 sfx2/source/sidebar/MenuButton \ 246 sfx2/source/sidebar/IContextChangeReceiver \ 247 sfx2/source/sidebar/ILayoutableWindow \ 248 sfx2/source/sidebar/Layouter \ 249 sfx2/source/sidebar/Paint \ 250 sfx2/source/sidebar/Panel \ 251 sfx2/source/sidebar/PanelDescriptor \ 252 sfx2/source/sidebar/PanelTitleBar \ 253 sfx2/source/sidebar/ResourceManager \ 254 sfx2/source/sidebar/TabBar \ 255 sfx2/source/sidebar/TabItem \ 256 sfx2/source/sidebar/TitleBar \ 257 sfx2/source/sidebar/Theme \ 258 sfx2/source/sidebar/Tools \ 259 sfx2/source/sidebar/ToolBoxBackground \ 260 sfx2/source/statbar/stbitem \ 261 sfx2/source/toolbox/imgmgr \ 262 sfx2/source/toolbox/tbxitem \ 263 sfx2/source/view/frame \ 264 sfx2/source/view/frame2 \ 265 sfx2/source/view/frmload \ 266 sfx2/source/view/ipclient \ 267 sfx2/source/view/orgmgr \ 268 sfx2/source/view/printer \ 269 sfx2/source/view/sfxbasecontroller \ 270 sfx2/source/view/userinputinterception \ 271 sfx2/source/view/viewfac \ 272 sfx2/source/view/viewfrm \ 273 sfx2/source/view/viewfrm2 \ 274 sfx2/source/view/viewprn \ 275 sfx2/source/view/viewsh \ 276)) 277 278# i116803: crash in impress when 279# "opening stylist, select graphic style, select modify from context menu, cancel dialog, close stylist" 280# only on unxlngi6 and unxlngi6.pro platform 281ifeq ($(OS),LINUX) 282$(eval $(call gb_LinkTarget_set_cxx_optimization, \ 283 sfx2/source/control/dispatch, $(gb_COMPILERNOOPTFLAGS) \ 284)) 285endif 286 287$(eval $(call gb_SdiTarget_SdiTarget,sfx2/sdi/sfxslots,sfx2/sdi/sfx)) 288 289$(eval $(call gb_SdiTarget_set_include,sfx2/sdi/sfxslots,\ 290 $$(INCLUDE) \ 291 -I$(SRCDIR)/sfx2/inc/sfx2 \ 292 -I$(SRCDIR)/sfx2/inc \ 293 -I$(SRCDIR)/sfx2/sdi \ 294)) 295 296ifeq ($(OS),$(filter WNT MACOSX,$(OS))) 297$(eval $(call gb_Library_add_defs,sfx,\ 298 -DENABLE_QUICKSTART_APPLET \ 299)) 300endif 301 302ifeq ($(ENABLE_SYSTRAY_GTK),TRUE) 303$(eval $(call gb_Library_add_defs,sfx,\ 304 -DENABLE_QUICKSTART_APPLET \ 305 -DENABLE_SYSTRAY_GTK \ 306)) 307endif 308 309ifeq ($(OS),OS2) 310$(eval $(call gb_Library_add_exception_objects,sfx,\ 311 sfx2/source/appl/shutdowniconOs2 \ 312)) 313endif 314ifeq ($(OS),MACOSX) 315$(eval $(call gb_Library_add_objcxxobjects,sfx,\ 316 sfx2/source/appl/shutdowniconaqua \ 317)) 318$(eval $(call gb_Library_add_linked_libs,sfx,\ 319 objc \ 320 Cocoa \ 321)) 322endif 323 324ifeq ($(OS),WNT) 325 326# workaround: disable PCH for these objects to avoid redeclaration 327# errors - needs to be fixed in module tools 328$(eval $(call gb_Library_add_cxxobjects,sfx,\ 329 sfx2/source/appl/shutdowniconw32 \ 330 sfx2/source/doc/sfxacldetect \ 331 sfx2/source/doc/syspathw32 \ 332 , $(gb_LinkTarget_EXCEPTIONFLAGS) $(gb_COMPILEROPTFLAGS) -nologo -UPRECOMPILED_HEADERS \ 333)) 334 335$(eval $(call gb_Library_add_linked_libs,sfx,\ 336 gdi32 \ 337 advapi32 \ 338 ole32 \ 339 shell32 \ 340 user32 \ 341 uuid \ 342)) 343 344else 345 346$(eval $(call gb_Library_add_cxxobjects,sfx,\ 347 sfx2/source/appl/shutdowniconw32 \ 348 sfx2/source/doc/sfxacldetect \ 349 , $(gb_LinkTarget_EXCEPTIONFLAGS) $(gb_COMPILEROPTFLAGS) \ 350)) 351 352endif 353# vim: set noet sw=4 ts=4: 354 355