summaryrefslogtreecommitdiff
path: root/sdext/source/presenter/makefile.mk
blob: fd95093f36a3208559636f1789dbd9dd2f019635 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# 
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org.  If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************

PRJ=..$/..
PRJNAME=sdext
TARGET=PresenterScreen
GEN_HID=FALSE
EXTNAME=PresenterScreen

ENABLE_EXCEPTIONS=TRUE
VISIBILITY_HIDDEN=TRUE
# survive zip dependencies
MAXLINELENGTH:=100000

# --- Settings ----------------------------------

.INCLUDE : rtlbootstrap.mk
.INCLUDE : settings.mk

PACKAGE=com.sun.PresenterScreen-$(PLATFORMID)

.IF "$(ENABLE_PRESENTER_SCREEN)" == "NO"
@all:
    @echo "Presenter Screen build disabled."
.ELSE

.IF "$(L10N_framework)"==""
.INCLUDE :  $(PRJ)$/util$/makefile.pmk

DLLPRE=
common_build_zip=

# --- Files -------------------------------------

SLOFILES=										\
    $(SLO)$/PresenterAccessibility.obj			\
    $(SLO)$/PresenterAnimation.obj				\
    $(SLO)$/PresenterAnimator.obj				\
    $(SLO)$/PresenterBitmapContainer.obj		\
    $(SLO)$/PresenterButton.obj					\
    $(SLO)$/PresenterCanvasHelper.obj			\
    $(SLO)$/PresenterConfigurationAccess.obj	\
    $(SLO)$/PresenterController.obj				\
    $(SLO)$/PresenterCurrentSlideObserver.obj	\
    $(SLO)$/PresenterFrameworkObserver.obj		\
    $(SLO)$/PresenterGeometryHelper.obj			\
    $(SLO)$/PresenterHelper.obj					\
    $(SLO)$/PresenterHelpView.obj				\
    $(SLO)$/PresenterNotesView.obj				\
    $(SLO)$/PresenterPaintManager.obj			\
    $(SLO)$/PresenterPane.obj					\
    $(SLO)$/PresenterPaneAnimator.obj			\
    $(SLO)$/PresenterPaneBase.obj				\
    $(SLO)$/PresenterPaneBorderManager.obj		\
    $(SLO)$/PresenterPaneBorderPainter.obj		\
    $(SLO)$/PresenterPaneContainer.obj			\
    $(SLO)$/PresenterPaneFactory.obj			\
    $(SLO)$/PresenterProtocolHandler.obj		\
    $(SLO)$/PresenterScreen.obj					\
    $(SLO)$/PresenterScrollBar.obj				\
    $(SLO)$/PresenterSlidePreview.obj			\
    $(SLO)$/PresenterSlideShowView.obj			\
    $(SLO)$/PresenterSlideSorter.obj			\
    $(SLO)$/PresenterSprite.obj					\
    $(SLO)$/PresenterSpritePane.obj				\
    $(SLO)$/PresenterTextView.obj				\
    $(SLO)$/PresenterTheme.obj					\
    $(SLO)$/PresenterTimer.obj					\
    $(SLO)$/PresenterToolBar.obj				\
    $(SLO)$/PresenterUIPainter.obj				\
    $(SLO)$/PresenterViewFactory.obj			\
    $(SLO)$/PresenterWindowManager.obj			\
    $(SLO)$/PresenterComponent.obj


# --- Library -----------------------------------

SHL1TARGET=$(ENFORCEDSHLPREFIX)$(TARGET).uno

SHL1STDLIBS=	$(CPPUHELPERLIB)	\
                $(CPPULIB)			\
                $(SALLIB)

SHL1DEPN=
SHL1IMPLIB=		i$(SHL1TARGET)
SHL1LIBS=		$(SLB)$/$(TARGET).lib
SHL1DEF=		$(MISC)$/$(SHL1TARGET).def
SHL1USE_EXPORTS = name
SHL1RPATH=      OXT
DEF1NAME=		$(SHL1TARGET)

