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