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