17871dc3eSAndrew Rist#************************************************************** 27871dc3eSAndrew Rist# 37871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 47871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 57871dc3eSAndrew Rist# distributed with this work for additional information 67871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 77871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 87871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 97871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 107871dc3eSAndrew Rist# 117871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 127871dc3eSAndrew Rist# 137871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 147871dc3eSAndrew Rist# software distributed under the License is distributed on an 157871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 167871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 177871dc3eSAndrew Rist# specific language governing permissions and limitations 187871dc3eSAndrew Rist# under the License. 197871dc3eSAndrew Rist# 207871dc3eSAndrew Rist#************************************************************** 217871dc3eSAndrew Rist 227871dc3eSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir$(eval $(call gb_Library_Library,sfx)) 25cdf0e10cSrcweir 26cdf0e10cSrcweir$(eval $(call gb_Library_add_package_headers,sfx,\ 27cdf0e10cSrcweir sfx2_inc \ 28cdf0e10cSrcweir sfx2_sdi \ 29cdf0e10cSrcweir)) 30cdf0e10cSrcweir 31cdf0e10cSrcweir$(eval $(call gb_Library_add_precompiled_header,sfx,$(SRCDIR)/sfx2/inc/pch/precompiled_sfx2)) 32cdf0e10cSrcweir 33cdf0e10cSrcweir$(eval $(call gb_Library_add_sdi_headers,sfx,sfx2/sdi/sfxslots)) 34cdf0e10cSrcweir 35cdf0e10cSrcweir$(eval $(call gb_Library_set_componentfile,sfx,sfx2/util/sfx)) 36cdf0e10cSrcweir 37cdf0e10cSrcweir$(eval $(call gb_Library_set_include,sfx,\ 38cdf0e10cSrcweir -I$(SRCDIR)/sfx2/inc \ 39cdf0e10cSrcweir -I$(SRCDIR)/sfx2/inc/sfx2 \ 40cdf0e10cSrcweir -I$(SRCDIR)/sfx2/source/inc \ 41cdf0e10cSrcweir -I$(SRCDIR)/sfx2/inc/pch \ 42cdf0e10cSrcweir -I$(WORKDIR)/SdiTarget/sfx2/sdi \ 43cdf0e10cSrcweir -I$(WORKDIR)/inc/ \ 44cdf0e10cSrcweir $$(INCLUDE) \ 45cdf0e10cSrcweir -I$(OUTDIR)/inc/offuh \ 46cdf0e10cSrcweir -I$(OUTDIR)/inc \ 47cdf0e10cSrcweir $(LIBXML_CFLAGS) \ 48cdf0e10cSrcweir)) 49cdf0e10cSrcweir 50cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,sfx,\ 51cdf0e10cSrcweir $$(DEFS) \ 52cdf0e10cSrcweir -DSFX2_DLLIMPLEMENTATION \ 53cdf0e10cSrcweir)) 54cdf0e10cSrcweir 55cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,sfx,\ 56cdf0e10cSrcweir comphelper \ 57cdf0e10cSrcweir cppu \ 58cdf0e10cSrcweir cppuhelper \ 59cdf0e10cSrcweir fwe \ 60cdf0e10cSrcweir i18nisolang1 \ 61cdf0e10cSrcweir sal \ 62cdf0e10cSrcweir sax \ 63cdf0e10cSrcweir sb \ 64cdf0e10cSrcweir sot \ 65cdf0e10cSrcweir stl \ 66cdf0e10cSrcweir svl \ 67cdf0e10cSrcweir svt \ 68cdf0e10cSrcweir tk \ 69cdf0e10cSrcweir tl \ 70cdf0e10cSrcweir ucbhelper \ 71cdf0e10cSrcweir utl \ 72cdf0e10cSrcweir vcl \ 73cdf0e10cSrcweir vos3 \ 74cdf0e10cSrcweir xml2 \ 75cdf0e10cSrcweir $(gb_STDLIBS) \ 76cdf0e10cSrcweir)) 77cdf0e10cSrcweir 78cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,sfx,\ 79cdf0e10cSrcweir sfx2/source/appl/app \ 80cdf0e10cSrcweir sfx2/source/appl/appbas \ 81cdf0e10cSrcweir sfx2/source/appl/appbaslib \ 82cdf0e10cSrcweir sfx2/source/appl/appcfg \ 83cdf0e10cSrcweir sfx2/source/appl/appchild \ 84cdf0e10cSrcweir sfx2/source/appl/appdata \ 85cdf0e10cSrcweir sfx2/source/appl/appdde \ 86cdf0e10cSrcweir sfx2/source/appl/appinit \ 87cdf0e10cSrcweir sfx2/source/appl/appmain \ 88cdf0e10cSrcweir sfx2/source/appl/appmisc \ 89cdf0e10cSrcweir sfx2/source/appl/appopen \ 90cdf0e10cSrcweir sfx2/source/appl/appquit \ 91cdf0e10cSrcweir sfx2/source/appl/appreg \ 92cdf0e10cSrcweir sfx2/source/appl/appserv \ 93cdf0e10cSrcweir sfx2/source/appl/appuno \ 94cdf0e10cSrcweir sfx2/source/appl/childwin \ 95cdf0e10cSrcweir sfx2/source/appl/fileobj \ 96cdf0e10cSrcweir sfx2/source/appl/fwkhelper \ 97cdf0e10cSrcweir sfx2/source/appl/helpdispatch \ 98cdf0e10cSrcweir sfx2/source/appl/helpinterceptor \ 99cdf0e10cSrcweir sfx2/source/appl/imagemgr \ 100cdf0e10cSrcweir sfx2/source/appl/imestatuswindow \ 101cdf0e10cSrcweir sfx2/source/appl/impldde \ 102cdf0e10cSrcweir sfx2/source/appl/linkmgr2 \ 103cdf0e10cSrcweir sfx2/source/appl/linksrc \ 104cdf0e10cSrcweir sfx2/source/appl/lnkbase2 \ 105cdf0e10cSrcweir sfx2/source/appl/module \ 106cdf0e10cSrcweir sfx2/source/appl/newhelp \ 107cdf0e10cSrcweir sfx2/source/appl/opengrf \ 108cdf0e10cSrcweir sfx2/source/appl/sfxhelp \ 109cdf0e10cSrcweir sfx2/source/appl/sfxpicklist \ 110cdf0e10cSrcweir sfx2/source/appl/shutdownicon \ 111cdf0e10cSrcweir sfx2/source/appl/workwin \ 112cdf0e10cSrcweir sfx2/source/appl/xpackcreator \ 113cdf0e10cSrcweir sfx2/source/bastyp/bitset \ 114cdf0e10cSrcweir sfx2/source/bastyp/fltfnc \ 115cdf0e10cSrcweir sfx2/source/bastyp/fltlst \ 116cdf0e10cSrcweir sfx2/source/bastyp/frmhtml \ 117cdf0e10cSrcweir sfx2/source/bastyp/frmhtmlw \ 118cdf0e10cSrcweir sfx2/source/bastyp/helper \ 119cdf0e10cSrcweir sfx2/source/bastyp/mieclip \ 120cdf0e10cSrcweir sfx2/source/bastyp/minarray \ 121cdf0e10cSrcweir sfx2/source/bastyp/misc \ 122cdf0e10cSrcweir sfx2/source/bastyp/progress \ 123cdf0e10cSrcweir sfx2/source/bastyp/sfxhtml \ 124cdf0e10cSrcweir sfx2/source/bastyp/sfxresid \ 125cdf0e10cSrcweir sfx2/source/config/evntconf \ 126cdf0e10cSrcweir sfx2/source/control/bindings \ 127cdf0e10cSrcweir sfx2/source/control/ctrlitem \ 128cdf0e10cSrcweir sfx2/source/control/macro \ 129cdf0e10cSrcweir sfx2/source/control/minfitem \ 130cdf0e10cSrcweir sfx2/source/control/msg \ 131cdf0e10cSrcweir sfx2/source/control/msgpool \ 132cdf0e10cSrcweir sfx2/source/control/objface \ 133cdf0e10cSrcweir sfx2/source/control/querystatus \ 134cdf0e10cSrcweir sfx2/source/control/request \ 135cdf0e10cSrcweir sfx2/source/control/sfxstatuslistener \ 136cdf0e10cSrcweir sfx2/source/control/shell \ 137cdf0e10cSrcweir sfx2/source/control/sorgitm \ 138cdf0e10cSrcweir sfx2/source/control/statcach \ 139cdf0e10cSrcweir sfx2/source/control/unoctitm \ 140cdf0e10cSrcweir sfx2/source/dialog/alienwarn \ 141cdf0e10cSrcweir sfx2/source/dialog/basedlgs \ 142cdf0e10cSrcweir sfx2/source/dialog/dinfdlg \ 143cdf0e10cSrcweir sfx2/source/dialog/dinfedt \ 144cdf0e10cSrcweir sfx2/source/dialog/dockwin \ 145cdf0e10cSrcweir sfx2/source/dialog/filedlghelper \ 146cdf0e10cSrcweir sfx2/source/dialog/filtergrouping \ 147cdf0e10cSrcweir sfx2/source/dialog/intro \ 148cdf0e10cSrcweir sfx2/source/dialog/itemconnect \ 149cdf0e10cSrcweir sfx2/source/dialog/mailmodel \ 150cdf0e10cSrcweir sfx2/source/dialog/mgetempl \ 151cdf0e10cSrcweir sfx2/source/dialog/navigat \ 152cdf0e10cSrcweir sfx2/source/dialog/newstyle \ 153cdf0e10cSrcweir sfx2/source/dialog/partwnd \ 154cdf0e10cSrcweir sfx2/source/dialog/passwd \ 155cdf0e10cSrcweir sfx2/source/dialog/printopt \ 156cdf0e10cSrcweir sfx2/source/dialog/recfloat \ 157cdf0e10cSrcweir sfx2/source/dialog/securitypage \ 158cdf0e10cSrcweir sfx2/source/dialog/sfxdlg \ 159cdf0e10cSrcweir sfx2/source/dialog/splitwin \ 160cdf0e10cSrcweir sfx2/source/dialog/srchdlg \ 161cdf0e10cSrcweir sfx2/source/dialog/styfitem \ 162cdf0e10cSrcweir sfx2/source/dialog/styledlg \ 163cdf0e10cSrcweir sfx2/source/dialog/tabdlg \ 164cdf0e10cSrcweir sfx2/source/dialog/taskpane \ 165cdf0e10cSrcweir sfx2/source/dialog/templdlg \ 166cdf0e10cSrcweir sfx2/source/dialog/titledockwin \ 167cdf0e10cSrcweir sfx2/source/dialog/tplcitem \ 168cdf0e10cSrcweir sfx2/source/dialog/tplpitem \ 169cdf0e10cSrcweir sfx2/source/dialog/versdlg \ 170cdf0e10cSrcweir sfx2/source/doc/DocumentMetadataAccess \ 171cdf0e10cSrcweir sfx2/source/doc/Metadatable \ 172cdf0e10cSrcweir sfx2/source/doc/QuerySaveDocument \ 173cdf0e10cSrcweir sfx2/source/doc/SfxDocumentMetaData \ 174cdf0e10cSrcweir sfx2/source/doc/docfac \ 175cdf0e10cSrcweir sfx2/source/doc/docfile \ 176cdf0e10cSrcweir sfx2/source/doc/docfilt \ 177cdf0e10cSrcweir sfx2/source/doc/docinf \ 178cdf0e10cSrcweir sfx2/source/doc/docinsert \ 179cdf0e10cSrcweir sfx2/source/doc/docmacromode \ 180cdf0e10cSrcweir sfx2/source/doc/docstoragemodifylistener \ 181cdf0e10cSrcweir sfx2/source/doc/doctdlg \ 182cdf0e10cSrcweir sfx2/source/doc/doctempl \ 183cdf0e10cSrcweir sfx2/source/doc/doctemplates \ 184cdf0e10cSrcweir sfx2/source/doc/doctemplateslocal \ 185cdf0e10cSrcweir sfx2/source/doc/docvor \ 186cdf0e10cSrcweir sfx2/source/doc/frmdescr \ 187cdf0e10cSrcweir sfx2/source/doc/graphhelp \ 188cdf0e10cSrcweir sfx2/source/doc/guisaveas \ 189cdf0e10cSrcweir sfx2/source/doc/iframe \ 190cdf0e10cSrcweir sfx2/source/doc/new \ 191cdf0e10cSrcweir sfx2/source/doc/objcont \ 192cdf0e10cSrcweir sfx2/source/doc/objembed \ 193cdf0e10cSrcweir sfx2/source/doc/objitem \ 194cdf0e10cSrcweir sfx2/source/doc/objmisc \ 195cdf0e10cSrcweir sfx2/source/doc/objserv \ 196cdf0e10cSrcweir sfx2/source/doc/objstor \ 197cdf0e10cSrcweir sfx2/source/doc/objuno \ 198cdf0e10cSrcweir sfx2/source/doc/objxtor \ 199cdf0e10cSrcweir sfx2/source/doc/oleprops \ 200cdf0e10cSrcweir sfx2/source/doc/ownsubfilterservice \ 201cdf0e10cSrcweir sfx2/source/doc/plugin \ 202cdf0e10cSrcweir sfx2/source/doc/printhelper \ 203cdf0e10cSrcweir sfx2/source/doc/querytemplate \ 204cdf0e10cSrcweir sfx2/source/doc/docundomanager \ 205cdf0e10cSrcweir sfx2/source/doc/sfxbasemodel \ 206cdf0e10cSrcweir sfx2/source/doc/sfxmodelfactory \ 207cdf0e10cSrcweir sfx2/source/doc/syspath \ 208cdf0e10cSrcweir sfx2/source/explorer/nochaos \ 209cdf0e10cSrcweir sfx2/source/inet/inettbc \ 210cdf0e10cSrcweir sfx2/source/menu/mnuitem \ 211cdf0e10cSrcweir sfx2/source/menu/mnumgr \ 212cdf0e10cSrcweir sfx2/source/menu/thessubmenu \ 213cdf0e10cSrcweir sfx2/source/menu/virtmenu \ 214cdf0e10cSrcweir sfx2/source/notify/eventsupplier \ 215cdf0e10cSrcweir sfx2/source/notify/hintpost \ 21622de8995SAndre Fischer sfx2/source/sidebar/SidebarChildWindow \ 21722de8995SAndre Fischer sfx2/source/sidebar/SidebarDockingWindow \ 21822de8995SAndre Fischer sfx2/source/sidebar/SidebarController \ 219*ff12d537SAndre Fischer sfx2/source/sidebar/ControlFactory \ 22022de8995SAndre Fischer sfx2/source/sidebar/Deck \ 221*ff12d537SAndre Fischer sfx2/source/sidebar/DeckConfiguration \ 222*ff12d537SAndre Fischer sfx2/source/sidebar/DeckDescriptor \ 223*ff12d537SAndre Fischer sfx2/source/sidebar/DeckTitleBar \ 224*ff12d537SAndre Fischer sfx2/source/sidebar/DrawHelper \ 225*ff12d537SAndre Fischer sfx2/source/sidebar/MenuButton \ 226*ff12d537SAndre Fischer sfx2/source/sidebar/Paint \ 22722de8995SAndre Fischer sfx2/source/sidebar/Panel \ 228*ff12d537SAndre Fischer sfx2/source/sidebar/PanelDescriptor \ 229*ff12d537SAndre Fischer sfx2/source/sidebar/PanelTitleBar \ 230*ff12d537SAndre Fischer sfx2/source/sidebar/ResourceManager \ 23122de8995SAndre Fischer sfx2/source/sidebar/TabBar \ 232*ff12d537SAndre Fischer sfx2/source/sidebar/TabItem \ 23322de8995SAndre Fischer sfx2/source/sidebar/TitleBar \ 234*ff12d537SAndre Fischer sfx2/source/sidebar/Theme \ 23522de8995SAndre Fischer sfx2/source/sidebar/Context \ 236cdf0e10cSrcweir sfx2/source/statbar/stbitem \ 237cdf0e10cSrcweir sfx2/source/toolbox/imgmgr \ 238cdf0e10cSrcweir sfx2/source/toolbox/tbxitem \ 239cdf0e10cSrcweir sfx2/source/view/frame \ 240cdf0e10cSrcweir sfx2/source/view/frame2 \ 241cdf0e10cSrcweir sfx2/source/view/frmload \ 242cdf0e10cSrcweir sfx2/source/view/ipclient \ 243cdf0e10cSrcweir sfx2/source/view/orgmgr \ 244cdf0e10cSrcweir sfx2/source/view/printer \ 245cdf0e10cSrcweir sfx2/source/view/sfxbasecontroller \ 246cdf0e10cSrcweir sfx2/source/view/userinputinterception \ 247cdf0e10cSrcweir sfx2/source/view/viewfac \ 248cdf0e10cSrcweir sfx2/source/view/viewfrm \ 249cdf0e10cSrcweir sfx2/source/view/viewfrm2 \ 250cdf0e10cSrcweir sfx2/source/view/viewprn \ 251cdf0e10cSrcweir sfx2/source/view/viewsh \ 252cdf0e10cSrcweir)) 253cdf0e10cSrcweir 2544f10e875SMathias Bauer# i116803: crash in impress when 2554f10e875SMathias Bauer# "opening stylist, select graphic style, select modify from context menu, cancel dialog, close stylist" 2564f10e875SMathias Bauer# only on unxlngi6 and unxlngi6.pro platform 2574f10e875SMathias Bauerifeq ($(OS),LINUX) 2584f10e875SMathias Bauer$(eval $(call gb_Library_add_cxxobjects,sfx,\ 2594f10e875SMathias Bauer sfx2/source/control/dispatch \ 2604f10e875SMathias Bauer , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \ 2614f10e875SMathias Bauer)) 2624f10e875SMathias Bauerelse 2634f10e875SMathias Bauer$(eval $(call gb_Library_add_exception_objects,sfx,\ 2644f10e875SMathias Bauer sfx2/source/control/dispatch \ 2654f10e875SMathias Bauer)) 2664f10e875SMathias Bauerendif 2674f10e875SMathias Bauer 268cdf0e10cSrcweir$(eval $(call gb_SdiTarget_SdiTarget,sfx2/sdi/sfxslots,sfx2/sdi/sfx)) 269cdf0e10cSrcweir 270cdf0e10cSrcweir$(eval $(call gb_SdiTarget_set_include,sfx2/sdi/sfxslots,\ 271cdf0e10cSrcweir $$(INCLUDE) \ 272cdf0e10cSrcweir -I$(SRCDIR)/sfx2/inc/sfx2 \ 273cdf0e10cSrcweir -I$(SRCDIR)/sfx2/inc \ 274cdf0e10cSrcweir -I$(SRCDIR)/sfx2/sdi \ 275cdf0e10cSrcweir)) 276cdf0e10cSrcweir 277cdf0e10cSrcweirifeq ($(OS),$(filter WNT MACOSX,$(OS))) 278cdf0e10cSrcweir$(eval $(call gb_Library_set_defs,sfx,\ 279cdf0e10cSrcweir $$(DEFS) \ 280cdf0e10cSrcweir -DENABLE_QUICKSTART_APPLET \ 281cdf0e10cSrcweir)) 282cdf0e10cSrcweirendif 283cdf0e10cSrcweir 2842ad018beSPedro Giffuniifeq ($(ENABLE_SYSTRAY_GTK),TRUE) 2852ad018beSPedro Giffuni$(eval $(call gb_Library_set_defs,sfx,\ 2862ad018beSPedro Giffuni $$(DEFS) \ 2872ad018beSPedro Giffuni -DENABLE_QUICKSTART_APPLET \ 2882ad018beSPedro Giffuni -DENABLE_SYSTRAY_GTK \ 2892ad018beSPedro Giffuni)) 2902ad018beSPedro Giffuniendif 2912ad018beSPedro Giffuni 292ac203367SPedro Giffuniifeq ($(ENABLE_SYSTRAY_GTK),TRUE) 293ac203367SPedro Giffuni$(eval $(call gb_Library_set_defs,sfx,\ 294ac203367SPedro Giffuni $$(DEFS) \ 295ac203367SPedro Giffuni -DENABLE_QUICKSTART_APPLET \ 296ac203367SPedro Giffuni -DENABLE_SYSTRAY_GTK \ 297ac203367SPedro Giffuni)) 298ac203367SPedro Giffuniendif 299ac203367SPedro Giffuni 300cdf0e10cSrcweirifeq ($(OS),OS2) 301cdf0e10cSrcweir$(eval $(call gb_Library_add_exception_objects,sfx,\ 30267a1b670SPedro Giffuni sfx2/source/appl/shutdowniconOs2 \ 303cdf0e10cSrcweir)) 304cdf0e10cSrcweirendif 305cdf0e10cSrcweirifeq ($(OS),MACOSX) 306cdf0e10cSrcweir$(eval $(call gb_Library_add_objcxxobjects,sfx,\ 307cdf0e10cSrcweir sfx2/source/appl/shutdowniconaqua \ 308cdf0e10cSrcweir)) 309cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,sfx,\ 310cdf0e10cSrcweir objc \ 311cdf0e10cSrcweir Cocoa \ 312cdf0e10cSrcweir)) 313cdf0e10cSrcweirendif 314cdf0e10cSrcweir 315cdf0e10cSrcweirifeq ($(OS),WNT) 316cdf0e10cSrcweir 317cdf0e10cSrcweir# workaround: disable PCH for these objects to avoid redeclaration 318cdf0e10cSrcweir# errors - needs to be fixed in module tools 319cdf0e10cSrcweir$(eval $(call gb_Library_add_cxxobjects,sfx,\ 320cdf0e10cSrcweir sfx2/source/appl/shutdowniconw32 \ 321cdf0e10cSrcweir sfx2/source/doc/sfxacldetect \ 322cdf0e10cSrcweir sfx2/source/doc/syspathw32 \ 323cdf0e10cSrcweir , $(gb_LinkTarget_EXCEPTIONFLAGS) $(gb_COMPILEROPTFLAGS) -nologo -UPRECOMPILED_HEADERS \ 324cdf0e10cSrcweir)) 325cdf0e10cSrcweir 326cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,sfx,\ 327cdf0e10cSrcweir gdi32 \ 328cdf0e10cSrcweir advapi32 \ 329cdf0e10cSrcweir ole32 \ 330cdf0e10cSrcweir shell32 \ 331cdf0e10cSrcweir user32 \ 332cdf0e10cSrcweir uuid \ 333cdf0e10cSrcweir)) 334cdf0e10cSrcweir 335cdf0e10cSrcweirelse 336cdf0e10cSrcweir 337cdf0e10cSrcweir$(eval $(call gb_Library_add_cxxobjects,sfx,\ 338cdf0e10cSrcweir sfx2/source/appl/shutdowniconw32 \ 339cdf0e10cSrcweir sfx2/source/doc/sfxacldetect \ 340cdf0e10cSrcweir , $(gb_LinkTarget_EXCEPTIONFLAGS) $(gb_COMPILEROPTFLAGS) \ 341cdf0e10cSrcweir)) 342cdf0e10cSrcweir 343cdf0e10cSrcweirendif 344cdf0e10cSrcweir# vim: set noet sw=4 ts=4: 345cdf0e10cSrcweir 346