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    namingservice \
45    proxyfac \
46    reflection \
47    stocservices \
48    abp \
49    basprov \
50    bib \
51    calc \
52    chartcontroller \
53    chartmodel \
54    charttools \
55    chartview \
56    component/UnoControls/util/ctl \
57    component/animations/source/animcore/animcore \
58    component/avmedia/util/avmedia \
59    component/basctl/util/basctl \
60    component/basic/util/sb \
61    component/binaryurp/source/binaryurp \
62    component/canvas/source/factory/canvasfactory \
63    component/canvas/source/simplecanvas/simplecanvas \
64    component/canvas/source/vcl/vclcanvas \
65    component/comphelper/util/comphelp \
66    component/configmgr/source/configmgr \
67    component/cui/util/cui \
68    component/drawinglayer/drawinglayer \
69	component/dbaccess/source/ext/adabas/adabasui \
70	component/dbaccess/source/ext/macromigration/dbmm \
71	component/dbaccess/source/filter/xml/dbaxml \
72	component/dbaccess/util/dba \
73	component/dbaccess/util/dbu \
74	component/dbaccess/util/sdbt \
75    component/dtrans/util/mcnttype \
76    component/embeddedobj/util/embobj \
77    component/eventattacher/source/evtatt \
78    component/fileaccess/util/fileacc \
79    component/formula/util/for \
80    component/fpicker/source/generic/fpicker \
81    component/fpicker/source/office/fps_office \
82    component/framework/util/fwk \
83    component/framework/util/fwl \
84    component/framework/util/fwm \
85    component/i18npool/util/i18npool \
86    component/i18npool/source/search/i18nsearch \
87    component/io/source/acceptor/acceptor \
88    component/io/source/connector/connector \
89    component/io/source/stm/streams \
90    component/io/source/TextInputStream/textinstream \
91    component/io/source/TextOutputStream/textoutstream \
92    component/javaunohelper/util/juh \
93    component/lingucomponent/source/languageguessing/guesslang \
94    component/lingucomponent/source/thesaurus/libnth/lnth \
95    component/linguistic/source/lng \
96    component/oox/util/oox \
97    component/package/source/xstor/xstor \
98    component/package/util/package2 \
99    component/pyuno/source/loader/pythonloader \
100	component/reportdesign/util/rptxml \
101	component/reportdesign/util/rpt \
102	component/reportdesign/util/rptui \
103    component/vbahelper/util/msforms \
104    component/remotebridges/source/unourl_resolver/uuresolver \
105    component/sax/source/expatwrap/expwrap \
106    component/sax/source/fastparser/fastsax \
107    component/sc/util/sc \
108    component/sc/util/scd \
109    component/sc/util/vbaobj \
110    component/scaddins/source/analysis/analysis \
111    component/scaddins/source/datefunc/date \
112    component/sd/util/sd \
113    component/sd/util/sdd \
114    component/sfx2/util/sfx \
115    component/slideshow/util/slideshow \
116    component/sot/util/sot \
117    component/svgio/svgio \
118    component/starmath/util/sm \
119    component/starmath/util/smd \
120    component/svl/source/fsstor/fsstorage \
121    component/svl/source/passwordcontainer/passwordcontainer \
122    component/svl/util/svl \
123    component/svtools/source/hatchwindow/hatchwindowfactory \
124    component/svtools/util/svt \
125    component/svx/util/svx \
126    component/svx/util/svxcore \
127    component/svx/util/textconversiondlgs \
128    component/sw/util/msword \
129    component/sw/util/sw \
130    component/sw/util/swd \
131    component/sw/util/vbaswobj \
132    component/unotools/util/utl \
133    component/uui/util/uui \
134    component/toolkit/util/ootk \
135    component/ucb/source/cacher/cached1 \
136    component/ucb/source/core/ucb1 \
137    component/ucb/source/sorter/srtrs1 \
138    component/ucb/source/ucp/expand/ucpexpand1 \
139    component/ucb/source/ucp/ext/ucpext \
140    component/ucb/source/ucp/file/ucpfile1 \
141    component/ucb/source/ucp/ftp/ucpftp1 \
142    component/ucb/source/ucp/hierarchy/ucphier1 \
143    component/ucb/source/ucp/package/ucppkg1 \
144    component/ucb/source/ucp/tdoc/ucptdoc1 \
145    component/ucb/source/ucp/webdav/ucpdav1 \
146    component/unoxml/source/rdf/unordf \
147    component/unoxml/source/service/unoxml \
148    component/writerfilter/util/writerfilter \
149    component/xmlhelp/source/treeview/tvhlp1 \
150    component/xmlhelp/util/ucpchelp1 \
151    component/xmloff/source/transform/xof \
152    component/xmloff/util/xo \
153    component/xmlscript/util/xcr \
154    dbase \
155    dbp \
156    dbpool2 \
157    dbtools \
158    deployment \
159    deploymentgui \
160    dlgprov \
161    filterconfig1 \
162    flash \
163    flat \
164    frm \
165    localebe1 \
166    log \
167	mailmerge \
168    migrationoo2 \
169    msfilter \
170    mysql \
171    odbc \
172    offacc \
173    oooimprovecore \
174    pcr \
175    pdffilter \
176    placeware \
177    preload \
178    protocolhandler \
179    pythonscript \
180    res \
181    scn \
182    scriptframe \
183    sdbc2 \
184    spl \
185    stringresource \
186    svgfilter \
187    syssh \
188    t602filter \
189    updatefeed \
190    updchk \
191    vbaevents \
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 += component/sccomp/source/solver/solver
223.END
224
225.IF "$(DISABLE_SAXON)" == ""
226my_components += XSLTFilter.jar \
227    xsltfilter
228.END
229
230.IF "$(ENABLE_HYPHEN)" == "YES"
231my_components += component/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphen
232.END
233
234.IF "$(ENABLE_HUNSPELL)" == "YES"
235my_components += component/lingucomponent/source/spellcheck/spell/spell
236.END
237
238.IF "$(SYSTEM_LIBWPD)" == "YES"
239my_components +=     wpft
240.END
241
242.IF "$(OS)" == "WNT"
243my_components += component/embeddedobj/source/msole/emboleobj.windows
244.ELSE
245my_components += component/embeddedobj/source/msole/emboleobj
246.END
247
248.IF "$(ENABLE_CAIRO_CANVAS)" == "TRUE"
249my_components += component/canvas/source/cairo/cairocanvas
250.END
251
252.IF "$(ENABLE_GCONF)" != ""
253my_components += gconfbe1
254.END
255
256.IF "$(ENABLE_GIO)" != ""
257my_components += component/ucb/source/ucp/gio/ucpgio
258.END
259
260.IF "$(ENABLE_GNOMEVFS)" != ""
261my_components += component/ucb/source/ucp/gvfs/ucpgvfs
262.END
263
264.IF "$(ENABLE_KDE)" != ""
265my_components += kdebe1
266.END
267
268.IF "$(ENABLE_KDE4)" != ""
269my_components += kde4be1
270.END
271
272.IF "$(ENABLE_OPENGL)" == "TRUE"
273my_components += component/slideshow/source/engine/OGLTrans/ogltrans
274.END
275
276.IF "$(SOLAR_JAVA)" == "TRUE"
277my_components += \
278    component/xmlhelp/java/LuceneHelpWrapper/LuceneHelpWrapper \
279    ScriptFramework \
280    ScriptProviderForJava \
281    component/xmerge/java/XMergeBridge/XMergeBridge \
282    XSLTValidate \
283    component/wizards/com/sun/star/wizards/agenda/agenda \
284    component/wizards/com/sun/star/wizards/fax/fax \
285    component/wizards/com/sun/star/wizards/form/form \
286    hsqldb \
287    jdbc \
288    postgresql \
289    component/wizards/com/sun/star/wizards/letter/letter \
290    component/wizards/com/sun/star/wizards/query/query \
291    component/wizards/com/sun/star/wizards/report/report \
292    component/wizards/com/sun/star/wizards/table/table \
293    component/wizards/com/sun/star/wizards/web/web
294.IF "$(ENABLE_BEANSHELL)" == "YES"
295my_components += ScriptProviderForBeanShell
296.END
297.IF "$(ENABLE_JAVASCRIPT)" == "YES"
298my_components += ScriptProviderForJavaScript
299.END
300.END
301
302.IF "$(WITH_LDAP)" == "YES"
303my_components += ldapbe2
304.END
305
306.IF "$(ENABLE_NSS_MODULE)" != "NO"
307my_components += \
308    xmlsecurity \
309    xsec_fw \
310    xsec_xmlsec
311.END
312
313.IF "$(OS)" == "MACOSX"
314my_components += \
315    component/avmedia/source/macavf/avmediaMacAVF \
316    component/fpicker/source/aqua/fps_aqua \
317    component/lingucomponent/source/spellcheck/macosxspell/MacOSXSpell \
318    macab1 \
319    macbe1
320.END
321
322.IF "$(OS)" == "WNT"
323my_components += \
324    ado \
325    component/accessibility/java/java_uno_accessbridge/java_uno_accessbridge \
326    component/avmedia/source/win/avmediawin \
327    component/dtrans/source/generic/dtrans \
328    component/dtrans/util/dnd \
329    component/dtrans/util/ftransl \
330    component/dtrans/util/sysdtrans \
331    component/fpicker/util/fop \
332    component/fpicker/util/fps \
333    sysmail \
334    winaccessibility \
335    wininetbe1
336.END
337
338.IF "$(OS)" == "OS2"
339my_components += \
340    component/dtrans/source/generic/dtrans \
341    component/dtrans/util/dnd \
342    component/dtrans/util/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    component/canvas/source/directx/directx9canvas \
354    component/canvas/source/directx/gdipluscanvas
355.END
356
357.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != ""
358my_components += component/canvas/source/directx/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 += component/fpicker/source/unx/gnome/fps_gnome
372.END
373
374.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_KDE4)" != ""
375my_components += component/fpicker/source/unx/kde4/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 += component/avmedia/source/gstreamer/avmediagst
388.END
389
390.IF "$(OS)" != "WNT" && "$(SOLAR_JAVA)" == "TRUE"
391my_components += component/avmedia/source/java/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