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 = postprocess
26TARGET = packcomponents
27
28.INCLUDE: settings.mk
29
30#TODO (copied from scp2/source/ooo/makefile.mk):
31.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_GTK)" != ""
32PKGCONFIG_MODULES=gtk+-2.0
33.INCLUDE: pkg_config.mk
34GTK_TWO_FOUR=$(shell @+-$(PKG_CONFIG) --exists 'gtk+-2.0 >= 2.4.0' && echo YES)
35.END
36
37my_components = \
38    abp \
39    adabasui \
40    analysis \
41    animcore \
42    avmedia \
43    basctl \
44    basprov \
45    bib \
46    cached1 \
47    calc \
48    canvasfactory \
49    chartcontroller \
50    chartmodel \
51    charttools \
52    chartview \
53    component/comphelper/util/comphelp \
54    component/cui/util/cui \
55    component/drawinglayer/drawinglayer \
56    component/framework/util/fwk \
57    component/framework/util/fwl \
58    component/framework/util/fwm \
59    component/vbahelper/util/msforms \
60    component/sfx2/util/sfx \
61    component/sot/util/sot \
62    component/svgio/svgio \
63    component/svl/source/fsstor/fsstorage \
64    component/svl/source/passwordcontainer/passwordcontainer \
65    component/svl/util/svl \
66    component/svtools/source/hatchwindow/hatchwindowfactory \
67    component/svtools/util/svt \
68    component/svx/util/svx \
69    component/svx/util/svxcore \
70    component/svx/util/textconversiondlgs \
71    component/sw/util/msword \
72    component/sw/util/sw \
73    component/sw/util/swd \
74    component/sw/util/vbaswobj \
75    component/toolkit/util/tk \
76    component/unoxml/source/rdf/unordf \
77    component/unoxml/source/service/unoxml \
78    component/xmloff/source/transform/xof \
79    component/xmloff/util/xo \
80    configmgr \
81    ctl \
82    date \
83    dba \
84    dbase \
85    dbaxml \
86    dbmm \
87    dbp \
88    dbpool2 \
89    dbtools \
90    dbu \
91    deployment \
92    deploymentgui \
93    dlgprov \
94    embobj \
95    evtatt \
96    fastsax \
97    fileacc \
98    filterconfig1 \
99    flash \
100    flat \
101    for \
102    fpicker \
103    fps_office \
104    frm \
105    guesslang \
106    hwp \
107    i18npool \
108    i18nsearch \
109    lng \
110    lnth \
111    localebe1 \
112    log \
113    mcnttype \
114    migrationoo2 \
115    msfilter \
116    mysql \
117    odbc \
118    offacc \
119    oooimprovecore \
120    oox \
121    package2 \
122    pcr \
123    pdffilter \
124    placeware \
125    preload \
126    protocolhandler \
127    pythonloader \
128    pythonscript \
129    res \
130    rpt \
131    rptui \
132    rptxml \
133    sax \
134    sb \
135    sc \
136    scd \
137    scn \
138    scriptframe \
139    sd \
140    sdbc2 \
141    sdbt \
142    sdd \
143    simplecanvas \
144    slideshow \
145    sm \
146    smd \
147    spl \
148    srtrs1 \
149    stringresource \
150    svgfilter \
151    syssh \
152    t602filter \
153    tvhlp1 \
154    ucb1 \
155    ucpchelp1 \
156    ucpdav1 \
157    ucpexpand1 \
158    ucpext \
159    ucpfile1 \
160    ucpftp1 \
161    ucphier1 \
162    ucppkg1 \
163    ucptdoc1 \
164    updatefeed \
165    updchk \
166    updchk.uno \
167    utl \
168    uui \
169    vbaevents \
170    vbaobj \
171    vclcanvas \
172    writerfilter \
173    xcr \
174    xmlfa \
175    xmlfd \
176    xmx \
177    xsltdlg \
178    xstor
179
180.IF "$(OS)" == "MACOSX"
181my_components += component/vcl/vcl.macosx
182.ELSE
183.IF "$(OS)" == "WNT"
184my_components += component/vcl/vcl.windows
185.ELSE
186my_components += component/vcl/vcl.unx
187.ENDIF
188.ENDIF
189
190.IF "$(BUILD_SPECIAL)" != ""
191my_components += oooimprovement
192.END
193
194.IF "$(ENABLE_COINMP)"=="YES"
195my_components += solver
196.END
197
198.IF "$(DISABLE_SAXON)" == ""
199my_components += XSLTFilter.jar \
200    xsltfilter
201.END
202
203.IF "$(ENABLE_HYPHEN)" == "YES"
204my_components += hyphen
205.END
206
207.IF "$(ENABLE_HUNSPELL)" == "YES"
208my_components += spell
209.END
210
211.IF "$(SYSTEM_LIBWPD)" == "YES"
212my_components +=     wpft
213.END
214
215.IF "$(DISABLE_ATL)" == ""
216my_components += emboleobj
217.END
218
219.IF "$(ENABLE_CAIRO_CANVAS)" == "TRUE"
220my_components += cairocanvas
221.END
222
223.IF "$(ENABLE_GCONF)" != ""
224my_components += gconfbe1
225.END
226
227.IF "$(ENABLE_GIO)" != ""
228my_components += ucpgio
229.END
230
231.IF "$(ENABLE_GNOMEVFS)" != ""
232my_components += ucpgvfs
233.END
234
235.IF "$(ENABLE_KAB)" != ""
236my_components += kab1
237.END
238
239.IF "$(ENABLE_KDE)" != ""
240my_components += kdebe1
241.END
242
243.IF "$(ENABLE_KDE4)" != ""
244my_components += kde4be1
245.END
246
247.IF "$(ENABLE_OPENGL)" == "TRUE"
248my_components += ogltrans
249.END
250
251.IF "$(SOLAR_JAVA)" == "TRUE"
252my_components += \
253    LuceneHelpWrapper \
254    ScriptFramework \
255    ScriptProviderForJava \
256    XMergeBridge \
257    XSLTValidate \
258    agenda \
259    fax \
260    form \
261    hsqldb \
262    jdbc \
263    letter \
264    query \
265    report \
266    table \
267    web
268.IF "$(ENABLE_BEANSHELL)" == "YES"
269my_components += ScriptProviderForBeanShell
270.END
271.IF "$(ENABLE_JAVASCRIPT)" == "YES"
272my_components += ScriptProviderForJavaScript
273.END
274.END
275
276.IF "$(WITH_BINFILTER)" != "NO"
277my_components += \
278    bf_migratefilter \
279    bindet
280.END
281
282.IF "$(WITH_LDAP)" == "YES"
283my_components += ldapbe2
284.END
285
286.IF "$(WITH_MOZILLA)" != "NO"
287my_components += \
288    xmlsecurity \
289    xsec_fw \
290    xsec_xmlsec \
291    pl
292.END
293
294.IF "$(OS)" == "MACOSX"
295my_components += \
296    avmediaQuickTime \
297    fps_aqua \
298    macab1 \
299    macbe1 \
300    MacOSXSpell
301.END
302
303.IF "$(OS)" == "WNT"
304my_components += \
305    ado \
306    dnd \
307    dtrans \
308    fop \
309    fps \
310    ftransl \
311    java_uno_accessbridge \
312    smplmail \
313    sysdtrans \
314    wininetbe1
315.END
316
317.IF "$(OS)" == "WNT" && "$(DISABLE_ATL)" == ""
318my_components += \
319    emser \
320    oleautobridge
321.END
322
323.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != ""
324my_components += \
325    avmediawin \
326    directx9canvas \
327    gdipluscanvas
328.END
329
330.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != ""
331my_components += directx5canvas
332.END
333
334.IF "$(OS)" == "LINUX" || "$(OS)" == "NETBSD" || \
335    ("$(OS)" == "SOLARIS" && "$(CPU)" == "S") || "$(OS)" == "WNT"
336my_components += adabas
337.END
338
339.IF "$(OS)" != "MACOSX" && "$(SYSTEM_MOZILLA)" != "YES" && \
340    "$(WITH_MOZILLA)" != "NO"
341my_components += mozab
342.ELIF "$(OS)" == "OS2"
343.ELSE
344my_components += mozbootstrap
345.END
346
347.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(OS)" != "OS2"
348my_components += desktopbe1
349.END
350
351.IF "$(GTK_TWO_FOUR)" != ""
352my_components += fps_gnome
353.END
354
355.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_KDE4)" != ""
356my_components += fps_kde4
357.END
358
359.IF "$(OS)" != "WNT"
360my_components += cmdmail
361.END
362
363.IF "$(OS)" != "WNT" && "$(ENABLE_EVOAB2)" != ""
364my_components += evoab
365.END
366
367.IF "$(OS)" != "WNT" && "$(ENABLE_GSTREAMER)" != ""
368my_components += avmediagst
369.END
370
371.IF "$(OS)" != "WNT" && "$(SOLAR_JAVA)" == "TRUE"
372my_components += avmedia.jar
373.END
374
375my_ooo_components = mailmerge
376
377.INCLUDE: target.mk
378
379ALLTAR : $(MISC)/services.rdb $(MISC)/ooo-services.rdb
380
381$(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \
382        $(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component")
383    $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \
384        $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input
385
386$(MISC)/services.input : makefile.mk
387    echo \
388        '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \
389        > $@
390
391$(MISC)/ooo-services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \
392        $(MISC)/ooo-services.input \
393        $(my_ooo_components:^"$(SOLARXMLDIR)/":+".component")
394    $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \
395        $(SOLARENV)/bin/packcomponents.xslt $(MISC)/ooo-services.input
396
397$(MISC)/ooo-services.input : makefile.mk
398    echo '<list>' \
399        '$(my_ooo_components:^"<filename>":+".component</filename>")' \
400        '</list>' > $@
401