xref: /AOO41X/main/sdext/source/presenter/makefile.mk (revision d3e0dd8eb215533c15e891ee35bd141abe9397ee)
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
98.IF "$(GUI)"=="OS2"
99SHL1TARGET=PreScr
100.ELSE
101SHL1TARGET=$(TARGET).uno
102.ENDIF
103
104SHL1STDLIBS= \
105    $(CPPUHELPERLIB) \
106    $(CPPULIB) \
107    $(SALLIB)
108
109SHL1DEPN=
110SHL1IMPLIB=    i$(SHL1TARGET)
111SHL1LIBS=    $(SLB)$/$(TARGET).lib
112SHL1DEF=    $(MISC)$/$(SHL1TARGET).def
113SHL1VERSIONMAP=$(SOLARENV)/src/component.map
114SHL1RPATH=      OXT
115DEF1NAME=    $(SHL1TARGET)
116
117# ------------------------------------------------------------------------------
118
119# Resource files
120
121SRS1NAME=$(TARGET)
122SRC1FILES =  \
123        $(TARGET).src \
124
125SRSFILELIST=\
126        $(SRS)$/$(TARGET).srs \
127
128RESLIB1NAME=$(TARGET)
129RESLIB1SRSFILES= $(SRSFILELIST)
130
131
132PACKAGEDIR=$(subst,.,$/ $(PACKAGE))
133SPOOLDIR=$(MISC)$/registry$/spool
134
135XCUFILES= \
136    Jobs.xcu \
137    ProtocolHandler.xcu
138
139MYXCUFILES= \
140    $(SPOOLDIR)$/$(PACKAGEDIR)$/Jobs$/Jobs-presenterscreen.xcu \
141    $(SPOOLDIR)$/$(PACKAGEDIR)$/ProtocolHandler/ProtocolHandler-presenterscreen.xcu
142
143
144# --- Targets ----------------------------------
145
146.INCLUDE : target.mk
147
148ALLTAR : $(MYXCUFILES)
149
150XCU_SOURCEDIR:=.
151
152$(SPOOLDIR)$/$(PACKAGEDIR)$/Jobs$/Jobs-presenterscreen.xcu : $(XCU_SOURCEDIR)$/Jobs.xcu
153    @-$(MKDIRHIER) $(@:d)
154    @$(COPY) $< $@
155
156$(SPOOLDIR)$/$(PACKAGEDIR)$/ProtocolHandler$/ProtocolHandler-presenterscreen.xcu : $(XCU_SOURCEDIR)$/ProtocolHandler.xcu
157    @-$(MKDIRHIER) $(@:d)
158    @$(COPY) $< $@
159
160ALLTAR : $(MISC)/PresenterScreen.component
161
162$(MISC)/PresenterScreen.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt PresenterScreen.component
163    $(XSLTPROC) --nonet --stringparam uri \
164    '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
165    $(SOLARENV)/bin/createcomponent.xslt PresenterScreen.component
166
167.ENDIF # L10N_framework
168