xref: /AOO41X/main/reportdesign/util/makefile.mk (revision 685bfa88af9aabf5dee74c9118df3709da85caa9)
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=reportdesign
26TARGET=rpt
27TARGET2=$(TARGET)ui
28# USE_DEFFILE=TRUE
29GEN_HID=TRUE
30GEN_HID_OTHER=TRUE
31
32# --- Settings ----------------------------------
33.INCLUDE :  settings.mk
34
35.IF "$(L10N_framework)"==""
36
37# ------------------------------------------------------------------
38# --- reportdesign core (rpt) -----------------------------------
39
40LIB1TARGET=$(SLB)$/$(TARGET).lib
41LIB1FILES=\
42        $(SLB)$/api.lib             \
43        $(SLB)$/coreshared.lib      \
44        $(SLB)$/core_resource.lib   \
45        $(SLB)$/core_sdr.lib        \
46        $(SLB)$/core_misc.lib
47
48SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
49
50SHL1STDLIBS= \
51    $(EDITENGLIB)           \
52        $(SVXCORELIB)           \
53        $(SVXLIB)               \
54        $(FWELIB)               \
55        $(SFXLIB)               \
56        $(TOOLSLIB)             \
57        $(I18NISOLANGLIB) \
58        $(SVLLIB)               \
59        $(SVTOOLLIB)            \
60        $(UNOTOOLSLIB)          \
61        $(DBTOOLSLIB)           \
62        $(COMPHELPERLIB)        \
63        $(CPPUHELPERLIB)        \
64        $(CPPULIB)              \
65        $(VCLLIB)               \
66        $(TKLIB)                \
67        $(VOSLIB)               \
68        $(SALLIB)
69
70.IF "$(GUI)"!="WNT" || "$(COM)"=="GCC" || "$(GUI)"=="OS2"
71SHL1STDLIBS+= \
72        -ldbu$(DLLPOSTFIX)
73.ELSE
74SHL1STDLIBS+= \
75        idbu.lib
76.ENDIF
77
78SHL1IMPLIB=i$(TARGET)
79SHL1USE_EXPORTS=name
80SHL1LIBS=$(LIB1TARGET)
81SHL1DEF=$(MISC)$/$(SHL1TARGET).def
82
83DEF1NAME=$(SHL1TARGET)
84DEFLIB1NAME=$(TARGET)
85.ENDIF
86# --- .res file ----------------------------------------------------------
87
88RES1FILELIST=\
89    $(SRS)$/core_strings.srs
90
91RESLIB1NAME=$(TARGET)
92RESLIB1IMAGES=$(PRJ)$/res
93RESLIB1SRSFILES=$(RES1FILELIST)
94
95.IF "$(L10N_framework)"==""
96# --- reportdesign UI core (rptui) -----------------------------------
97LIB2TARGET=$(SLB)$/$(TARGET2).lib
98LIB2FILES=\
99        $(SLB)$/uimisc.lib          \
100        $(SLB)$/uidlg.lib           \
101        $(SLB)$/uishared.lib        \
102        $(SLB)$/ui_inspection.lib   \
103        $(SLB)$/report.lib
104
105SHL2TARGET=$(TARGET2)$(DLLPOSTFIX)
106
107SHL2STDLIBS= \
108    $(EDITENGLIB)           \
109        $(SVXCORELIB)           \
110        $(SVXLIB)               \
111        $(SFXLIB)               \
112        $(SVTOOLLIB)            \
113        $(TKLIB)                \
114        $(VCLLIB)               \
115        $(SVLLIB)               \
116        $(SOTLIB)               \
117        $(UNOTOOLSLIB)          \
118        $(TOOLSLIB)             \
119        $(DBTOOLSLIB)           \
120        $(COMPHELPERLIB)        \
121        $(CPPUHELPERLIB)        \
122        $(CPPULIB)              \
123        $(FWELIB)               \
124        $(SO2LIB)               \
125        $(I18NISOLANGLIB)       \
126        $(SALLIB)
127.IF "$(GUI)"!="WNT" || "$(COM)"=="GCC" || "$(GUI)"=="OS2"
128SHL2STDLIBS+= \
129        -ldbu$(DLLPOSTFIX) \
130        -l$(TARGET)$(DLLPOSTFIX)
131.ELSE
132SHL2STDLIBS+= \
133        idbu.lib                \
134        i$(TARGET).lib
135.ENDIF
136
137.IF "$(GUI)"!="WNT" || "$(COM)"=="GCC" || "$(GUI)"=="OS2"
138SHL2STDLIBS+= \
139        -lfor$(DLLPOSTFIX) \
140        -lforui$(DLLPOSTFIX)
141.ELSE
142SHL2STDLIBS+= \
143        ifor.lib \
144        iforui.lib
145.ENDIF
146
147
148SHL2DEPN=$(SHL1TARGETN)
149SHL2LIBS=$(LIB2TARGET)
150SHL2DEF=$(MISC)$/$(SHL2TARGET).def
151DEF2NAME=$(SHL2TARGET)
152SHL2VERSIONMAP=$(SOLARENV)/src/component.map
153.ENDIF
154# --- .res file ----------------------------------------------------------
155RES2FILELIST=\
156    $(SRS)$/uidlg.srs               \
157    $(SRS)$/ui_inspection.srs       \
158    $(SRS)$/report.srs
159
160RESLIB2NAME=$(TARGET2)
161RESLIB2IMAGES=$(PRJ)$/res
162RESLIB2SRSFILES=$(RES2FILELIST)
163.IF "$(L10N_framework)"==""
164
165# ------------------- rptxml -------------------
166TARGET3=rptxml
167# --- Library -----------------------------------
168LIB3TARGET=$(SLB)$/rpt_flt.lib
169LIB3FILES=\
170        $(SLB)$/xmlshared.lib   \
171        $(SLB)$/$(TARGET3).lib
172
173SHL3TARGET=$(TARGET3)$(DLLPOSTFIX)
174
175SHL3STDLIBS=\
176    $(EDITENGLIB)           \
177    $(SVXCORELIB)           \
178    $(XMLOFFLIB)        \
179    $(VCLLIB)           \
180    $(UNOTOOLSLIB)      \
181    $(TOOLSLIB)         \
182    $(DBTOOLSLIB)       \
183    $(COMPHELPERLIB)    \
184    $(CPPUHELPERLIB)    \
185    $(CPPULIB)          \
186    $(UCBHELPERLIB)     \
187    $(SFXLIB)           \
188    $(SVLLIB)           \
189    $(SOTLIB)           \
190    $(SO2LIB)           \
191    $(SALLIB)
192.IF "$(GUI)"!="WNT" || "$(COM)"=="GCC" || "$(GUI)"=="OS2"
193SHL3STDLIBS+= \
194        -l$(TARGET)$(DLLPOSTFIX)
195.ELSE
196SHL3STDLIBS+= \
197    irpt.lib
198.ENDIF
199
200
201SHL3DEPN=$(SHL1TARGETN)
202SHL3LIBS=$(LIB3TARGET)
203SHL3IMPLIB= i$(SHL3TARGET)
204SHL3VERSIONMAP=$(SOLARENV)/src/component.map
205SHL3DEF=    $(MISC)$/$(SHL3TARGET).def
206
207DEF3NAME=$(SHL3TARGET)
208
209.ENDIF
210
211# --- Targets ----------------------------------
212
213.INCLUDE : target.mk
214
215
216
217ALLTAR : $(MISC)/rpt.component $(MISC)/rptui.component $(MISC)/rptxml.component
218
219$(MISC)/rpt.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
220        rpt.component
221    $(XSLTPROC) --nonet --stringparam uri \
222        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
223        $(SOLARENV)/bin/createcomponent.xslt rpt.component
224
225$(MISC)/rptui.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
226        rptui.component
227    $(XSLTPROC) --nonet --stringparam uri \
228        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
229        $(SOLARENV)/bin/createcomponent.xslt rptui.component
230
231$(MISC)/rptxml.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
232        rptxml.component
233    $(XSLTPROC) --nonet --stringparam uri \
234        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL3TARGETN:f)' -o $@ \
235        $(SOLARENV)/bin/createcomponent.xslt rptxml.component
236