xref: /AOO41X/main/slideshow/util/makefile.mk (revision 73c960034b966433539ab2e36afa59458d9a71c4)
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=..
25
26PRJNAME=slideshow
27TARGET=slideshow
28ENABLE_EXCEPTIONS=TRUE
29
30# --- Settings -----------------------------------------------------------
31
32.INCLUDE :  settings.mk
33
34# --- Common ----------------------------------------------------------
35
36.IF "$(VERBOSE)"=="TRUE"
37CDEFS+=-DVERBOSE
38.ENDIF
39
40SHL1DLLPRE=
41LIB1TARGET=$(SLB)$/$(TARGET).lib
42LIB1FILES=\
43    $(SLB)$/transitions.lib \
44    $(SLB)$/activities.lib  \
45    $(SLB)$/animationnodes.lib  \
46    $(SLB)$/shapes.lib \
47    $(SLB)$/slide.lib \
48    $(SLB)$/engine.lib
49
50.IF "$(GUI)" == "OS2"
51SHL1TARGET=slidesho
52.ELSE
53SHL1TARGET=$(TARGET).uno
54.ENDIF
55
56SHL1STDLIBS= $(TOOLSLIB) \
57             $(CPPULIB) \
58             $(SALLIB) \
59             $(VCLLIB) \
60             $(COMPHELPERLIB) \
61             $(CPPUHELPERLIB) \
62             $(BASEGFXLIB) \
63             $(CANVASTOOLSLIB) \
64             $(CPPCANVASLIB) \
65             $(UNOTOOLSLIB) \
66             $(SVTOOLLIB) \
67             $(AVMEDIALIB)
68
69SHL1IMPLIB=i$(TARGET)
70SHL1LIBS=$(SLB)$/$(TARGET).lib
71SHL1DEF=$(MISC)$/$(SHL1TARGET).def
72
73SHL1VERSIONMAP=$(SOLARENV)/src/component.map
74
75DEF1NAME=$(SHL1TARGET)
76DEF1EXPORTFILE=exports.dxp
77
78# ==========================================================================
79
80.IF "$(GUI)" == "OS2"
81TARGET2=slshtest
82.ELSE
83TARGET2=slideshowtest
84.ENDIF
85LIB2TARGET=$(SLB)$/$(TARGET2).lib
86LIB2FILES=$(LIB1FILES)
87
88SHL2TARGET=$(TARGET2)$(DLLPOSTFIX)
89SHL2IMPLIB=i$(TARGET2)
90SHL2STDLIBS= $(SHL1STDLIBS)
91
92SHL2DEF=$(MISC)$/$(SHL2TARGET).def
93SHL2LIBS=$(SLB)$/$(TARGET2).lib
94
95DEF2NAME    =$(SHL2TARGET)
96DEF2LIBNAME = $(TARGET2)
97.IF "$(GUI)" == "OS2"
98DEF2DEPN    =$(MISC)$/slideshowtest.flt
99.ELSE
100DEF2DEPN    =$(MISC)$/$(SHL2TARGET).flt
101.ENDIF
102
103DEF2DES     =SlideShowTest
104
105# ==========================================================================
106
107.INCLUDE :  target.mk
108
109.IF "$(GUI)" == "OS2"
110$(MISC)$/slideshowtest.flt: makefile.mk \
111                            slideshowtest.flt
112    +$(TYPE) slideshowtest.flt > $@
113.ELSE
114$(MISC)$/$(SHL2TARGET).flt: makefile.mk \
115                            $(TARGET2).flt
116    +$(TYPE) $(TARGET2).flt > $@
117
118.ENDIF
119
120ALLTAR : $(MISC)/slideshow.component
121
122$(MISC)/slideshow.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
123        slideshow.component
124    $(XSLTPROC) --nonet --stringparam uri \
125        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
126        $(SOLARENV)/bin/createcomponent.xslt slideshow.component
127