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    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    avmediaMacAVF \
317    fps_aqua \
318    macab1 \
319    macbe1 \
320    MacOSXSpell
321.END
322
323.IF "$(OS)" == "WNT"
324my_components += \
325    ado \
326    dnd \
327    dtrans \
328    fop \
329    fps \
330    ftransl \
331    java_uno_accessbridge \
332    sysmail \
333    sysdtrans \
334    winaccessibility \
335    wininetbe1
336.END
337
338.IF "$(OS)" == "OS2"
339my_components += \
340    dtrans \
341    sysdtrans
342.END
343
344.IF "$(OS)" == "WNT" && "$(DISABLE_ATL)" == ""
345my_components += \
346    emser \
347    oleautobridge
348.END
349
350.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != ""
351my_components += \
352    avmediawin \
353    directx9canvas \
354    gdipluscanvas
355.END
356
357.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != ""
358my_components += directx5canvas
359.END
360
361.IF "$(OS)" == "LINUX" || "$(OS)" == "NETBSD" || \
362    ("$(OS)" == "SOLARIS" && "$(CPU)" == "S") || "$(OS)" == "WNT"
363my_components += adabas
364.END
365
366.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(OS)" != "OS2"
367my_components += desktopbe1
368.END
369
370.IF "$(GTK_TWO_FOUR)" != ""
371my_components += fps_gnome
372.END
373
374.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_KDE4)" != ""
375my_components += fps_kde4
376.END
377
378.IF "$(OS)" != "WNT"
379my_components += cmdmail
380.END
381
382.IF "$(OS)" != "WNT" && "$(ENABLE_EVOAB2)" != ""
383my_components += evoab
384.END
385
386.IF "$(OS)" != "WNT" && "$(ENABLE_GSTREAMER)" != ""
387my_components += avmediagst
388.END
389
390.IF "$(OS)" != "WNT" && "$(SOLAR_JAVA)" == "TRUE"
391my_components += avmedia.jar
392.END
393
394my_ooo_components = mailmerge
395
396.INCLUDE: target.mk
397
398ALLTAR : $(MISC)/services.rdb $(MISC)/ooo-services.rdb
399
400$(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \
401        $(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component")
402    $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \
403        $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input
404
405$(MISC)/services.input : makefile.mk
406    echo \
407        '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \
408        > $@
409
410$(MISC)/ooo-services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \
411        $(MISC)/ooo-services.input \
412        $(my_ooo_components:^"$(SOLARXMLDIR)/":+".component")
413    $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \
414        $(SOLARENV)/bin/packcomponents.xslt $(MISC)/ooo-services.input
415
416$(MISC)/ooo-services.input : makefile.mk
417    echo '<list>' \
418        '$(my_ooo_components:^"<filename>":+".component</filename>")' \
419        '</list>' > $@
420