1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 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 28PRJ=..$/.. 29PRJNAME=sdext 30TARGET=PresenterScreen 31GEN_HID=FALSE 32EXTNAME=PresenterScreen 33 34ENABLE_EXCEPTIONS=TRUE 35# survive zip dependencies 36MAXLINELENGTH:=80000 37 38# --- Settings ---------------------------------- 39 40.INCLUDE : rtlbootstrap.mk 41.INCLUDE : settings.mk 42 43PACKAGE=com.sun.PresenterScreen-$(PLATFORMID) 44 45.IF "$(L10N_framework)"=="" 46.INCLUDE : $(PRJ)$/util$/makefile.pmk 47 48.IF "$(ENABLE_PRESENTER_SCREEN)" == "NO" 49@all: 50 @echo "Presenter Screen build disabled." 51.ELSE 52 53DLLPRE= 54common_build_zip= 55 56# --- Files ------------------------------------- 57 58SLOFILES= \ 59 $(SLO)$/PresenterAccessibility.obj \ 60 $(SLO)$/PresenterAnimation.obj \ 61 $(SLO)$/PresenterAnimator.obj \ 62 $(SLO)$/PresenterBitmapContainer.obj \ 63 $(SLO)$/PresenterButton.obj \ 64 $(SLO)$/PresenterCanvasHelper.obj \ 65 $(SLO)$/PresenterConfigurationAccess.obj \ 66 $(SLO)$/PresenterController.obj \ 67 $(SLO)$/PresenterCurrentSlideObserver.obj \ 68 $(SLO)$/PresenterFrameworkObserver.obj \ 69 $(SLO)$/PresenterGeometryHelper.obj \ 70 $(SLO)$/PresenterHelper.obj \ 71 $(SLO)$/PresenterHelpView.obj \ 72 $(SLO)$/PresenterNotesView.obj \ 73 $(SLO)$/PresenterPaintManager.obj \ 74 $(SLO)$/PresenterPane.obj \ 75 $(SLO)$/PresenterPaneAnimator.obj \ 76 $(SLO)$/PresenterPaneBase.obj \ 77 $(SLO)$/PresenterPaneBorderManager.obj \ 78 $(SLO)$/PresenterPaneBorderPainter.obj \ 79 $(SLO)$/PresenterPaneContainer.obj \ 80 $(SLO)$/PresenterPaneFactory.obj \ 81 $(SLO)$/PresenterProtocolHandler.obj \ 82 $(SLO)$/PresenterScreen.obj \ 83 $(SLO)$/PresenterScrollBar.obj \ 84 $(SLO)$/PresenterSlidePreview.obj \ 85 $(SLO)$/PresenterSlideShowView.obj \ 86 $(SLO)$/PresenterSlideSorter.obj \ 87 $(SLO)$/PresenterSprite.obj \ 88 $(SLO)$/PresenterSpritePane.obj \ 89 $(SLO)$/PresenterTextView.obj \ 90 $(SLO)$/PresenterTheme.obj \ 91 $(SLO)$/PresenterTimer.obj \ 92 $(SLO)$/PresenterToolBar.obj \ 93 $(SLO)$/PresenterUIPainter.obj \ 94 $(SLO)$/PresenterViewFactory.obj \ 95 $(SLO)$/PresenterWindowManager.obj \ 96 $(SLO)$/PresenterComponent.obj 97 98 99# --- Library ----------------------------------- 100 101SHL1TARGET= $(TARGET).uno 102 103SHL1STDLIBS= $(CPPUHELPERLIB) \ 104 $(CPPULIB) \ 105 $(SALLIB) 106 107SHL1DEPN= 108SHL1IMPLIB= i$(SHL1TARGET) 109SHL1LIBS= $(SLB)$/$(TARGET).lib 110SHL1DEF= $(MISC)$/$(SHL1TARGET).def 111SHL1VERSIONMAP=$(SOLARENV)/src/reg-component.map 112SHL1RPATH= OXT 113DEF1NAME= $(SHL1TARGET) 114 115ZIP2TARGET= presenter-screen_develop 116ZIP2DIR= $(COMMONMISC) 117ZIP2EXT= .zip 118ZIP2FLAGS=-r 119ZIP2LIST= */com.sun.PresenterScreen/*.xhp 120 121ZIP1TARGET= presenter-screen 122ZIP1DIR= $(MISC)$/$(TARGET) 123ZIP1EXT= .oxt 124ZIP1FLAGS=-r 125ZIP1LIST= * 126 127DESCRIPTION:=$(ZIP1DIR)$/description.xml 128 129.IF "$(GUI)" == "WIN" || "$(GUI)" == "WNT" 130PACKLICS:=$(foreach,i,$(alllangiso) $(ZIP1DIR)$/registry$/license_$i) 131.ELSE 132PACKLICS:=$(foreach,i,$(alllangiso) $(ZIP1DIR)$/registry$/LICENSE_$i) 133.ENDIF 134 135.IF "$(WITH_LANG)"=="" 136FIND_XCU=registry/data 137.ELSE # "$(WITH_LANG)"=="" 138FIND_XCU=$(MISC)$/$(EXTNAME)_in$/merge 139.ENDIF # "$(WITH_LANG)"=="" 140 141COMPONENT_FILES= \ 142 $(ZIP1DIR)$/registry$/data$/org$/openoffice$/Office$/Jobs.xcu \ 143 $(ZIP1DIR)$/registry$/data$/org$/openoffice$/Office$/ProtocolHandler.xcu \ 144 $(ZIP1DIR)$/registry$/schema/org$/openoffice$/Office$/extension$/PresenterScreen.xcs \ 145 $(ZIP1DIR)$/registry$/data/$/org$/openoffice$/Office$/extension$/PresenterScreen.xcu 146 147#COMPONENT_MERGED_XCU= \ 148# $(FIND_XCU)$/org$/openoffice$/Office$/extension$/PresenterScreen.xcu 149 150COMPONENT_BITMAPS= \ 151 $(ZIP1DIR)$/bitmaps$/BorderTop.png \ 152 $(ZIP1DIR)$/bitmaps$/BorderTopLeft.png \ 153 $(ZIP1DIR)$/bitmaps$/BorderTopRight.png \ 154 $(ZIP1DIR)$/bitmaps$/BorderLeft.png \ 155 $(ZIP1DIR)$/bitmaps$/BorderRight.png \ 156 $(ZIP1DIR)$/bitmaps$/BorderBottomLeft.png \ 157 $(ZIP1DIR)$/bitmaps$/BorderBottomRight.png \ 158 $(ZIP1DIR)$/bitmaps$/BorderBottom.png \ 159 \ 160 $(ZIP1DIR)$/bitmaps$/BorderActiveTop.png \ 161 $(ZIP1DIR)$/bitmaps$/BorderActiveTopLeft.png \ 162 $(ZIP1DIR)$/bitmaps$/BorderActiveTopRight.png \ 163 $(ZIP1DIR)$/bitmaps$/BorderActiveLeft.png \ 164 $(ZIP1DIR)$/bitmaps$/BorderActiveRight.png \ 165 $(ZIP1DIR)$/bitmaps$/BorderActiveBottomLeft.png \ 166 $(ZIP1DIR)$/bitmaps$/BorderActiveBottomRight.png \ 167 $(ZIP1DIR)$/bitmaps$/BorderActiveBottom.png \ 168 $(ZIP1DIR)$/bitmaps$/BorderActiveBottomCallout.png \ 169 \ 170 $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideTop.png \ 171 $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideTopLeft.png \ 172 $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideTopRight.png \ 173 $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideLeft.png \ 174 $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideRight.png \ 175 $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideBottomLeft.png \ 176 $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideBottomRight.png \ 177 $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideBottom.png \ 178 \ 179 $(ZIP1DIR)$/bitmaps$/BorderToolbarTop.png \ 180 $(ZIP1DIR)$/bitmaps$/BorderToolbarTopLeft.png \ 181 $(ZIP1DIR)$/bitmaps$/BorderToolbarTopRight.png \ 182 $(ZIP1DIR)$/bitmaps$/BorderToolbarLeft.png \ 183 $(ZIP1DIR)$/bitmaps$/BorderToolbarRight.png \ 184 $(ZIP1DIR)$/bitmaps$/BorderToolbarBottom.png \ 185 \ 186 $(ZIP1DIR)$/bitmaps$/Background.png \ 187 $(ZIP1DIR)$/bitmaps$/ViewBackground.png \ 188 \ 189 $(ZIP1DIR)$/bitmaps$/ButtonSlidePreviousNormal.png \ 190 $(ZIP1DIR)$/bitmaps$/ButtonSlidePreviousMouseOver.png \ 191 $(ZIP1DIR)$/bitmaps$/ButtonSlidePreviousSelected.png \ 192 $(ZIP1DIR)$/bitmaps$/ButtonSlidePreviousDisabled.png \ 193 $(ZIP1DIR)$/bitmaps$/ButtonEffectNextNormal.png \ 194 $(ZIP1DIR)$/bitmaps$/ButtonEffectNextMouseOver.png \ 195 $(ZIP1DIR)$/bitmaps$/ButtonEffectNextSelected.png \ 196 $(ZIP1DIR)$/bitmaps$/ButtonEffectNextDisabled.png \ 197 $(ZIP1DIR)$/bitmaps$/ButtonNotesNormal.png \ 198 $(ZIP1DIR)$/bitmaps$/ButtonNotesMouseOver.png \ 199 $(ZIP1DIR)$/bitmaps$/ButtonNotesSelected.png \ 200 $(ZIP1DIR)$/bitmaps$/ButtonNotesDisabled.png \ 201 $(ZIP1DIR)$/bitmaps$/ButtonSlideSorterNormal.png \ 202 $(ZIP1DIR)$/bitmaps$/ButtonSlideSorterMouseOver.png \ 203 $(ZIP1DIR)$/bitmaps$/ButtonSlideSorterSelected.png \ 204 $(ZIP1DIR)$/bitmaps$/ButtonSlideSorterDisabled.png \ 205 $(ZIP1DIR)$/bitmaps$/ButtonHelpNormal.png \ 206 $(ZIP1DIR)$/bitmaps$/ButtonHelpMouseOver.png \ 207 $(ZIP1DIR)$/bitmaps$/ButtonHelpSelected.png \ 208 $(ZIP1DIR)$/bitmaps$/ButtonHelpDisabled.png \ 209 \ 210 $(ZIP1DIR)$/bitmaps/ScrollbarArrowUpNormal.png \ 211 $(ZIP1DIR)$/bitmaps/ScrollbarArrowUpMouseOver.png \ 212 $(ZIP1DIR)$/bitmaps/ScrollbarArrowUpSelected.png \ 213 $(ZIP1DIR)$/bitmaps/ScrollbarArrowUpDisabled.png \ 214 $(ZIP1DIR)$/bitmaps/ScrollbarArrowDownNormal.png \ 215 $(ZIP1DIR)$/bitmaps/ScrollbarArrowDownMouseOver.png \ 216 $(ZIP1DIR)$/bitmaps/ScrollbarArrowDownSelected.png \ 217 $(ZIP1DIR)$/bitmaps/ScrollbarArrowDownDisabled.png \ 218 $(ZIP1DIR)$/bitmaps/ScrollbarPagerMiddleNormal.png \ 219 $(ZIP1DIR)$/bitmaps/ScrollbarPagerMiddleMouseOver.png \ 220 $(ZIP1DIR)$/bitmaps/ScrollbarThumbTopNormal.png \ 221 $(ZIP1DIR)$/bitmaps/ScrollbarThumbTopMouseOver.png \ 222 $(ZIP1DIR)$/bitmaps/ScrollbarThumbBottomNormal.png \ 223 $(ZIP1DIR)$/bitmaps/ScrollbarThumbBottomMouseOver.png \ 224 $(ZIP1DIR)$/bitmaps/ScrollbarThumbMiddleNormal.png \ 225 $(ZIP1DIR)$/bitmaps/ScrollbarThumbMiddleMouseOver.png \ 226 \ 227 $(ZIP1DIR)$/bitmaps$/ButtonPlusNormal.png \ 228 $(ZIP1DIR)$/bitmaps$/ButtonPlusMouseOver.png \ 229 $(ZIP1DIR)$/bitmaps$/ButtonPlusSelected.png \ 230 $(ZIP1DIR)$/bitmaps$/ButtonPlusDisabled.png \ 231 $(ZIP1DIR)$/bitmaps$/ButtonMinusNormal.png \ 232 $(ZIP1DIR)$/bitmaps$/ButtonMinusMouseOver.png \ 233 $(ZIP1DIR)$/bitmaps$/ButtonMinusSelected.png \ 234 $(ZIP1DIR)$/bitmaps$/ButtonMinusDisabled.png \ 235 \ 236 $(ZIP1DIR)$/bitmaps$/ButtonFrameLeftNormal.png \ 237 $(ZIP1DIR)$/bitmaps$/ButtonFrameCenterNormal.png \ 238 $(ZIP1DIR)$/bitmaps$/ButtonFrameRightNormal.png \ 239 $(ZIP1DIR)$/bitmaps$/ButtonFrameLeftMouseOver.png \ 240 $(ZIP1DIR)$/bitmaps$/ButtonFrameCenterMouseOver.png \ 241 $(ZIP1DIR)$/bitmaps$/ButtonFrameRightMouseOver.png \ 242 \ 243 $(ZIP1DIR)$/bitmaps$/LabelMouseOverLeft.png \ 244 $(ZIP1DIR)$/bitmaps$/LabelMouseOverCenter.png \ 245 $(ZIP1DIR)$/bitmaps$/LabelMouseOverRight.png 246 247COMPONENT_IMAGES=\ 248 $(ZIP1DIR)$/bitmaps$/extension_32.png \ 249 $(ZIP1DIR)$/bitmaps$/extension_32_h.png 250 251COMPONENT_MANIFEST= \ 252 $(ZIP1DIR)$/META-INF$/manifest.xml 253 254COMPONENT_LIBRARY= \ 255 $(ZIP1DIR)$/$(TARGET).uno$(DLLPOST) 256 257PLATFORMID:=$(RTL_OS:l)_$(RTL_ARCH:l) 258 259COMPONENT_HELP= \ 260 $(ZIP1DIR)$/help/component.txt \ 261 $(foreach,l,$(alllangiso) $(ZIP1DIR)$/help$/$l$/com.sun.PresenterScreen-$(PLATFORMID)$/presenter.xhp) 262 263ZIP1DEPS= \ 264 $(PACKLICS) \ 265 $(DESCRIPTION) \ 266 $(COMPONENT_MANIFEST) \ 267 $(COMPONENT_FILES) \ 268 $(COMPONENT_BITMAPS) \ 269 $(COMPONENT_IMAGES) \ 270 $(COMPONENT_LIBRARY) \ 271 $(COMPONENT_HELP) 272 273# $(COMPONENT_MERGED_XCU) \ 274 275 276LINKNAME:=help 277XHPLINKSRC:=$(ZIP1DIR)/help 278 279my_XHPFILES= \ 280 presenter.xhp 281 282LINKLINKFILES= \ 283 $(PACKAGE)/{$(my_XHPFILES)} 284 285# --- Targets ---------------------------------- 286.ENDIF # L10N_framework 287 288.INCLUDE : target.mk 289.INCLUDE : extension_helplink.mk 290 291.IF "$(L10N_framework)"=="" 292$(SLO)$/PresenterComponent.obj : $(INCCOM)$/PresenterExtensionIdentifier.hxx 293 294$(INCCOM)$/PresenterExtensionIdentifier.hxx : PresenterExtensionIdentifier.txx 295 $(TYPE) $< | sed s/UPDATED_PLATFORM/$(PLATFORMID)/ > $@ 296 297$(COMPONENT_MANIFEST) : $$(@:f) 298 @-$(MKDIRHIER) $(@:d) 299 +$(TYPE) $< | $(SED) "s/SHARED_EXTENSION/$(DLLPOST)/" > $@ 300 301$(ZIP1DIR)$/help$/component.txt : help$/$$(@:f) 302 @@-$(MKDIRHIER) $(@:d) 303 $(COPY) $< $@ 304 305$(ZIP1DIR)/help/%/com.sun.PresenterScreen-$(PLATFORMID)/presenter.xhp : $(COMMONMISC)/%/com.sun.PresenterScreen/presenter.xhp 306 @echo creating $@ 307 @-$(MKDIRHIER) $(@:d) 308 $(TYPE) $< | sed "s/PLATFORMID/$(PLATFORMID)/" | sed 's/@PRESENTEREXTENSIONPRODUCTNAME@/Presenter Console/g' > $@ 309 310.IF "$(ZIP1TARGETN)"!="" 311$(ZIP1TARGETN) : $(HELPLINKALLTARGETS) 312 313.ENDIF # "$(ZIP1TARGETN)"!="" 314 315$(COMPONENT_BITMAPS) : bitmaps$/$$(@:f) 316 @-$(MKDIRHIER) $(@:d) 317 +$(COPY) $< $@ 318 319$(COMPONENT_IMAGES) : $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f) 320 @@-$(MKDIRHIER) $(@:d) 321 $(COPY) $< $@ 322 323$(COMPONENT_LIBRARY) : $(DLLDEST)$/$$(@:f) 324 @-$(MKDIRHIER) $(@:d) 325 +$(COPY) $< $@ 326.IF "$(OS)$(CPU)"=="WNTI" 327 .IF "$(COM)"=="GCC" 328 $(GNUCOPY) $(SOLARBINDIR)$/mingwm10.dll $(ZIP1DIR) 329 .ELSE 330 .IF "$(PACKMS)"!="" 331 .IF "$(CCNUMVER)" <= "001399999999" 332 $(GNUCOPY) $(PACKMS)$/msvcr71.dll $(ZIP1DIR) 333 $(GNUCOPY) $(PACKMS)$/msvcp71.dll $(ZIP1DIR) 334 .ELSE 335 .IF "$(CCNUMVER)" <= "001499999999" 336 $(GNUCOPY) $(PACKMS)$/msvcr80.dll $(ZIP1DIR) 337 $(GNUCOPY) $(PACKMS)$/msvcp80.dll $(ZIP1DIR) 338 $(GNUCOPY) $(PACKMS)$/msvcm80.dll $(ZIP1DIR) 339 $(GNUCOPY) $(PACKMS)$/Microsoft.VC80.CRT.manifest $(ZIP1DIR) 340 .ELSE 341 $(GNUCOPY) $(PACKMS)$/msvcr90.dll $(ZIP1DIR) 342 $(GNUCOPY) $(PACKMS)$/msvcp90.dll $(ZIP1DIR) 343 $(GNUCOPY) $(PACKMS)$/msvcm90.dll $(ZIP1DIR) 344 $(GNUCOPY) $(PACKMS)$/Microsoft.VC90.CRT.manifest $(ZIP1DIR) 345 .ENDIF 346 .ENDIF 347 .ELSE # "$(PACKMS)"!="" 348 .IF "$(CCNUMVER)" <= "001399999999" 349 $(GNUCOPY) $(SOLARBINDIR)$/msvcr71.dll $(ZIP1DIR) 350 $(GNUCOPY) $(SOLARBINDIR)$/msvcp71.dll $(ZIP1DIR) 351 .ELSE 352 .IF "$(CCNUMVER)" <= "001499999999" 353 $(GNUCOPY) $(SOLARBINDIR)$/msvcr80.dll $(ZIP1DIR) 354 $(GNUCOPY) $(SOLARBINDIR)$/msvcp80.dll $(ZIP1DIR) 355 $(GNUCOPY) $(SOLARBINDIR)$/msvcm80.dll $(ZIP1DIR) 356 $(GNUCOPY) $(SOLARBINDIR)$/Microsoft.VC80.CRT.manifest $(ZIP1DIR) 357 .ELSE 358 $(GNUCOPY) $(SOLARBINDIR)$/msvcr90.dll $(ZIP1DIR) 359 $(GNUCOPY) $(SOLARBINDIR)$/msvcp90.dll $(ZIP1DIR) 360 $(GNUCOPY) $(SOLARBINDIR)$/msvcm90.dll $(ZIP1DIR) 361 $(GNUCOPY) $(SOLARBINDIR)$/Microsoft.VC90.CRT.manifest $(ZIP1DIR) 362 .ENDIF 363 .ENDIF 364 .ENDIF # "$(PACKMS)"!="" 365 .ENDIF #"$(COM)"=="GCC" 366.ENDIF 367 368 369.IF "$(GUI)" == "WIN" || "$(GUI)" == "WNT" 370$(PACKLICS) : $(SOLARBINDIR)$/osl$/license$$(@:b:s/_/./:e:s/./_/)$$(@:e).txt 371 @@-$(MKDIRHIER) $(@:d) 372 $(GNUCOPY) $< $@ 373.ELSE 374$(PACKLICS) : $(SOLARBINDIR)$/osl$/LICENSE$$(@:b:s/_/./:e:s/./_/)$$(@:e) 375 @@-$(MKDIRHIER) $(@:d) 376 $(GNUCOPY) $< $@ 377.ENDIF 378 379 380$(ZIP1DIR)/%.xcu : %.xcu 381 @@-$(MKDIRHIER) $(@:d) 382 $(GNUCOPY) $< $@ 383 384$(ZIP1DIR)$/%.xcs : %.xcs 385 @@-$(MKDIRHIER) $(@:d) 386 $(GNUCOPY) $< $@ 387 388# Temporary file that is used to replace some placeholders in description.xml. 389DESCRIPTION_TMP:=$(ZIP1DIR)$/description.xml.tmp 390 391.INCLUDE .IGNORE : $(ZIP1DIR)_lang_track.mk 392.IF "$(LAST_WITH_LANG)"!="$(WITH_LANG)" 393PHONYDESC=.PHONY 394.ENDIF # "$(LAST_WITH_LANG)"!="$(WITH_LANG)" 395$(DESCRIPTION) $(PHONYDESC) : $$(@:f) 396 @-$(MKDIRHIER) $(@:d) 397 $(PERL) $(SOLARENV)$/bin$/licinserter.pl description.xml registry/LICENSE_xxx $(DESCRIPTION_TMP) 398 @echo LAST_WITH_LANG=$(WITH_LANG) > $(ZIP1DIR)_lang_track.mk 399 $(TYPE) $(DESCRIPTION_TMP) | sed s/UPDATED_PLATFORM/$(PLATFORMID)/ > $@ 400 @@-$(RM) $(DESCRIPTION_TMP) 401 402 403.ENDIF # "$(ENABLE_PRESENTER_SCREEN)" != "NO" 404.ELSE 405ivo: 406 $(ECHO) 407.ENDIF # L10N_framework 408 409