update dev300-m58
[ooovba.git] / sdext / source / presenter / makefile.mk
blob50498d46c26d60a42db1cadb1008a456e37f28d5
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.10 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..$/..
33 PRJNAME=sdext
34 TARGET=PresenterScreen
35 GEN_HID=FALSE
36 EXTNAME=PresenterScreen
38 ENABLE_EXCEPTIONS=TRUE
40 # --- Settings ----------------------------------
42 .INCLUDE : rtlbootstrap.mk
43 .INCLUDE : settings.mk
44 .INCLUDE : $(PRJ)$/util$/makefile.pmk
46 .IF "$(ENABLE_PRESENTER_SCREEN)" == "NO"
47 @all:
48 @echo "Presenter Screen build disabled."
49 .ELSE
51 DLLPRE=
52 common_build_zip=
54 # --- Files -------------------------------------
56 SLOFILES= \
57 $(SLO)$/PresenterAnimation.obj \
58 $(SLO)$/PresenterAnimator.obj \
59 $(SLO)$/PresenterBitmapContainer.obj \
60 $(SLO)$/PresenterButton.obj \
61 $(SLO)$/PresenterCanvasHelper.obj \
62 $(SLO)$/PresenterConfigurationAccess.obj \
63 $(SLO)$/PresenterController.obj \
64 $(SLO)$/PresenterCurrentSlideObserver.obj \
65 $(SLO)$/PresenterFrameworkObserver.obj \
66 $(SLO)$/PresenterGeometryHelper.obj \
67 $(SLO)$/PresenterHelper.obj \
68 $(SLO)$/PresenterHelpView.obj \
69 $(SLO)$/PresenterNotesView.obj \
70 $(SLO)$/PresenterPaintManager.obj \
71 $(SLO)$/PresenterPane.obj \
72 $(SLO)$/PresenterPaneAnimator.obj \
73 $(SLO)$/PresenterPaneBase.obj \
74 $(SLO)$/PresenterPaneBorderManager.obj \
75 $(SLO)$/PresenterPaneBorderPainter.obj \
76 $(SLO)$/PresenterPaneContainer.obj \
77 $(SLO)$/PresenterPaneFactory.obj \
78 $(SLO)$/PresenterProtocolHandler.obj \
79 $(SLO)$/PresenterScreen.obj \
80 $(SLO)$/PresenterScrollBar.obj \
81 $(SLO)$/PresenterSlidePreview.obj \
82 $(SLO)$/PresenterSlideShowView.obj \
83 $(SLO)$/PresenterSlideSorter.obj \
84 $(SLO)$/PresenterSprite.obj \
85 $(SLO)$/PresenterSpritePane.obj \
86 $(SLO)$/PresenterTheme.obj \
87 $(SLO)$/PresenterTimer.obj \
88 $(SLO)$/PresenterToolBar.obj \
89 $(SLO)$/PresenterUIPainter.obj \
90 $(SLO)$/PresenterViewFactory.obj \
91 $(SLO)$/PresenterWindowManager.obj \
92 $(SLO)$/PresenterComponent.obj
95 # --- Library -----------------------------------
97 SHL1TARGET= $(TARGET).uno
99 SHL1STDLIBS= $(CPPUHELPERLIB) \
100 $(CPPULIB) \
101 $(SALLIB)
102 SHL1DEPN=
103 SHL1IMPLIB= i$(SHL1TARGET)
104 SHL1LIBS= $(SLB)$/$(TARGET).lib
105 SHL1DEF= $(MISC)$/$(SHL1TARGET).def
106 SHL1VERSIONMAP= exports.map
107 SHL1RPATH= OXT
108 DEF1NAME= $(SHL1TARGET)
110 ZIP1TARGET= presenter-screen
111 ZIP1DIR= $(MISC)$/$(TARGET)
112 ZIP1EXT= .oxt
113 ZIP1FLAGS=-r
114 ZIP1LIST= *
116 DESCRIPTION:=$(ZIP1DIR)$/description.xml
118 .IF "$(WITH_LANG)"==""
119 FIND_XCU=registry/data
120 .ELSE # "$(WITH_LANG)"==""
121 FIND_XCU=$(MISC)$/$(EXTNAME)_in$/merge
122 .ENDIF # "$(WITH_LANG)"==""
125 COMPONENT_FILES= \
126 $(ZIP1DIR)$/registry$/data$/org$/openoffice$/Office$/Jobs.xcu \
127 $(ZIP1DIR)$/registry$/data$/org$/openoffice$/Office$/ProtocolHandler.xcu \
128 $(ZIP1DIR)$/registry$/schema/org$/openoffice$/Office$/extension$/PresenterScreen.xcs \
129 $(ZIP1DIR)$/registry$/data/$/org$/openoffice$/Office$/extension$/PresenterScreen.xcu
131 #COMPONENT_MERGED_XCU= \
132 # $(FIND_XCU)$/org$/openoffice$/Office$/extension$/PresenterScreen.xcu
134 COMPONENT_BITMAPS= \
135 $(ZIP1DIR)$/bitmaps$/BorderTop.png \
136 $(ZIP1DIR)$/bitmaps$/BorderTopLeft.png \
137 $(ZIP1DIR)$/bitmaps$/BorderTopRight.png \
138 $(ZIP1DIR)$/bitmaps$/BorderLeft.png \
139 $(ZIP1DIR)$/bitmaps$/BorderRight.png \
140 $(ZIP1DIR)$/bitmaps$/BorderBottomLeft.png \
141 $(ZIP1DIR)$/bitmaps$/BorderBottomRight.png \
142 $(ZIP1DIR)$/bitmaps$/BorderBottom.png \
144 $(ZIP1DIR)$/bitmaps$/BorderActiveTop.png \
145 $(ZIP1DIR)$/bitmaps$/BorderActiveTopLeft.png \
146 $(ZIP1DIR)$/bitmaps$/BorderActiveTopRight.png \
147 $(ZIP1DIR)$/bitmaps$/BorderActiveLeft.png \
148 $(ZIP1DIR)$/bitmaps$/BorderActiveRight.png \
149 $(ZIP1DIR)$/bitmaps$/BorderActiveBottomLeft.png \
150 $(ZIP1DIR)$/bitmaps$/BorderActiveBottomRight.png \
151 $(ZIP1DIR)$/bitmaps$/BorderActiveBottom.png \
152 $(ZIP1DIR)$/bitmaps$/BorderActiveBottomCallout.png \
154 $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideTop.png \
155 $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideTopLeft.png \
156 $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideTopRight.png \
157 $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideLeft.png \
158 $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideRight.png \
159 $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideBottomLeft.png \
160 $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideBottomRight.png \
161 $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideBottom.png \
163 $(ZIP1DIR)$/bitmaps$/BorderToolbarTop.png \
164 $(ZIP1DIR)$/bitmaps$/BorderToolbarTopLeft.png \
165 $(ZIP1DIR)$/bitmaps$/BorderToolbarTopRight.png \
166 $(ZIP1DIR)$/bitmaps$/BorderToolbarLeft.png \
167 $(ZIP1DIR)$/bitmaps$/BorderToolbarRight.png \
168 $(ZIP1DIR)$/bitmaps$/BorderToolbarBottom.png \
170 $(ZIP1DIR)$/bitmaps$/Background.png \
171 $(ZIP1DIR)$/bitmaps$/ViewBackground.png \
173 $(ZIP1DIR)$/bitmaps$/ButtonSlidePreviousNormal.png \
174 $(ZIP1DIR)$/bitmaps$/ButtonSlidePreviousMouseOver.png \
175 $(ZIP1DIR)$/bitmaps$/ButtonSlidePreviousSelected.png \
176 $(ZIP1DIR)$/bitmaps$/ButtonSlidePreviousDisabled.png \
177 $(ZIP1DIR)$/bitmaps$/ButtonEffectNextNormal.png \
178 $(ZIP1DIR)$/bitmaps$/ButtonEffectNextMouseOver.png \
179 $(ZIP1DIR)$/bitmaps$/ButtonEffectNextSelected.png \
180 $(ZIP1DIR)$/bitmaps$/ButtonEffectNextDisabled.png \
181 $(ZIP1DIR)$/bitmaps$/ButtonNotesNormal.png \
182 $(ZIP1DIR)$/bitmaps$/ButtonNotesMouseOver.png \
183 $(ZIP1DIR)$/bitmaps$/ButtonNotesSelected.png \
184 $(ZIP1DIR)$/bitmaps$/ButtonNotesDisabled.png \
185 $(ZIP1DIR)$/bitmaps$/ButtonSlideSorterNormal.png \
186 $(ZIP1DIR)$/bitmaps$/ButtonSlideSorterMouseOver.png \
187 $(ZIP1DIR)$/bitmaps$/ButtonSlideSorterSelected.png \
188 $(ZIP1DIR)$/bitmaps$/ButtonSlideSorterDisabled.png \
189 $(ZIP1DIR)$/bitmaps$/ButtonHelpNormal.png \
190 $(ZIP1DIR)$/bitmaps$/ButtonHelpMouseOver.png \
191 $(ZIP1DIR)$/bitmaps$/ButtonHelpSelected.png \
192 $(ZIP1DIR)$/bitmaps$/ButtonHelpDisabled.png \
194 $(ZIP1DIR)$/bitmaps/ScrollbarArrowUpNormal.png \
195 $(ZIP1DIR)$/bitmaps/ScrollbarArrowUpMouseOver.png \
196 $(ZIP1DIR)$/bitmaps/ScrollbarArrowUpSelected.png \
197 $(ZIP1DIR)$/bitmaps/ScrollbarArrowUpDisabled.png \
198 $(ZIP1DIR)$/bitmaps/ScrollbarArrowDownNormal.png \
199 $(ZIP1DIR)$/bitmaps/ScrollbarArrowDownMouseOver.png \
200 $(ZIP1DIR)$/bitmaps/ScrollbarArrowDownSelected.png \
201 $(ZIP1DIR)$/bitmaps/ScrollbarArrowDownDisabled.png \
202 $(ZIP1DIR)$/bitmaps/ScrollbarPagerMiddleNormal.png \
203 $(ZIP1DIR)$/bitmaps/ScrollbarPagerMiddleMouseOver.png \
204 $(ZIP1DIR)$/bitmaps/ScrollbarThumbTopNormal.png \
205 $(ZIP1DIR)$/bitmaps/ScrollbarThumbTopMouseOver.png \
206 $(ZIP1DIR)$/bitmaps/ScrollbarThumbBottomNormal.png \
207 $(ZIP1DIR)$/bitmaps/ScrollbarThumbBottomMouseOver.png \
208 $(ZIP1DIR)$/bitmaps/ScrollbarThumbMiddleNormal.png \
209 $(ZIP1DIR)$/bitmaps/ScrollbarThumbMiddleMouseOver.png \
211 $(ZIP1DIR)$/bitmaps$/ButtonPlusNormal.png \
212 $(ZIP1DIR)$/bitmaps$/ButtonPlusMouseOver.png \
213 $(ZIP1DIR)$/bitmaps$/ButtonPlusSelected.png \
214 $(ZIP1DIR)$/bitmaps$/ButtonPlusDisabled.png \
215 $(ZIP1DIR)$/bitmaps$/ButtonMinusNormal.png \
216 $(ZIP1DIR)$/bitmaps$/ButtonMinusMouseOver.png \
217 $(ZIP1DIR)$/bitmaps$/ButtonMinusSelected.png \
218 $(ZIP1DIR)$/bitmaps$/ButtonMinusDisabled.png \
220 $(ZIP1DIR)$/bitmaps$/ButtonFrameLeftNormal.png \
221 $(ZIP1DIR)$/bitmaps$/ButtonFrameCenterNormal.png \
222 $(ZIP1DIR)$/bitmaps$/ButtonFrameRightNormal.png \
223 $(ZIP1DIR)$/bitmaps$/ButtonFrameLeftMouseOver.png \
224 $(ZIP1DIR)$/bitmaps$/ButtonFrameCenterMouseOver.png \
225 $(ZIP1DIR)$/bitmaps$/ButtonFrameRightMouseOver.png \
227 $(ZIP1DIR)$/bitmaps$/LabelMouseOverLeft.png \
228 $(ZIP1DIR)$/bitmaps$/LabelMouseOverCenter.png \
229 $(ZIP1DIR)$/bitmaps$/LabelMouseOverRight.png
231 COMPONENT_MANIFEST= \
232 $(ZIP1DIR)$/META-INF$/manifest.xml
234 COMPONENT_LIBRARY= \
235 $(ZIP1DIR)$/$(TARGET).uno$(DLLPOST)
237 COMPONENT_HELP= \
238 $(ZIP1DIR)$/help/component.txt
240 ZIP1DEPS= \
241 $(DESCRIPTION) \
242 $(COMPONENT_MANIFEST) \
243 $(COMPONENT_FILES) \
244 $(COMPONENT_BITMAPS) \
245 $(COMPONENT_LIBRARY) \
246 $(COMPONENT_HELP)
247 # $(COMPONENT_MERGED_XCU) \
249 PLATFORMID:=$(RTL_OS:l)_$(RTL_ARCH:l)
252 # --- Targets ----------------------------------
254 .INCLUDE : target.mk
256 $(SLO)$/PresenterComponent.obj : $(INCCOM)$/PresenterExtensionIdentifier.hxx
258 $(INCCOM)$/PresenterExtensionIdentifier.hxx : PresenterExtensionIdentifier.txx
259 $(TYPE) $< | sed s/UPDATED_PLATFORM/$(PLATFORMID)/ > $@
261 $(COMPONENT_MANIFEST) : $$(@:f)
262 @-$(MKDIRHIER) $(@:d)
263 +$(TYPE) $< | $(SED) "s/SHARED_EXTENSION/$(DLLPOST)/" > $@
265 $(COMPONENT_HELP) : help$/$$(@:f)
266 @@-$(MKDIRHIER) $(@:d)
267 $(COPY) $< $@
269 #$(COMPONENT_FILES) : $$(@:f)
270 # -$(MKDIRHIER) $(@:d)
271 # $(COPY) $< $@
273 $(COMPONENT_BITMAPS) : bitmaps$/$$(@:f)
274 @-$(MKDIRHIER) $(@:d)
275 +$(COPY) $< $@
277 $(COMPONENT_LIBRARY) : $(DLLDEST)$/$$(@:f)
278 @-$(MKDIRHIER) $(@:d)
279 +$(COPY) $< $@
280 .IF "$(OS)$(CPU)"=="WNTI"
281 .IF "$(COM)"=="GCC"
282 $(GNUCOPY) $(SOLARBINDIR)$/mingwm10.dll $(ZIP1DIR)
283 .ELSE
284 .IF "$(PACKMS)"!=""
285 .IF "$(CCNUMVER)" <= "001399999999"
286 $(GNUCOPY) $(PACKMS)$/msvcr71.dll $(ZIP1DIR)
287 $(GNUCOPY) $(PACKMS)$/msvcp71.dll $(ZIP1DIR)
288 .ELSE
289 .IF "$(CCNUMVER)" <= "001499999999"
290 $(GNUCOPY) $(PACKMS)$/msvcr80.dll $(ZIP1DIR)
291 $(GNUCOPY) $(PACKMS)$/msvcp80.dll $(ZIP1DIR)
292 $(GNUCOPY) $(PACKMS)$/msvcm80.dll $(ZIP1DIR)
293 $(GNUCOPY) $(PACKMS)$/Microsoft.VC80.CRT.manifest $(ZIP1DIR)
294 .ELSE
295 $(GNUCOPY) $(PACKMS)$/msvcr90.dll $(ZIP1DIR)
296 $(GNUCOPY) $(PACKMS)$/msvcp90.dll $(ZIP1DIR)
297 $(GNUCOPY) $(PACKMS)$/msvcm90.dll $(ZIP1DIR)
298 $(GNUCOPY) $(PACKMS)$/Microsoft.VC90.CRT.manifest $(ZIP1DIR)
299 .ENDIF
300 .ENDIF
301 .ELSE # "$(PACKMS)"!=""
302 .IF "$(CCNUMVER)" <= "001399999999"
303 $(GNUCOPY) $(SOLARBINDIR)$/msvcr71.dll $(ZIP1DIR)
304 $(GNUCOPY) $(SOLARBINDIR)$/msvcp71.dll $(ZIP1DIR)
305 .ELSE
306 .IF "$(CCNUMVER)" <= "001499999999"
307 $(GNUCOPY) $(SOLARBINDIR)$/msvcr80.dll $(ZIP1DIR)
308 $(GNUCOPY) $(SOLARBINDIR)$/msvcp80.dll $(ZIP1DIR)
309 $(GNUCOPY) $(SOLARBINDIR)$/msvcm80.dll $(ZIP1DIR)
310 $(GNUCOPY) $(SOLARBINDIR)$/Microsoft.VC80.CRT.manifest $(ZIP1DIR)
311 .ELSE
312 $(GNUCOPY) $(SOLARBINDIR)$/msvcr90.dll $(ZIP1DIR)
313 $(GNUCOPY) $(SOLARBINDIR)$/msvcp90.dll $(ZIP1DIR)
314 $(GNUCOPY) $(SOLARBINDIR)$/msvcm90.dll $(ZIP1DIR)
315 $(GNUCOPY) $(SOLARBINDIR)$/Microsoft.VC90.CRT.manifest $(ZIP1DIR)
316 .ENDIF
317 .ENDIF
318 .ENDIF # "$(PACKMS)"!=""
319 .ENDIF #"$(COM)"=="GCC"
320 .ENDIF
324 $(ZIP1DIR)/%.xcu : %.xcu
325 @@-$(MKDIRHIER) $(@:d)
326 $(GNUCOPY) $< $@
328 $(ZIP1DIR)$/%.xcs : %.xcs
329 @@-$(MKDIRHIER) $(@:d)
330 $(GNUCOPY) $< $@
332 # Temporary file that is used to replace some placeholders in description.xml.
333 DESCRIPTION_TMP:=$(ZIP1DIR)$/description.xml.tmp
335 .INCLUDE .IGNORE : $(ZIP1DIR)_lang_track.mk
336 .IF "$(LAST_WITH_LANG)"!="$(WITH_LANG)"
337 PHONYDESC=.PHONY
338 .ENDIF # "$(LAST_WITH_LANG)"!="$(WITH_LANG)"
339 $(DESCRIPTION) $(PHONYDESC) : $$(@:f)
340 @@-$(MKDIRHIER) $(@:d)
341 $(PERL) $(SOLARENV)$/bin$/licinserter.pl description.xml registry/LICENSE_xxx $(DESCRIPTION_TMP)
342 @echo LAST_WITH_LANG=$(WITH_LANG) > $(ZIP1DIR)_lang_track.mk
343 $(TYPE) $(DESCRIPTION_TMP) | sed s/UPDATED_PLATFORM/$(PLATFORMID)/ > $@
344 @@-$(RM) $(DESCRIPTION_TMP)
347 .ENDIF # "$(ENABLE_PRESENTER_SCREEN)" != "NO"