ZIP2TARGET=		presenter-screen_develop
ZIP2DIR=		$(COMMONMISC)
ZIP2EXT=		.zip
ZIP2FLAGS=-r
ZIP2LIST=		*/com.sun.PresenterScreen/*.xhp

ZIP1TARGET=		presenter-screen
ZIP1DIR=		$(MISC)$/$(TARGET)
ZIP1EXT=		.oxt
ZIP1FLAGS=-r
ZIP1LIST=		*

DESCRIPTION:=$(ZIP1DIR)$/description.xml

.IF "$(WITH_LANG)"==""
FIND_XCU=registry/data
.ELSE			# "$(WITH_LANG)"==""
FIND_XCU=$(MISC)$/$(EXTNAME)_in$/merge
.ENDIF			# "$(WITH_LANG)"==""

COMPONENT_FILES=																			\
    $(ZIP1DIR)$/registry$/data$/org$/openoffice$/Office$/Jobs.xcu							\
    $(ZIP1DIR)$/registry$/data$/org$/openoffice$/Office$/ProtocolHandler.xcu				\
    $(ZIP1DIR)$/registry$/schema/org$/openoffice$/Office$/extension$/PresenterScreen.xcs   	\
    $(ZIP1DIR)$/registry$/data/$/org$/openoffice$/Office$/extension$/PresenterScreen.xcu 

COMPONENT_BITMAPS=												\
    $(ZIP1DIR)$/bitmaps$/BorderTop.png							\
    $(ZIP1DIR)$/bitmaps$/BorderTopLeft.png						\
    $(ZIP1DIR)$/bitmaps$/BorderTopRight.png						\
    $(ZIP1DIR)$/bitmaps$/BorderLeft.png							\
    $(ZIP1DIR)$/bitmaps$/BorderRight.png						\
    $(ZIP1DIR)$/bitmaps$/BorderBottomLeft.png					\
    $(ZIP1DIR)$/bitmaps$/BorderBottomRight.png					\
    $(ZIP1DIR)$/bitmaps$/BorderBottom.png						\
                                                                \
    $(ZIP1DIR)$/bitmaps$/BorderActiveTop.png					\
    $(ZIP1DIR)$/bitmaps$/BorderActiveTopLeft.png				\
    $(ZIP1DIR)$/bitmaps$/BorderActiveTopRight.png				\
    $(ZIP1DIR)$/bitmaps$/BorderActiveLeft.png					\
    $(ZIP1DIR)$/bitmaps$/BorderActiveRight.png					\
    $(ZIP1DIR)$/bitmaps$/BorderActiveBottomLeft.png				\
    $(ZIP1DIR)$/bitmaps$/BorderActiveBottomRight.png			\
    $(ZIP1DIR)$/bitmaps$/BorderActiveBottom.png					\
    $(ZIP1DIR)$/bitmaps$/BorderActiveBottomCallout.png			\
                                                                \
    $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideTop.png				\
    $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideTopLeft.png			\
    $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideTopRight.png			\
    $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideLeft.png				\
    $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideRight.png			\
    $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideBottomLeft.png		\
    $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideBottomRight.png		\
    $(ZIP1DIR)$/bitmaps$/BorderCurrentSlideBottom.png			\
                                                                \
    $(ZIP1DIR)$/bitmaps$/BorderToolbarTop.png					\
    $(ZIP1DIR)$/bitmaps$/BorderToolbarTopLeft.png				\
    $(ZIP1DIR)$/bitmaps$/BorderToolbarTopRight.png				\
    $(ZIP1DIR)$/bitmaps$/BorderToolbarLeft.png					\
    $(ZIP1DIR)$/bitmaps$/BorderToolbarRight.png					\
    $(ZIP1DIR)$/bitmaps$/BorderToolbarBottom.png				\
                                                                \
    $(ZIP1DIR)$/bitmaps$/Background.png							\
    $(ZIP1DIR)$/bitmaps$/ViewBackground.png						\
                                                                \
    $(ZIP1DIR)$/bitmaps$/ButtonSlidePreviousNormal.png			\
    $(ZIP1DIR)$/bitmaps$/ButtonSlidePreviousMouseOver.png		\
    $(ZIP1DIR)$/bitmaps$/ButtonSlidePreviousSelected.png		\
    $(ZIP1DIR)$/bitmaps$/ButtonSlidePreviousDisabled.png		\
    $(ZIP1DIR)$/bitmaps$/ButtonEffectNextNormal.png				\
    $(ZIP1DIR)$/bitmaps$/ButtonEffectNextMouseOver.png			\
    $(ZIP1DIR)$/bitmaps$/ButtonEffectNextSelected.png			\
    $(ZIP1DIR)$/bitmaps$/ButtonEffectNextDisabled.png			\
    $(ZIP1DIR)$/bitmaps$/ButtonNotesNormal.png					\
    $(ZIP1DIR)$/bitmaps$/ButtonNotesMouseOver.png				\
    $(ZIP1DIR)$/bitmaps$/ButtonNotesSelected.png				\
    $(ZIP1DIR)$/bitmaps$/ButtonNotesDisabled.png				\
    $(ZIP1DIR)$/bitmaps$/ButtonSwitchMonitorNormal.png				\
    $(ZIP1DIR)$/bitmaps$/ButtonSwitchMonitorMouseOver.png			\
    $(ZIP1DIR)$/bitmaps$/ButtonSlideSorterNormal.png			\
    $(ZIP1DIR)$/bitmaps$/ButtonSlideSorterMouseOver.png			\
    $(ZIP1DIR)$/bitmaps$/ButtonSlideSorterSelected.png			\
    $(ZIP1DIR)$/bitmaps$/ButtonSlideSorterDisabled.png			\
    $(ZIP1DIR)$/bitmaps$/ButtonHelpNormal.png					\
    $(ZIP1DIR)$/bitmaps$/ButtonHelpMouseOver.png				\
    $(ZIP1DIR)$/bitmaps$/ButtonHelpSelected.png					\
    $(ZIP1DIR)$/bitmaps$/ButtonHelpDisabled.png					\
                                                                \
    $(ZIP1DIR)$/bitmaps/ScrollbarArrowUpNormal.png				\
    $(ZIP1DIR)$/bitmaps/ScrollbarArrowUpMouseOver.png			\
    $(ZIP1DIR)$/bitmaps/ScrollbarArrowUpSelected.png			\
    $(ZIP1DIR)$/bitmaps/ScrollbarArrowUpDisabled.png			\
    $(ZIP1DIR)$/bitmaps/ScrollbarArrowDownNormal.png			\
    $(ZIP1DIR)$/bitmaps/ScrollbarArrowDownMouseOver.png			\
    $(ZIP1DIR)$/bitmaps/ScrollbarArrowDownSelected.png			\
    $(ZIP1DIR)$/bitmaps/ScrollbarArrowDownDisabled.png			\
    $(ZIP1DIR)$/bitmaps/ScrollbarPagerMiddleNormal.png			\
    $(ZIP1DIR)$/bitmaps/ScrollbarPagerMiddleMouseOver.png		\
    $(ZIP1DIR)$/bitmaps/ScrollbarThumbTopNormal.png				\
    $(ZIP1DIR)$/bitmaps/ScrollbarThumbTopMouseOver.png			\
    $(ZIP1DIR)$/bitmaps/ScrollbarThumbBottomNormal.png			\
    $(ZIP1DIR)$/bitmaps/ScrollbarThumbBottomMouseOver.png		\
    $(ZIP1DIR)$/bitmaps/ScrollbarThumbMiddleNormal.png			\
    $(ZIP1DIR)$/bitmaps/ScrollbarThumbMiddleMouseOver.png		\
                                                                \
    $(ZIP1DIR)$/bitmaps$/ButtonPlusNormal.png					\
    $(ZIP1DIR)$/bitmaps$/ButtonPlusMouseOver.png				\
    $(ZIP1DIR)$/bitmaps$/ButtonPlusSelected.png					\
    $(ZIP1DIR)$/bitmaps$/ButtonPlusDisabled.png					\
    $(ZIP1DIR)$/bitmaps$/ButtonMinusNormal.png					\
    $(ZIP1DIR)$/bitmaps$/ButtonMinusMouseOver.png				\
    $(ZIP1DIR)$/bitmaps$/ButtonMinusSelected.png				\
    $(ZIP1DIR)$/bitmaps$/ButtonMinusDisabled.png				\
                                                                \
    $(ZIP1DIR)$/bitmaps$/ButtonFrameLeftNormal.png				\
    $(ZIP1DIR)$/bitmaps$/ButtonFrameCenterNormal.png			\
    $(ZIP1DIR)$/bitmaps$/ButtonFrameRightNormal.png				\
    $(ZIP1DIR)$/bitmaps$/ButtonFrameLeftMouseOver.png			\
    $(ZIP1DIR)$/bitmaps$/ButtonFrameCenterMouseOver.png			\
    $(ZIP1DIR)$/bitmaps$/ButtonFrameRightMouseOver.png			\
                                                                \
    $(ZIP1DIR)$/bitmaps$/LabelMouseOverLeft.png					\
    $(ZIP1DIR)$/bitmaps$/LabelMouseOverCenter.png				\
    $(ZIP1DIR)$/bitmaps$/LabelMouseOverRight.png

COMPONENT_IMAGES=\
    $(ZIP1DIR)$/bitmaps$/extension_32.png

COMPONENT_MANIFEST= 							\
    $(ZIP1DIR)$/META-INF$/manifest.xml

COMPONENT_LIBRARY= 								\
    $(ZIP1DIR)$/$(TARGET).uno$(DLLPOST)

PLATFORMID:=$(RTL_OS:l)_$(RTL_ARCH:l)

COMPONENT_HELP= 								\
    $(foreach,l,$(alllangiso) $(ZIP1DIR)$/help$/$l$/com.sun.PresenterScreen-$(PLATFORMID)$/presenter.xhp)

COMPONENT_DESCRIPTION= \
    $(foreach,lang,$(alllangiso) $(ZIP1DIR)$/description-$(lang).txt)

ZIP1DEPS=					\
    $(DESCRIPTION)			\
    $(COMPONENT_MANIFEST)	\
    $(COMPONENT_FILES)		\
    $(COMPONENT_BITMAPS)	\
    $(COMPONENT_IMAGES)    	\
    $(COMPONENT_LIBRARY)	\
    $(COMPONENT_DESCRIPTION)	\
    $(COMPONENT_HELP)

LINKNAME:=help
XHPLINKSRC:=$(ZIP1DIR)/help

my_XHPFILES= \
    presenter.xhp

LINKLINKFILES= \
    $(PACKAGE)/{$(my_XHPFILES)}

# --- Targets ----------------------------------
.ENDIF # L10N_framework

.INCLUDE : target.mk
.INCLUDE : extension_helplink.mk

.IF "$(L10N_framework)"==""
$(SLO)$/PresenterComponent.obj : $(INCCOM)$/PresenterExtensionIdentifier.hxx

$(INCCOM)$/PresenterExtensionIdentifier.hxx : PresenterExtensionIdentifier.txx
    $(TYPE) $< | sed s/UPDATED_PLATFORM/$(PLATFORMID)/ > $@

$(COMPONENT_MANIFEST) : $$(@:f)
    @-$(MKDIRHIER) $(@:d)
    +$(TYPE) $< | $(SED) "s/SHARED_EXTENSION/$(DLLPOST)/" > $@

$(ZIP1DIR)$/help$/%$/com.sun.PresenterScreen-$(PLATFORMID)$/presenter.xhp : $(COMMONMISC)$/%$/com.sun.PresenterScreen$/presenter.xhp
    @echo creating $@
    @-$(MKDIRHIER) $(@:d)
    $(TYPE) $< | sed "s/PLATFORMID/$(PLATFORMID)/" > $@

.IF "$(ZIP1TARGETN)"!=""
$(ZIP1TARGETN) : $(HELPLINKALLTARGETS)

.ENDIF          # "$(ZIP1TARGETN)"!=""

$(COMPONENT_BITMAPS) : bitmaps$/$$(@:f)
    @-$(MKDIRHIER) $(@:d)
    +$(COPY) $< $@

$(COMPONENT_IMAGES) : $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f)
    @@-$(MKDIRHIER) $(@:d)
    $(COPY) $< $@

$(COMPONENT_LIBRARY) : $(DLLDEST)$/$$(@:f)
    @-$(MKDIRHIER) $(@:d)
    +$(COPY) $< $@

$(COMPONENT_DESCRIPTION) : $(DESCRIPTION)

$(ZIP1DIR)/%.xcu : %.xcu
    @@-$(MKDIRHIER) $(@:d)
    $(GNUCOPY) $< $@

$(ZIP1DIR)$/%.xcs : %.xcs
    @@-$(MKDIRHIER) $(@:d)
    $(GNUCOPY) $< $@

.INCLUDE .IGNORE : $(ZIP1DIR)_lang_track.mk
.IF "$(LAST_WITH_LANG)"!="$(WITH_LANG)"
PHONYDESC=.PHONY
.ENDIF			# "$(LAST_WITH_LANG)"!="$(WITH_LANG)"
$(DESCRIPTION) $(PHONYDESC) : $$(@:f)
    @-$(MKDIRHIER) $(@:d)
    @echo LAST_WITH_LANG=$(WITH_LANG) > $(ZIP1DIR)_lang_track.mk
    $(GNUCOPY) description-en-US.txt $(ZIP1DIR)/description-en-US.txt
.IF "$(WITH_LANG)" != ""
    $(XRMEX) -p $(PRJNAME) -i description.xml -o $@ -m $(LOCALIZESDF) -l all
    sed s/UPDATED_PLATFORM/$(PLATFORMID)/ < $@ > $@.new
    mv $@.new $@
.ELSE
    sed s/UPDATED_PLATFORM/$(PLATFORMID)/ < description.xml > $@
.ENDIF

ALLTAR: $(MISC)/../bin/presenter-screen.oxt
# hotfix to missing localizations
.IF "$(WITH_LANG)"!=""
    $(COPY) $(ZIP1DIR)_in/merge/org/openoffice/Office/extension/PresenterScreen.xcu $(ZIP1DIR)/registry/data/org/openoffice/Office/extension/
    cd $(ZIP1DIR);zip -r -u ../../bin/presenter-screen.oxt registry/data/org/openoffice/Office/extension/PresenterScreen.xcu
.ENDIF

.ELSE
ivo:
    $(ECHO)
.ENDIF # L10N_framework

.ENDIF # "$(ENABLE_PRESENTER_SCREEN)" != "NO"