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