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