xref: /aoo41x/main/sdext/source/presenter/makefile.mk (revision 7871dc3e)
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 "$(L10N_framework)"==""
42.INCLUDE :  $(PRJ)$/util$/makefile.pmk
43
44.IF "$(ENABLE_PRESENTER_SCREEN)" == "NO"
45@all:
46	@echo "Presenter Screen build disabled."
47.ELSE
48
49DLLPRE=
50common_build_zip=
51
52# --- Files -------------------------------------
53
54SLOFILES=										\
55	$(SLO)$/PresenterAccessibility.obj			\
56	$(SLO)$/PresenterAnimation.obj				\
57	$(SLO)$/PresenterAnimator.obj				\
58	$(SLO)$/PresenterBitmapContainer.obj		\
59	$(SLO)$/PresenterButton.obj					\
60	$(SLO)$/PresenterCanvasHelper.obj			\
61	$(SLO)$/PresenterConfigurationAccess.obj	\
62	$(SLO)$/PresenterController.obj				\
63	$(SLO)$/PresenterCurrentSlideObserver.obj	\
64	$(SLO)$/PresenterFrameworkObserver.obj		\
65	$(SLO)$/PresenterGeometryHelper.obj			\
66	$(SLO)$/PresenterHelper.obj					\
67	$(SLO)$/PresenterHelpView.obj				\
68	$(SLO)$/PresenterNotesView.obj				\
69	$(SLO)$/PresenterPaintManager.obj			\
70	$(SLO)$/PresenterPane.obj					\
71	$(SLO)$/PresenterPaneAnimator.obj			\
72	$(SLO)$/PresenterPaneBase.obj				\
73	$(SLO)$/PresenterPaneBorderManager.obj		\
74	$(SLO)$/PresenterPaneBorderPainter.obj		\
75	$(SLO)$/PresenterPaneContainer.obj			\
76	$(SLO)$/PresenterPaneFactory.obj			\
77	$(SLO)$/PresenterProtocolHandler.obj		\
78	$(SLO)$/PresenterScreen.obj					\
79	$(SLO)$/PresenterScrollBar.obj				\
80	$(SLO)$/PresenterSlidePreview.obj			\
81	$(SLO)$/PresenterSlideShowView.obj			\
82	$(SLO)$/PresenterSlideSorter.obj			\
83	$(SLO)$/PresenterSprite.obj					\
84	$(SLO)$/PresenterSpritePane.obj				\
85	$(SLO)$/PresenterTextView.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
93
94
95# --- Library -----------------------------------
96
97SHL1TARGET=		$(TARGET).uno
98
99SHL1STDLIBS=	$(CPPUHELPERLIB)	\
100				$(CPPULIB)			\
101				$(SALLIB)
102
103SHL1DEPN=
104SHL1IMPLIB=		i$(SHL1TARGET)
105SHL1LIBS=		$(SLB)$/$(TARGET).lib
106SHL1DEF=		$(MISC)$/$(SHL1TARGET).def
107SHL1VERSIONMAP=$(SOLARENV)/src/reg-component.map
108SHL1RPATH=      OXT
109DEF1NAME=		$(SHL1TARGET)
110
111ZIP2TARGET=		presenter-screen_develop
112ZIP2DIR=		$(COMMONMISC)
113ZIP2EXT=		.zip
114ZIP2FLAGS=-r
115ZIP2LIST=		*/com.sun.PresenterScreen/*.xhp
116
117ZIP1TARGET=		presenter-screen
118ZIP1DIR=		$(MISC)$/$(TARGET)
119ZIP1EXT=		.oxt
120ZIP1FLAGS=-r
121ZIP1LIST=		*
122
123DESCRIPTION:=$(ZIP1DIR)$/description.xml
124
125.IF "$(GUI)" == "WIN" || "$(GUI)" == "WNT"
126PACKLICS:=$(foreach,i,$(alllangiso) $(ZIP1DIR)$/registry$/license_$i)
127.ELSE
128PACKLICS:=$(foreach,i,$(alllangiso) $(ZIP1DIR)$/registry$/LICENSE_$i)
129.ENDIF
130
131.IF "$(WITH_LANG)"==""
132FIND_XCU=registry/data
133.ELSE			# "$(WITH_LANG)"==""
134FIND_XCU=$(MISC)$/$(EXTNAME)_in$/merge
135.ENDIF			# "$(WITH_LANG)"==""
136
137COMPONENT_FILES=																			\
138    $(ZIP1DIR)$/registry$/data$/org$/openoffice$/Office$/Jobs.xcu							\
139    $(ZIP1DIR)$/registry$/data$/org$/openoffice$/Office$/ProtocolHandler.xcu				\
140    $(ZIP1DIR)$/registry$/schema/org$/openoffice$/Office$/extension$/PresenterScreen.xcs   	\
141	$(ZIP1DIR)$/registry$/data/$/org$/openoffice$/Office$/extension$/PresenterScreen.xcu
142
143#COMPONENT_MERGED_XCU= \
144#	$(FIND_XCU)$/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_MANIFEST= 							\
248	$(ZIP1DIR)$/META-INF$/manifest.xml
249
250COMPONENT_LIBRARY= 								\
251	$(ZIP1DIR)$/$(TARGET).uno$(DLLPOST)
252
253PLATFORMID:=$(RTL_OS:l)_$(RTL_ARCH:l)
254
255COMPONENT_HELP= 								\
256	$(ZIP1DIR)$/help/component.txt				\
257	$(foreach,l,$(alllangiso) $(ZIP1DIR)$/help$/$l$/com.sun.PresenterScreen-$(PLATFORMID)$/presenter.xhp)
258
259ZIP1DEPS=					\
260	$(PACKLICS) 			\
261	$(DESCRIPTION)			\
262	$(COMPONENT_MANIFEST)	\
263	$(COMPONENT_FILES)		\
264	$(COMPONENT_BITMAPS)	\
265	$(COMPONENT_IMAGES)    	\
266	$(COMPONENT_LIBRARY)	\
267	$(COMPONENT_HELP)
268
269#	$(COMPONENT_MERGED_XCU) \
270
271
272LINKNAME:=help
273XHPLINKSRC:=$(ZIP1DIR)/help
274
275my_XHPFILES= \
276    presenter.xhp
277
278LINKLINKFILES= \
279    $(PACKAGE)/{$(my_XHPFILES)}
280
281# --- Targets ----------------------------------
282.ENDIF # L10N_framework
283
284.INCLUDE : target.mk
285.INCLUDE : extension_helplink.mk
286
287.IF "$(L10N_framework)"==""
288$(SLO)$/PresenterComponent.obj : $(INCCOM)$/PresenterExtensionIdentifier.hxx
289
290$(INCCOM)$/PresenterExtensionIdentifier.hxx : PresenterExtensionIdentifier.txx
291	$(TYPE) $< | sed s/UPDATED_PLATFORM/$(PLATFORMID)/ > $@
292
293$(COMPONENT_MANIFEST) : $$(@:f)
294	@-$(MKDIRHIER) $(@:d)
295    +$(TYPE) $< | $(SED) "s/SHARED_EXTENSION/$(DLLPOST)/" > $@
296
297$(ZIP1DIR)$/help$/component.txt : help$/$$(@:f)
298	@@-$(MKDIRHIER) $(@:d)
299    $(COPY) $< $@
300
301$(ZIP1DIR)/help/%/com.sun.PresenterScreen-$(PLATFORMID)/presenter.xhp : $(COMMONMISC)/%/com.sun.PresenterScreen/presenter.xhp
302	@echo creating $@
303	@-$(MKDIRHIER) $(@:d)
304	$(TYPE) $< | sed "s/PLATFORMID/$(PLATFORMID)/" | sed 's/@PRESENTEREXTENSIONPRODUCTNAME@/Presenter Console/g' > $@
305
306.IF "$(ZIP1TARGETN)"!=""
307$(ZIP1TARGETN) : $(HELPLINKALLTARGETS)
308
309.ENDIF          # "$(ZIP1TARGETN)"!=""
310
311$(COMPONENT_BITMAPS) : bitmaps$/$$(@:f)
312	@-$(MKDIRHIER) $(@:d)
313    +$(COPY) $< $@
314
315$(COMPONENT_IMAGES) : $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f)
316	@@-$(MKDIRHIER) $(@:d)
317    $(COPY) $< $@
318
319$(COMPONENT_LIBRARY) : $(DLLDEST)$/$$(@:f)
320	@-$(MKDIRHIER) $(@:d)
321    +$(COPY) $< $@
322.IF "$(OS)$(CPU)"=="WNTI"
323 .IF "$(COM)"=="GCC"
324    $(GNUCOPY) $(SOLARBINDIR)$/mingwm10.dll $(ZIP1DIR)
325 .ELSE
326	.IF "$(PACKMS)"!=""
327		.IF "$(CCNUMVER)" <= "001399999999"
328			$(GNUCOPY) $(PACKMS)$/msvcr71.dll $(ZIP1DIR)
329			$(GNUCOPY) $(PACKMS)$/msvcp71.dll $(ZIP1DIR)
330		.ELSE
331			.IF "$(CCNUMVER)" <= "001499999999"
332				$(GNUCOPY) $(PACKMS)$/msvcr80.dll $(ZIP1DIR)
333				$(GNUCOPY) $(PACKMS)$/msvcp80.dll $(ZIP1DIR)
334		    	$(GNUCOPY) $(PACKMS)$/msvcm80.dll $(ZIP1DIR)
335				$(GNUCOPY) $(PACKMS)$/Microsoft.VC80.CRT.manifest $(ZIP1DIR)
336			.ELSE
337				$(GNUCOPY) $(PACKMS)$/msvcr90.dll $(ZIP1DIR)
338				$(GNUCOPY) $(PACKMS)$/msvcp90.dll $(ZIP1DIR)
339		    	$(GNUCOPY) $(PACKMS)$/msvcm90.dll $(ZIP1DIR)
340			    $(GNUCOPY) $(PACKMS)$/Microsoft.VC90.CRT.manifest $(ZIP1DIR)
341			.ENDIF
342	    .ENDIF
343	.ELSE        # "$(PACKMS)"!=""
344		.IF "$(CCNUMVER)" <= "001399999999"
345			$(GNUCOPY) $(SOLARBINDIR)$/msvcr71.dll $(ZIP1DIR)
346			$(GNUCOPY) $(SOLARBINDIR)$/msvcp71.dll $(ZIP1DIR)
347		.ELSE
348			.IF "$(CCNUMVER)" <= "001499999999"
349		    	$(GNUCOPY) $(SOLARBINDIR)$/msvcr80.dll $(ZIP1DIR)
350			    $(GNUCOPY) $(SOLARBINDIR)$/msvcp80.dll $(ZIP1DIR)
351				$(GNUCOPY) $(SOLARBINDIR)$/msvcm80.dll $(ZIP1DIR)
352				$(GNUCOPY) $(SOLARBINDIR)$/Microsoft.VC80.CRT.manifest $(ZIP1DIR)
353			.ELSE
354	    		$(GNUCOPY) $(SOLARBINDIR)$/msvcr90.dll $(ZIP1DIR)
355	    		$(GNUCOPY) $(SOLARBINDIR)$/msvcp90.dll $(ZIP1DIR)
356		    	$(GNUCOPY) $(SOLARBINDIR)$/msvcm90.dll $(ZIP1DIR)
357		    	$(GNUCOPY) $(SOLARBINDIR)$/Microsoft.VC90.CRT.manifest $(ZIP1DIR)
358			.ENDIF
359	    .ENDIF
360	.ENDIF         # "$(PACKMS)"!=""
361 .ENDIF	#"$(COM)"=="GCC"
362.ENDIF
363
364
365.IF "$(GUI)" == "WIN" || "$(GUI)" == "WNT"
366$(PACKLICS) : $(SOLARBINDIR)$/osl$/license$$(@:b:s/_/./:e:s/./_/)$$(@:e).txt
367	@@-$(MKDIRHIER) $(@:d)
368	$(GNUCOPY) $< $@
369.ELSE
370$(PACKLICS) : $(SOLARBINDIR)$/osl$/LICENSE$$(@:b:s/_/./:e:s/./_/)$$(@:e)
371	@@-$(MKDIRHIER) $(@:d)
372	$(GNUCOPY) $< $@
373.ENDIF
374
375
376$(ZIP1DIR)/%.xcu : %.xcu
377	@@-$(MKDIRHIER) $(@:d)
378	$(GNUCOPY) $< $@
379
380$(ZIP1DIR)$/%.xcs : %.xcs
381	@@-$(MKDIRHIER) $(@:d)
382	$(GNUCOPY) $< $@
383
384# Temporary file that is used to replace some placeholders in description.xml.
385DESCRIPTION_TMP:=$(ZIP1DIR)$/description.xml.tmp
386
387.INCLUDE .IGNORE : $(ZIP1DIR)_lang_track.mk
388.IF "$(LAST_WITH_LANG)"!="$(WITH_LANG)"
389PHONYDESC=.PHONY
390.ENDIF			# "$(LAST_WITH_LANG)"!="$(WITH_LANG)"
391$(DESCRIPTION) $(PHONYDESC) : $$(@:f)
392	@-$(MKDIRHIER) $(@:d)
393	$(PERL) $(SOLARENV)$/bin$/licinserter.pl description.xml registry/LICENSE_xxx $(DESCRIPTION_TMP)
394	@echo LAST_WITH_LANG=$(WITH_LANG) > $(ZIP1DIR)_lang_track.mk
395	$(TYPE) $(DESCRIPTION_TMP) | sed s/UPDATED_PLATFORM/$(PLATFORMID)/ > $@
396	@@-$(RM) $(DESCRIPTION_TMP)
397
398
399.ENDIF # "$(ENABLE_PRESENTER_SCREEN)" != "NO"
400.ELSE
401ivo:
402	$(ECHO)
403.ENDIF # L10N_framework
404
405