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    bootstrap \
39    introspection \
40    invocadapt \
41    invocation \
42    javaloader \
43    javavm \
44    juh \
45    namingservice \
46    proxyfac \
47    reflection \
48    stocservices \
49    uuresolver \
50    abp \
51    analysis \
52    avmedia \
53    basctl \
54    basprov \
55    bib \
56    cached1 \
57    calc \
58    chartcontroller \
59    chartmodel \
60    charttools \
61    chartview \
62    component/animations/source/animcore/animcore \
63    component/binaryurp/source/binaryurp \
64    component/canvas/source/factory/canvasfactory \
65    component/canvas/source/simplecanvas/simplecanvas \
66    component/canvas/source/vcl/vclcanvas \
67    component/comphelper/util/comphelp \
68    component/configmgr/source/configmgr \
69    component/cui/util/cui \
70    component/drawinglayer/drawinglayer \
71	component/dbaccess/source/ext/adabas/adabasui \
72	component/dbaccess/source/ext/macromigration/dbmm \
73	component/dbaccess/source/filter/xml/dbaxml \
74	component/dbaccess/util/dba \
75	component/dbaccess/util/dbu \
76	component/dbaccess/util/sdbt \
77    component/fileaccess/util/fileacc \
78    component/formula/util/for \
79    component/framework/util/fwk \
80    component/framework/util/fwl \
81    component/framework/util/fwm \
82    component/io/source/acceptor/acceptor \
83    component/io/source/connector/connector \
84    component/io/source/stm/streams \
85    component/io/source/TextInputStream/textinstream \
86    component/io/source/TextOutputStream/textoutstream \
87    component/linguistic/source/lng \
88    component/oox/util/oox \
89    component/package/source/xstor/xstor \
90    component/package/util/package2 \
91	component/reportdesign/util/rptxml \
92	component/reportdesign/util/rpt \
93	component/reportdesign/util/rptui \
94    component/vbahelper/util/msforms \
95    component/sax/source/expatwrap/expwrap \
96    component/sax/source/fastparser/fastsax \
97    component/sd/util/sd \
98    component/sd/util/sdd \
99    component/sfx2/util/sfx \
100    component/sot/util/sot \
101    component/svgio/svgio \
102    component/starmath/util/sm \
103    component/starmath/util/smd \
104    component/svl/source/fsstor/fsstorage \
105    component/svl/source/passwordcontainer/passwordcontainer \
106    component/svl/util/svl \
107    component/svtools/source/hatchwindow/hatchwindowfactory \
108    component/svtools/util/svt \
109    component/svx/util/svx \
110    component/svx/util/svxcore \
111    component/svx/util/textconversiondlgs \
112    component/sw/util/msword \
113    component/sw/util/sw \
114    component/sw/util/swd \
115    component/sw/util/vbaswobj \
116    component/unotools/util/utl \
117    component/toolkit/util/ootk \
118    component/unoxml/source/rdf/unordf \
119    component/unoxml/source/service/unoxml \
120    component/writerfilter/util/writerfilter \
121    component/xmloff/source/transform/xof \
122    component/xmloff/util/xo \
123    component/xmlscript/util/xcr \
124    ctl \
125    date \
126    dbase \
127    dbp \
128    dbpool2 \
129    dbtools \
130    deployment \
131    deploymentgui \
132    dlgprov \
133    embobj \
134    evtatt \
135    filterconfig1 \
136    flash \
137    flat \
138    fpicker \
139    fps_office \
140    frm \
141    guesslang \
142    i18npool \
143    i18nsearch \
144    lnth \
145    localebe1 \
146    log \
147	mailmerge \
148    mcnttype \
149    migrationoo2 \
150    msfilter \
151    mysql \
152    odbc \
153    offacc \
154    oooimprovecore \
155    pcr \
156    pdffilter \
157    placeware \
158    preload \
159    protocolhandler \
160    pythonloader \
161    pythonscript \
162    res \
163    sb \
164    sc \
165    scd \
166    scn \
167    scriptframe \
168    sdbc2 \
169    slideshow \
170    spl \
171    srtrs1 \
172    stringresource \
173    svgfilter \
174    syssh \
175    t602filter \
176    tvhlp1 \
177    ucb1 \
178    ucpchelp1 \
179    ucpdav1 \
180    ucpexpand1 \
181    ucpext \
182    ucpfile1 \
183    ucpftp1 \
184    ucphier1 \
185    ucppkg1 \
186    ucptdoc1 \
187    updatefeed \
188    updchk \
189    uui \
190    vbaevents \
191    vbaobj \
192    xmlfa \
193    xmlfd \
194    xmx \
195    xsltdlg \
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 += component/canvas/source/cairo/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    component/wizards/com/sun/star/wizards/agenda/agenda \
286    component/wizards/com/sun/star/wizards/fax/fax \
287    component/wizards/com/sun/star/wizards/form/form \
288    hsqldb \
289    jdbc \
290    component/wizards/com/sun/star/wizards/letter/letter \
291    component/wizards/com/sun/star/wizards/query/query \
292    component/wizards/com/sun/star/wizards/report/report \
293    component/wizards/com/sun/star/wizards/table/table \
294    component/wizards/com/sun/star/wizards/web/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    component/canvas/source/directx/directx9canvas \
355    component/canvas/source/directx/gdipluscanvas
356.END
357
358.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != ""
359my_components += component/canvas/source/directx/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