xref: /trunk/main/scp2/util/makefile.mk (revision c2e8e388)
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
23PRJ=..
24
25PRJNAME=scp2
26TARGET=setup
27
28# --- Settings -----------------------------------------------------------
29
30.INCLUDE :  settings.mk
31
32# --- setup script -------------------------------------------------------
33# SCPFLAGS= -w
34
35# ------------------------------------------------------------------------
36# Office OSL
37
38SCP1LINK_PRODUCT_TYPE=osl
39SCP1TARGET = setup_osl
40SCP1FILES  = installation_ooo.par          \
41             scpaction_ooo.par             \
42             directory_ooo.par             \
43             datacarrier_ooo.par           \
44             file_ooo.par                  \
45             file_extra_ooo.par            \
46             file_font_ooo.par             \
47             file_library_ooo.par          \
48             file_resource_ooo.par         \
49             shortcut_ooo.par              \
50             module_ooo.par                \
51             module_hidden_ooo.par         \
52             module_langpack.par           \
53             module_lang_template.par      \
54             profile_ooo.par               \
55             profileitem_ooo.par           \
56             module_writer.par             \
57             file_writer.par               \
58             module_calc.par               \
59             file_calc.par                 \
60             module_draw.par               \
61             file_draw.par                 \
62             module_impress.par            \
63             file_impress.par              \
64             module_base.par               \
65             file_base.par                 \
66             canvascommons.par             \
67             module_math.par               \
68             file_math.par                 \
69             module_systemint.par          \
70             module_graphicfilter.par      \
71             file_graphicfilter.par        \
72             module_xsltfilter.par         \
73             file_xsltfilter.par           \
74             module_python.par             \
75             module_python_mailmerge.par   \
76             file_python.par               \
77             profileitem_python.par        \
78             ure_into_ooo.par              \
79             ure.par                       \
80             module_improvement.par        \
81             file_improvement.par          \
82             common_brand.par              \
83             common_brand_readme.par       \
84             ooo_brand.par
85
86.IF "$(OS)"=="MACOSX"
87SCP1FILES +=                               \
88             directory_ooo_macosx.par
89.ENDIF
90
91.IF "$(WITH_BINFILTER)" != "NO"
92SCP1FILES +=                               \
93             module_binfilter.par          \
94             registryitem_binfilter.par    \
95             file_binfilter.par
96.ENDIF
97
98.IF "$(ENABLE_OPENGL)" == "TRUE"
99SCP1FILES +=                               \
100             module_ogltrans.par
101.ENDIF
102
103.IF "$(SOLAR_JAVA)"!=""
104SCP1FILES +=                               \
105             module_javafilter.par         \
106             file_javafilter.par
107.ENDIF
108
109.IF "$(SOLAR_JAVA)"!=""
110.IF "$(GUI)"=="WNT"
111SCP1FILES +=                               \
112             registryitem_javafilter.par
113.ENDIF
114.ENDIF
115
116.IF "$(GUI)"=="WNT"
117SCP1FILES +=                           \
118             registryitem_ooo.par      \
119             folder_ooo.par            \
120             folderitem_ooo.par        \
121             windowscustomaction_ooo.par \
122             vc_redist.par             \
123             registryitem_writer.par   \
124             folderitem_writer.par     \
125             registryitem_calc.par     \
126             folderitem_calc.par       \
127             registryitem_draw.par     \
128             folderitem_draw.par       \
129             registryitem_impress.par  \
130             folderitem_impress.par    \
131             registryitem_base.par     \
132             folderitem_base.par       \
133             registryitem_math.par     \
134             folderitem_math.par       \
135             module_quickstart.par     \
136             file_quickstart.par       \
137             registryitem_quickstart.par \
138             module_winexplorerext.par \
139             file_winexplorerext.par   \
140             registryitem_winexplorerext.par
141
142.IF "$(ENABLE_DIRECTX)"!=""
143SCP1FILES += directxcanvas.par
144.ENDIF
145
146.IF "$(DISABLE_ACTIVEX)"==""
147SCP1FILES +=                           \
148             module_activex.par        \
149             file_activex.par
150.ENDIF
151.ENDIF
152
153.IF "$(GUI)"=="UNX"
154.IF "$(ENABLE_GCONF)"!="" || "$(ENABLE_GNOMEVFS)"!="" || "$(ENABLE_GIO)"!=""
155SCP1FILES += \
156             module_gnome.par   \
157             file_gnome.par
158.ENDIF
159
160.IF "$(ENABLE_KDE)" == "TRUE"
161SCP1FILES += \
162             module_kde.par     \
163             file_kde.par
164.ENDIF
165.ENDIF
166
167.IF "$(ENABLE_CRASHDUMP)" != ""
168SCP1FILES += \
169             file_crashrep.par
170.ENDIF
171
172SCP1FILES += \
173             vclcanvas.par
174
175.IF "$(ENABLE_CAIRO_CANVAS)" == "TRUE"
176SCP1FILES += cairocanvas.par
177.ENDIF
178
179.IF "$(ENABLE_LAYOUT)" == "TRUE"
180SCP1FILES += layout.par
181.ENDIF # ENABLE_LAYOUT == TRUE
182
183.IF "$(ENABLE_ONLINE_UPDATE)" != ""
184SCP1FILES += \
185             module_onlineupdate.par   \
186             file_onlineupdate.par
187.ENDIF
188
189# ------------------------------------------------------------------------
190# OpenOffice.org with JRE
191
192SCP2LINK_PRODUCT_TYPE=osl
193SCP2TARGET = setup_osljre
194SCP2FILES  = installation_ooo.par          \
195             scpaction_ooo.par             \
196             directory_ooo.par             \
197             datacarrier_ooo.par           \
198             file_ooo.par                  \
199             file_extra_ooo.par            \
200             file_font_ooo.par             \
201             file_library_ooo.par          \
202             file_resource_ooo.par         \
203             shortcut_ooo.par              \
204             module_ooo.par                \
205             module_hidden_ooo.par         \
206             module_langpack.par           \
207             module_lang_template.par      \
208             module_java.par               \
209             profile_ooo.par               \
210             profileitem_ooo.par           \
211             module_writer.par             \
212             file_writer.par               \
213             module_calc.par               \
214             file_calc.par                 \
215             module_draw.par               \
216             file_draw.par                 \
217             module_impress.par            \
218             file_impress.par              \
219             module_base.par               \
220             file_base.par                 \
221             canvascommons.par             \
222             module_math.par               \
223             file_math.par                 \
224             module_systemint.par          \
225             module_graphicfilter.par      \
226             file_graphicfilter.par        \
227             module_xsltfilter.par         \
228             file_xsltfilter.par           \
229             module_python.par             \
230             module_python_mailmerge.par   \
231             file_python.par               \
232             profileitem_python.par        \
233             ure_into_ooo.par              \
234             ure.par                       \
235             module_improvement.par        \
236             file_improvement.par          \
237             common_brand.par              \
238             common_brand_readme.par       \
239             ooo_brand.par
240
241.IF "$(OS)"=="MACOSX"
242SCP2FILES +=                               \
243             directory_ooo_macosx.par
244.ENDIF
245
246.IF "$(WITH_BINFILTER)" != "NO"
247SCP2FILES +=                               \
248             module_binfilter.par          \
249             registryitem_binfilter.par    \
250             file_binfilter.par
251.ENDIF
252
253.IF "$(SOLAR_JAVA)"!=""
254SCP2FILES +=                               \
255             module_javafilter.par         \
256             file_javafilter.par
257.ENDIF
258
259.IF "$(SOLAR_JAVA)"!=""
260.IF "$(GUI)"=="WNT"
261SCP2FILES +=                               \
262             registryitem_javafilter.par
263.ENDIF
264.ENDIF
265
266.IF "$(GUI)"=="WNT"
267SCP2FILES +=                           \
268             file_jre_ooo.par          \
269             registryitem_ooo.par      \
270             folder_ooo.par            \
271             folderitem_ooo.par        \
272             windowscustomaction_ooo.par \
273             vc_redist.par             \
274             registryitem_writer.par   \
275             folderitem_writer.par     \
276             registryitem_calc.par     \
277             folderitem_calc.par       \
278             registryitem_draw.par     \
279             folderitem_draw.par       \
280             registryitem_impress.par  \
281             folderitem_impress.par    \
282             registryitem_base.par     \
283             folderitem_base.par       \
284             registryitem_math.par     \
285             folderitem_math.par       \
286             module_quickstart.par     \
287             file_quickstart.par       \
288             registryitem_quickstart.par \
289             module_winexplorerext.par \
290             file_winexplorerext.par   \
291             registryitem_winexplorerext.par
292
293.IF "$(ENABLE_DIRECTX)"!=""
294SCP2FILES += directxcanvas.par
295.ENDIF
296
297.IF "$(DISABLE_ACTIVEX)"==""
298SCP2FILES +=                           \
299             module_activex.par        \
300             file_activex.par
301.ENDIF
302.ENDIF
303
304.IF "$(GUI)"=="UNX"
305.IF "$(ENABLE_GCONF)"!="" || "$(ENABLE_GNOMEVFS)"!="" || "$(ENABLE_GIO)"!=""
306SCP2FILES += \
307             module_gnome.par   \
308             file_gnome.par
309.ENDIF
310
311.IF "$(ENABLE_KDE)" == "TRUE"
312SCP2FILES += \
313             module_kde.par     \
314             file_kde.par
315.ENDIF
316.ENDIF
317
318.IF "$(ENABLE_CRASHDUMP)" != ""
319SCP2FILES += \
320             file_crashrep.par
321.ENDIF
322
323SCP2FILES += \
324             vclcanvas.par
325
326.IF "$(ENABLE_LAYOUT)" == "TRUE"
327SCP2FILES += layout.par
328.ENDIF # ENABLE_LAYOUT == TRUE
329
330.IF "$(ENABLE_ONLINE_UPDATE)"!=""
331SCP2FILES += \
332             module_onlineupdate.par   \
333             file_onlineupdate.par
334.ENDIF
335
336# ------------------------------------------------------------------------
337# URE
338
339.IF "$(OS)" != "MACOSX"
340SCP3LINK_PRODUCT_TYPE = osl
341SCP3TARGET = ure
342SCP3FILES = ure_standalone.par  \
343            ure.par
344.ENDIF
345
346# ------------------------------------------------------------------------
347# SDK
348
349SCP4LINK_PRODUCT_TYPE = osl
350SCP4TARGET = sdkoo
351SCP4FILES = sdkoo.par
352
353# --- target -------------------------------------------------------------
354.INCLUDE :  target.mk
355