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