xref: /aoo42x/main/sdext/source/presenter/makefile.mk (revision 79e0a548)
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
22PRJ=..$/..
23PRJNAME=sdext
24TARGET=PresenterScreen
25GEN_HID=FALSE
26EXTNAME=PresenterScreen
27
28ENABLE_EXCEPTIONS=TRUE
29
30PACKAGE=org.openoffice.Office
31ABSXCSROOT=$(SOLARXMLDIR)
32XCSROOT=..
33DTDDIR=$(ABSXCSROOT)
34XSLDIR=$(ABSXCSROOT)$/processing
35PROCESSOUT=$(MISC)$/$(TARGET)
36PROCESSORDIR=$(SOLARBINDIR)
37
38# --- Settings ----------------------------------
39
40.INCLUDE : settings.mk
41
42.IF "$(L10N_framework)" != ""
43
44@all:
45	@echo "L10N framework disabled => Presenter Screen can not be built."
46
47.ELSE
48
49.INCLUDE :  $(PRJ)$/util$/makefile.pmk
50
51DLLPRE=
52
53# --- Files -------------------------------------
54
55SLOFILES=\
56	$(SLO)$/components.obj \
57	$(SLO)$/PresenterAccessibility.obj \
58	$(SLO)$/PresenterAnimation.obj \
59	$(SLO)$/PresenterAnimator.obj \
60	$(SLO)$/PresenterBitmapContainer.obj \
61	$(SLO)$/PresenterButton.obj \
62	$(SLO)$/PresenterCanvasHelper.obj \
63	$(SLO)$/PresenterConfigurationAccess.obj \
64	$(SLO)$/PresenterController.obj \
65	$(SLO)$/PresenterCurrentSlideObserver.obj \
66	$(SLO)$/PresenterFrameworkObserver.obj \
67	$(SLO)$/PresenterGeometryHelper.obj \
68	$(SLO)$/PresenterHelper.obj \
69	$(SLO)$/PresenterHelpView.obj \
70	$(SLO)$/PresenterNotesView.obj \
71	$(SLO)$/PresenterPaintManager.obj \
72	$(SLO)$/PresenterPane.obj \
73	$(SLO)$/PresenterPaneAnimator.obj \
74	$(SLO)$/PresenterPaneBase.obj \
75	$(SLO)$/PresenterPaneBorderManager.obj \
76	$(SLO)$/PresenterPaneBorderPainter.obj \
77	$(SLO)$/PresenterPaneContainer.obj \
78	$(SLO)$/PresenterPaneFactory.obj \
79	$(SLO)$/PresenterProtocolHandler.obj \
80	$(SLO)$/PresenterScreen.obj \
81	$(SLO)$/PresenterScrollBar.obj \
82	$(SLO)$/PresenterSlidePreview.obj \
83	$(SLO)$/PresenterSlideShowView.obj \
84	$(SLO)$/PresenterSlideSorter.obj \
85	$(SLO)$/PresenterSprite.obj \
86	$(SLO)$/PresenterSpritePane.obj \
87	$(SLO)$/PresenterTextView.obj \
88	$(SLO)$/PresenterTheme.obj \
89	$(SLO)$/PresenterTimer.obj \
90	$(SLO)$/PresenterToolBar.obj \
91	$(SLO)$/PresenterUIPainter.obj \
92	$(SLO)$/PresenterViewFactory.obj \
93	$(SLO)$/PresenterWindowManager.obj \
94
95
96# --- Library -----------------------------------
97
98SHL1TARGET=$(TARGET).uno
99
100SHL1STDLIBS= \
101	$(CPPUHELPERLIB) \
102	$(CPPULIB) \
103	$(SALLIB)
104
105SHL1DEPN=
106SHL1IMPLIB=    i$(SHL1TARGET)
107SHL1LIBS=    $(SLB)$/$(TARGET).lib
108SHL1DEF=    $(MISC)$/$(SHL1TARGET).def
109SHL1VERSIONMAP=$(SOLARENV)/src/component.map
110SHL1RPATH=      OXT
111DEF1NAME=    $(SHL1TARGET)
112
113# ------------------------------------------------------------------------------
114
115# Resource files
116
117SRS1NAME=$(TARGET)
118SRC1FILES =  \
119        $(TARGET).src \
120
121SRSFILELIST=\
122        $(SRS)$/$(TARGET).srs \
123
124RESLIB1NAME=$(TARGET)
125RESLIB1SRSFILES= $(SRSFILELIST)
126
127
128PACKAGEDIR=$(subst,.,$/ $(PACKAGE))
129SPOOLDIR=$(MISC)$/registry$/spool
130
131XCUFILES= \
132	Jobs.xcu \
133	ProtocolHandler.xcu
134
135MYXCUFILES= \
136	$(SPOOLDIR)$/$(PACKAGEDIR)$/Jobs$/Jobs-presenterscreen.xcu \
137	$(SPOOLDIR)$/$(PACKAGEDIR)$/ProtocolHandler/ProtocolHandler-presenterscreen.xcu
138
139
140# --- Targets ----------------------------------
141
142.INCLUDE : target.mk
143
144ALLTAR : $(MYXCUFILES)
145
146XCU_SOURCEDIR:=.
147
148$(SPOOLDIR)$/$(PACKAGEDIR)$/Jobs$/Jobs-presenterscreen.xcu : $(XCU_SOURCEDIR)$/Jobs.xcu
149	@-$(MKDIRHIER) $(@:d)
150	@$(COPY) $< $@
151
152$(SPOOLDIR)$/$(PACKAGEDIR)$/ProtocolHandler$/ProtocolHandler-presenterscreen.xcu : $(XCU_SOURCEDIR)$/ProtocolHandler.xcu
153	@-$(MKDIRHIER) $(@:d)
154	@$(COPY) $< $@
155
156ALLTAR : $(MISC)/PresenterScreen.component
157
158$(MISC)/PresenterScreen.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt PresenterScreen.component
159	$(XSLTPROC) --nonet --stringparam uri \
160	'$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
161	$(SOLARENV)/bin/createcomponent.xslt PresenterScreen.component
162
163.ENDIF # L10N_framework
164