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 $
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 #*************************************************************************
34 TARGET
=PresenterScreen
36 EXTNAME
=PresenterScreen
38 ENABLE_EXCEPTIONS
=TRUE
40 # --- Settings ----------------------------------
42 .INCLUDE
: rtlbootstrap.mk
43 .INCLUDE
: settings.mk
44 .IF
"$(L10N_framework)"==""
45 .INCLUDE
: $(PRJ
)$/util
$/makefile.pmk
47 .IF
"$(ENABLE_PRESENTER_SCREEN)" == "NO"
49 @echo
"Presenter Screen build disabled."
55 # --- Files -------------------------------------
58 $(SLO
)$/PresenterAccessibility.obj \
59 $(SLO
)$/PresenterAnimation.obj \
60 $(SLO
)$/PresenterAnimator.obj \
61 $(SLO
)$/PresenterBitmapContainer.obj \
62 $(SLO
)$/PresenterButton.obj \
63 $(SLO
)$/PresenterCanvasHelper.obj \
64 $(SLO
)$/PresenterConfigurationAccess.obj \
65 $(SLO
)$/PresenterController.obj \
66 $(SLO
)$/PresenterCurrentSlideObserver.obj \
67 $(SLO
)$/PresenterFrameworkObserver.obj \
68 $(SLO
)$/PresenterGeometryHelper.obj \
69 $(SLO
)$/PresenterHelper.obj \
70 $(SLO
)$/PresenterHelpView.obj \
71 $(SLO
)$/PresenterNotesView.obj \
72 $(SLO
)$/PresenterPaintManager.obj \
73 $(SLO
)$/PresenterPane.obj \
74 $(SLO
)$/PresenterPaneAnimator.obj \
75 $(SLO
)$/PresenterPaneBase.obj \
76 $(SLO
)$/PresenterPaneBorderManager.obj \
77 $(SLO
)$/PresenterPaneBorderPainter.obj \
78 $(SLO
)$/PresenterPaneContainer.obj \
79 $(SLO
)$/PresenterPaneFactory.obj \
80 $(SLO
)$/PresenterProtocolHandler.obj \
81 $(SLO
)$/PresenterScreen.obj \
82 $(SLO
)$/PresenterScrollBar.obj \
83 $(SLO
)$/PresenterSlidePreview.obj \
84 $(SLO
)$/PresenterSlideShowView.obj \
85 $(SLO
)$/PresenterSlideSorter.obj \
86 $(SLO
)$/PresenterSprite.obj \
87 $(SLO
)$/PresenterSpritePane.obj \
88 $(SLO
)$/PresenterTextView.obj \
89 $(SLO
)$/PresenterTheme.obj \
90 $(SLO
)$/PresenterTimer.obj \
91 $(SLO
)$/PresenterToolBar.obj \
92 $(SLO
)$/PresenterUIPainter.obj \
93 $(SLO
)$/PresenterViewFactory.obj \
94 $(SLO
)$/PresenterWindowManager.obj \
95 $(SLO
)$/PresenterComponent.obj
98 # --- Library -----------------------------------
100 SHL1TARGET
= $(TARGET
).uno
102 SHL1STDLIBS
= $(CPPUHELPERLIB
) \
107 SHL1IMPLIB
= i
$(SHL1TARGET
)
108 SHL1LIBS
= $(SLB
)$/$(TARGET
).lib
109 SHL1DEF
= $(MISC
)$/$(SHL1TARGET
).def
110 SHL1VERSIONMAP
= exports.map
112 DEF1NAME
= $(SHL1TARGET
)
114 ZIP1TARGET
= presenter-screen
115 ZIP1DIR
= $(MISC
)$/$(TARGET
)
120 DESCRIPTION
:=$(ZIP1DIR
)$/description.xml
122 .IF
"$(WITH_LANG)"==""
123 FIND_XCU
=registry
/data
124 .ELSE
# "$(WITH_LANG)"==""
125 FIND_XCU
=$(MISC
)$/$(EXTNAME
)_in
$/merge
126 .ENDIF
# "$(WITH_LANG)"==""
130 $(ZIP1DIR
)$/registry
$/data
$/org
$/openoffice
$/Office
$/Jobs.xcu \
131 $(ZIP1DIR
)$/registry
$/data
$/org
$/openoffice
$/Office
$/ProtocolHandler.xcu \
132 $(ZIP1DIR
)$/registry
$/schema
/org
$/openoffice
$/Office
$/extension
$/PresenterScreen.xcs \
133 $(ZIP1DIR
)$/registry
$/data
/$/org
$/openoffice
$/Office
$/extension
$/PresenterScreen.xcu
135 #COMPONENT_MERGED_XCU= \
136 # $(FIND_XCU)$/org$/openoffice$/Office$/extension$/PresenterScreen.xcu
139 $(ZIP1DIR
)$/bitmaps
$/BorderTop.png \
140 $(ZIP1DIR
)$/bitmaps
$/BorderTopLeft.png \
141 $(ZIP1DIR
)$/bitmaps
$/BorderTopRight.png \
142 $(ZIP1DIR
)$/bitmaps
$/BorderLeft.png \
143 $(ZIP1DIR
)$/bitmaps
$/BorderRight.png \
144 $(ZIP1DIR
)$/bitmaps
$/BorderBottomLeft.png \
145 $(ZIP1DIR
)$/bitmaps
$/BorderBottomRight.png \
146 $(ZIP1DIR
)$/bitmaps
$/BorderBottom.png \
148 $(ZIP1DIR
)$/bitmaps
$/BorderActiveTop.png \
149 $(ZIP1DIR
)$/bitmaps
$/BorderActiveTopLeft.png \
150 $(ZIP1DIR
)$/bitmaps
$/BorderActiveTopRight.png \
151 $(ZIP1DIR
)$/bitmaps
$/BorderActiveLeft.png \
152 $(ZIP1DIR
)$/bitmaps
$/BorderActiveRight.png \
153 $(ZIP1DIR
)$/bitmaps
$/BorderActiveBottomLeft.png \
154 $(ZIP1DIR
)$/bitmaps
$/BorderActiveBottomRight.png \
155 $(ZIP1DIR
)$/bitmaps
$/BorderActiveBottom.png \
156 $(ZIP1DIR
)$/bitmaps
$/BorderActiveBottomCallout.png \
158 $(ZIP1DIR
)$/bitmaps
$/BorderCurrentSlideTop.png \
159 $(ZIP1DIR
)$/bitmaps
$/BorderCurrentSlideTopLeft.png \
160 $(ZIP1DIR
)$/bitmaps
$/BorderCurrentSlideTopRight.png \
161 $(ZIP1DIR
)$/bitmaps
$/BorderCurrentSlideLeft.png \
162 $(ZIP1DIR
)$/bitmaps
$/BorderCurrentSlideRight.png \
163 $(ZIP1DIR
)$/bitmaps
$/BorderCurrentSlideBottomLeft.png \
164 $(ZIP1DIR
)$/bitmaps
$/BorderCurrentSlideBottomRight.png \
165 $(ZIP1DIR
)$/bitmaps
$/BorderCurrentSlideBottom.png \
167 $(ZIP1DIR
)$/bitmaps
$/BorderToolbarTop.png \
168 $(ZIP1DIR
)$/bitmaps
$/BorderToolbarTopLeft.png \
169 $(ZIP1DIR
)$/bitmaps
$/BorderToolbarTopRight.png \
170 $(ZIP1DIR
)$/bitmaps
$/BorderToolbarLeft.png \
171 $(ZIP1DIR
)$/bitmaps
$/BorderToolbarRight.png \
172 $(ZIP1DIR
)$/bitmaps
$/BorderToolbarBottom.png \
174 $(ZIP1DIR
)$/bitmaps
$/Background.png \
175 $(ZIP1DIR
)$/bitmaps
$/ViewBackground.png \
177 $(ZIP1DIR
)$/bitmaps
$/ButtonSlidePreviousNormal.png \
178 $(ZIP1DIR
)$/bitmaps
$/ButtonSlidePreviousMouseOver.png \
179 $(ZIP1DIR
)$/bitmaps
$/ButtonSlidePreviousSelected.png \
180 $(ZIP1DIR
)$/bitmaps
$/ButtonSlidePreviousDisabled.png \
181 $(ZIP1DIR
)$/bitmaps
$/ButtonEffectNextNormal.png \
182 $(ZIP1DIR
)$/bitmaps
$/ButtonEffectNextMouseOver.png \
183 $(ZIP1DIR
)$/bitmaps
$/ButtonEffectNextSelected.png \
184 $(ZIP1DIR
)$/bitmaps
$/ButtonEffectNextDisabled.png \
185 $(ZIP1DIR
)$/bitmaps
$/ButtonNotesNormal.png \
186 $(ZIP1DIR
)$/bitmaps
$/ButtonNotesMouseOver.png \
187 $(ZIP1DIR
)$/bitmaps
$/ButtonNotesSelected.png \
188 $(ZIP1DIR
)$/bitmaps
$/ButtonNotesDisabled.png \
189 $(ZIP1DIR
)$/bitmaps
$/ButtonSlideSorterNormal.png \
190 $(ZIP1DIR
)$/bitmaps
$/ButtonSlideSorterMouseOver.png \
191 $(ZIP1DIR
)$/bitmaps
$/ButtonSlideSorterSelected.png \
192 $(ZIP1DIR
)$/bitmaps
$/ButtonSlideSorterDisabled.png \
193 $(ZIP1DIR
)$/bitmaps
$/ButtonHelpNormal.png \
194 $(ZIP1DIR
)$/bitmaps
$/ButtonHelpMouseOver.png \
195 $(ZIP1DIR
)$/bitmaps
$/ButtonHelpSelected.png \
196 $(ZIP1DIR
)$/bitmaps
$/ButtonHelpDisabled.png \
198 $(ZIP1DIR
)$/bitmaps
/ScrollbarArrowUpNormal.png \
199 $(ZIP1DIR
)$/bitmaps
/ScrollbarArrowUpMouseOver.png \
200 $(ZIP1DIR
)$/bitmaps
/ScrollbarArrowUpSelected.png \
201 $(ZIP1DIR
)$/bitmaps
/ScrollbarArrowUpDisabled.png \
202 $(ZIP1DIR
)$/bitmaps
/ScrollbarArrowDownNormal.png \
203 $(ZIP1DIR
)$/bitmaps
/ScrollbarArrowDownMouseOver.png \
204 $(ZIP1DIR
)$/bitmaps
/ScrollbarArrowDownSelected.png \
205 $(ZIP1DIR
)$/bitmaps
/ScrollbarArrowDownDisabled.png \
206 $(ZIP1DIR
)$/bitmaps
/ScrollbarPagerMiddleNormal.png \
207 $(ZIP1DIR
)$/bitmaps
/ScrollbarPagerMiddleMouseOver.png \
208 $(ZIP1DIR
)$/bitmaps
/ScrollbarThumbTopNormal.png \
209 $(ZIP1DIR
)$/bitmaps
/ScrollbarThumbTopMouseOver.png \
210 $(ZIP1DIR
)$/bitmaps
/ScrollbarThumbBottomNormal.png \
211 $(ZIP1DIR
)$/bitmaps
/ScrollbarThumbBottomMouseOver.png \
212 $(ZIP1DIR
)$/bitmaps
/ScrollbarThumbMiddleNormal.png \
213 $(ZIP1DIR
)$/bitmaps
/ScrollbarThumbMiddleMouseOver.png \
215 $(ZIP1DIR
)$/bitmaps
$/ButtonPlusNormal.png \
216 $(ZIP1DIR
)$/bitmaps
$/ButtonPlusMouseOver.png \
217 $(ZIP1DIR
)$/bitmaps
$/ButtonPlusSelected.png \
218 $(ZIP1DIR
)$/bitmaps
$/ButtonPlusDisabled.png \
219 $(ZIP1DIR
)$/bitmaps
$/ButtonMinusNormal.png \
220 $(ZIP1DIR
)$/bitmaps
$/ButtonMinusMouseOver.png \
221 $(ZIP1DIR
)$/bitmaps
$/ButtonMinusSelected.png \
222 $(ZIP1DIR
)$/bitmaps
$/ButtonMinusDisabled.png \
224 $(ZIP1DIR
)$/bitmaps
$/ButtonFrameLeftNormal.png \
225 $(ZIP1DIR
)$/bitmaps
$/ButtonFrameCenterNormal.png \
226 $(ZIP1DIR
)$/bitmaps
$/ButtonFrameRightNormal.png \
227 $(ZIP1DIR
)$/bitmaps
$/ButtonFrameLeftMouseOver.png \
228 $(ZIP1DIR
)$/bitmaps
$/ButtonFrameCenterMouseOver.png \
229 $(ZIP1DIR
)$/bitmaps
$/ButtonFrameRightMouseOver.png \
231 $(ZIP1DIR
)$/bitmaps
$/LabelMouseOverLeft.png \
232 $(ZIP1DIR
)$/bitmaps
$/LabelMouseOverCenter.png \
233 $(ZIP1DIR
)$/bitmaps
$/LabelMouseOverRight.png
235 COMPONENT_MANIFEST
= \
236 $(ZIP1DIR
)$/META-INF
$/manifest.xml
239 $(ZIP1DIR
)$/$(TARGET
).uno
$(DLLPOST
)
242 $(ZIP1DIR
)$/help
/component.txt
246 $(COMPONENT_MANIFEST
) \
248 $(COMPONENT_BITMAPS
) \
249 $(COMPONENT_LIBRARY
) \
251 # $(COMPONENT_MERGED_XCU) \
253 PLATFORMID
:=$(RTL_OS
:l
)_
$(RTL_ARCH
:l
)
256 # --- Targets ----------------------------------
257 .ENDIF
# L10N_framework
260 .IF
"$(L10N_framework)"==""
261 $(SLO
)$/PresenterComponent.obj
: $(INCCOM
)$/PresenterExtensionIdentifier.hxx
263 $(INCCOM
)$/PresenterExtensionIdentifier.hxx
: PresenterExtensionIdentifier.txx
264 $(TYPE
) $< | sed s
/UPDATED_PLATFORM
/$(PLATFORMID
)/ > $@
266 $(COMPONENT_MANIFEST
) : $$(@
:f
)
267 @
-$(MKDIRHIER
) $(@
:d
)
268 +$(TYPE
) $< |
$(SED
) "s/SHARED_EXTENSION/$(DLLPOST)/" > $@
270 $(COMPONENT_HELP
) : help
$/$$(@
:f
)
271 @@
-$(MKDIRHIER
) $(@
:d
)
274 #$(COMPONENT_FILES) : $$(@:f)
275 # -$(MKDIRHIER) $(@:d)
278 $(COMPONENT_BITMAPS
) : bitmaps
$/$$(@
:f
)
279 @
-$(MKDIRHIER
) $(@
:d
)
282 $(COMPONENT_LIBRARY
) : $(DLLDEST
)$/$$(@
:f
)
283 @
-$(MKDIRHIER
) $(@
:d
)
285 .IF
"$(OS)$(CPU)"=="WNTI"
287 $(GNUCOPY
) $(SOLARBINDIR
)$/mingwm10.dll
$(ZIP1DIR
)
290 .IF
"$(CCNUMVER)" <= "001399999999"
291 $(GNUCOPY
) $(PACKMS
)$/msvcr71.dll
$(ZIP1DIR
)
292 $(GNUCOPY
) $(PACKMS
)$/msvcp71.dll
$(ZIP1DIR
)
294 .IF
"$(CCNUMVER)" <= "001499999999"
295 $(GNUCOPY
) $(PACKMS
)$/msvcr80.dll
$(ZIP1DIR
)
296 $(GNUCOPY
) $(PACKMS
)$/msvcp80.dll
$(ZIP1DIR
)
297 $(GNUCOPY
) $(PACKMS
)$/msvcm80.dll
$(ZIP1DIR
)
298 $(GNUCOPY
) $(PACKMS
)$/Microsoft.VC80.CRT.manifest
$(ZIP1DIR
)
300 $(GNUCOPY
) $(PACKMS
)$/msvcr90.dll
$(ZIP1DIR
)
301 $(GNUCOPY
) $(PACKMS
)$/msvcp90.dll
$(ZIP1DIR
)
302 $(GNUCOPY
) $(PACKMS
)$/msvcm90.dll
$(ZIP1DIR
)
303 $(GNUCOPY
) $(PACKMS
)$/Microsoft.VC90.CRT.manifest
$(ZIP1DIR
)
306 .ELSE
# "$(PACKMS)"!=""
307 .IF
"$(CCNUMVER)" <= "001399999999"
308 $(GNUCOPY
) $(SOLARBINDIR
)$/msvcr71.dll
$(ZIP1DIR
)
309 $(GNUCOPY
) $(SOLARBINDIR
)$/msvcp71.dll
$(ZIP1DIR
)
311 .IF
"$(CCNUMVER)" <= "001499999999"
312 $(GNUCOPY
) $(SOLARBINDIR
)$/msvcr80.dll
$(ZIP1DIR
)
313 $(GNUCOPY
) $(SOLARBINDIR
)$/msvcp80.dll
$(ZIP1DIR
)
314 $(GNUCOPY
) $(SOLARBINDIR
)$/msvcm80.dll
$(ZIP1DIR
)
315 $(GNUCOPY
) $(SOLARBINDIR
)$/Microsoft.VC80.CRT.manifest
$(ZIP1DIR
)
317 $(GNUCOPY
) $(SOLARBINDIR
)$/msvcr90.dll
$(ZIP1DIR
)
318 $(GNUCOPY
) $(SOLARBINDIR
)$/msvcp90.dll
$(ZIP1DIR
)
319 $(GNUCOPY
) $(SOLARBINDIR
)$/msvcm90.dll
$(ZIP1DIR
)
320 $(GNUCOPY
) $(SOLARBINDIR
)$/Microsoft.VC90.CRT.manifest
$(ZIP1DIR
)
323 .ENDIF
# "$(PACKMS)"!=""
324 .ENDIF
#"$(COM)"=="GCC"
329 $(ZIP1DIR
)/%.xcu
: %.xcu
330 @@
-$(MKDIRHIER
) $(@
:d
)
333 $(ZIP1DIR
)$/%.xcs
: %.xcs
334 @@
-$(MKDIRHIER
) $(@
:d
)
337 # Temporary file that is used to replace some placeholders in description.xml.
338 DESCRIPTION_TMP
:=$(ZIP1DIR
)$/description.xml.tmp
340 .INCLUDE .IGNORE
: $(ZIP1DIR
)_lang_track.mk
341 .IF
"$(LAST_WITH_LANG)"!="$(WITH_LANG)"
343 .ENDIF
# "$(LAST_WITH_LANG)"!="$(WITH_LANG)"
344 $(DESCRIPTION
) $(PHONYDESC
) : $$(@
:f
)
345 @@
-$(MKDIRHIER
) $(@
:d
)
346 $(PERL
) $(SOLARENV
)$/bin
$/licinserter.pl description.xml registry
/LICENSE_xxx
$(DESCRIPTION_TMP
)
347 @echo LAST_WITH_LANG
=$(WITH_LANG
) > $(ZIP1DIR
)_lang_track.mk
348 $(TYPE
) $(DESCRIPTION_TMP
) | sed s
/UPDATED_PLATFORM
/$(PLATFORMID
)/ > $@
349 @@
-$(RM
) $(DESCRIPTION_TMP
)
352 .ENDIF
# "$(ENABLE_PRESENTER_SCREEN)" != "NO"
356 .ENDIF
# L10N_framework