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