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/binaryurp/source/binaryurp \
61    component/canvas/source/factory/canvasfactory \
62    component/canvas/source/simplecanvas/simplecanvas \
63    component/canvas/source/vcl/vclcanvas \
64    component/comphelper/util/comphelp \
65    component/configmgr/source/configmgr \
66    component/cui/util/cui \
67    component/drawinglayer/drawinglayer \
68	component/dbaccess/source/ext/adabas/adabasui \
69	component/dbaccess/source/ext/macromigration/dbmm \
70	component/dbaccess/source/filter/xml/dbaxml \
71	component/dbaccess/util/dba \
72	component/dbaccess/util/dbu \
73	component/dbaccess/util/sdbt \
74    component/dtrans/util/mcnttype \
75    component/embeddedobj/util/embobj \
76    component/eventattacher/source/evtatt \
77    component/fileaccess/util/fileacc \
78    component/formula/util/for \
79    component/fpicker/source/generic/fpicker \
80    component/fpicker/source/office/fps_office \
81    component/framework/util/fwk \
82    component/framework/util/fwl \
83    component/framework/util/fwm \
84    component/io/source/acceptor/acceptor \
85    component/io/source/connector/connector \
86    component/io/source/stm/streams \
87    component/io/source/TextInputStream/textinstream \
88    component/io/source/TextOutputStream/textoutstream \
89    component/javaunohelper/util/juh \
90    component/lingucomponent/source/languageguessing/guesslang \
91    component/lingucomponent/source/thesaurus/libnth/lnth \
92    component/linguistic/source/lng \
93    component/oox/util/oox \
94    component/package/source/xstor/xstor \
95    component/package/util/package2 \
96	component/reportdesign/util/rptxml \
97	component/reportdesign/util/rpt \
98	component/reportdesign/util/rptui \
99    component/vbahelper/util/msforms \
100    component/remotebridges/source/unourl_resolver/uuresolver \
101    component/sax/source/expatwrap/expwrap \
102    component/sax/source/fastparser/fastsax \
103    component/sc/util/sc \
104    component/sc/util/scd \
105    component/sc/util/vbaobj \
106    component/scaddins/source/analysis/analysis \
107    component/scaddins/source/datefunc/date \
108    component/sd/util/sd \
109    component/sd/util/sdd \
110    component/sfx2/util/sfx \
111    component/slideshow/util/slideshow \
112    component/sot/util/sot \
113    component/svgio/svgio \
114    component/starmath/util/sm \
115    component/starmath/util/smd \
116    component/svl/source/fsstor/fsstorage \
117    component/svl/source/passwordcontainer/passwordcontainer \
118    component/svl/util/svl \
119    component/svtools/source/hatchwindow/hatchwindowfactory \
120    component/svtools/util/svt \
121    component/svx/util/svx \
122    component/svx/util/svxcore \
123    component/svx/util/textconversiondlgs \
124    component/sw/util/msword \
125    component/sw/util/sw \
126    component/sw/util/swd \
127    component/sw/util/vbaswobj \
128    component/unotools/util/utl \
129    component/uui/util/uui \
130    component/toolkit/util/ootk \
131    component/ucb/source/cacher/cached1 \
132    component/ucb/source/core/ucb1 \
133    component/ucb/source/sorter/srtrs1 \
134    component/ucb/source/ucp/expand/ucpexpand1 \
135    component/ucb/source/ucp/ext/ucpext \
136    component/ucb/source/ucp/file/ucpfile1 \
137    component/ucb/source/ucp/ftp/ucpftp1 \
138    component/ucb/source/ucp/hierarchy/ucphier1 \
139    component/ucb/source/ucp/package/ucppkg1 \
140    component/ucb/source/ucp/tdoc/ucptdoc1 \
141    component/ucb/source/ucp/webdav/ucpdav1 \
142    component/unoxml/source/rdf/unordf \
143    component/unoxml/source/service/unoxml \
144    component/writerfilter/util/writerfilter \
145    component/xmlhelp/source/treeview/tvhlp1 \
146    component/xmlhelp/util/ucpchelp1 \
147    component/xmloff/source/transform/xof \
148    component/xmloff/util/xo \
149    component/xmlscript/util/xcr \
150    date \
151    dbase \
152    dbp \
153    dbpool2 \
154    dbtools \
155    deployment \
156    deploymentgui \
157    dlgprov \
158    filterconfig1 \
159    flash \
160    flat \
161    frm \
162    i18npool \
163    i18nsearch \
164    localebe1 \
165    log \
166	mailmerge \
167    migrationoo2 \
168    msfilter \
169    mysql \
170    odbc \
171    offacc \
172    oooimprovecore \
173    pcr \
174    pdffilter \
175    placeware \
176    preload \
177    protocolhandler \
178    pythonloader \
179    pythonscript \
180    res \
181    sb \
182    scn \
183    scriptframe \
184    sdbc2 \
185    spl \
186    stringresource \
187    svgfilter \
188    syssh \
189    t602filter \
190    updatefeed \
191    updchk \
192    vbaevents \
193    xmlfa \
194    xmlfd \
195    xmx \
196    xsltdlg \
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 += component/sccomp/source/solver/solver
224.END
225
226.IF "$(DISABLE_SAXON)" == ""
227my_components += XSLTFilter.jar \
228    xsltfilter
229.END
230
231.IF "$(ENABLE_HYPHEN)" == "YES"
232my_components += component/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphen
233.END
234
235.IF "$(ENABLE_HUNSPELL)" == "YES"
236my_components += component/lingucomponent/source/spellcheck/spell/spell
237.END
238
239.IF "$(SYSTEM_LIBWPD)" == "YES"
240my_components +=     wpft
241.END
242
243.IF "$(OS)" == "WNT"
244my_components += component/embeddedobj/source/msole/emboleobj.windows
245.ELSE
246my_components += component/embeddedobj/source/msole/emboleobj
247.END
248
249.IF "$(ENABLE_CAIRO_CANVAS)" == "TRUE"
250my_components += component/canvas/source/cairo/cairocanvas
251.END
252
253.IF "$(ENABLE_GCONF)" != ""
254my_components += gconfbe1
255.END
256
257.IF "$(ENABLE_GIO)" != ""
258my_components += component/ucb/source/ucp/gio/ucpgio
259.END
260
261.IF "$(ENABLE_GNOMEVFS)" != ""
262my_components += component/ucb/source/ucp/gvfs/ucpgvfs
263.END
264
265.IF "$(ENABLE_KDE)" != ""
266my_components += kdebe1
267.END
268
269.IF "$(ENABLE_KDE4)" != ""
270my_components += kde4be1
271.END
272
273.IF "$(ENABLE_OPENGL)" == "TRUE"
274my_components += component/slideshow/source/engine/OGLTrans/ogltrans
275.END
276
277.IF "$(SOLAR_JAVA)" == "TRUE"
278my_components += \
279    component/xmlhelp/java/LuceneHelpWrapper/LuceneHelpWrapper \
280    ScriptFramework \
281    ScriptProviderForJava \
282    XMergeBridge \
283    XSLTValidate \
284    component/wizards/com/sun/star/wizards/agenda/agenda \
285    component/wizards/com/sun/star/wizards/fax/fax \
286    component/wizards/com/sun/star/wizards/form/form \
287    hsqldb \
288    jdbc \
289    postgresql \
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    component/avmedia/source/macavf/avmediaMacAVF \
317    component/avmedia/source/quicktime/avmediaQuickTime \
318    component/fpicker/source/aqua/fps_aqua \
319    component/lingucomponent/source/spellcheck/macosxspell/MacOSXSpell \
320    macab1 \
321    macbe1
322.END
323
324.IF "$(OS)" == "WNT"
325my_components += \
326    ado \
327    component/avmedia/source/win/avmediawin \
328    component/dtrans/source/generic/dtrans \
329    component/dtrans/util/dnd \
330    component/dtrans/util/ftransl \
331    component/dtrans/util/sysdtrans \
332    component/fpicker/util/fop \
333    component/fpicker/util/fps \
334    java_uno_accessbridge \
335    sysmail \
336    winaccessibility \
337    wininetbe1
338.END
339
340.IF "$(OS)" == "OS2"
341my_components += \
342    component/dtrans/source/generic/dtrans \
343    component/dtrans/util/dnd \
344    component/dtrans/util/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    component/canvas/source/directx/directx9canvas \
356    component/canvas/source/directx/gdipluscanvas
357.END
358
359.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != ""
360my_components += component/canvas/source/directx/directx5canvas
361.END
362
363.IF "$(OS)" == "LINUX" || "$(OS)" == "NETBSD" || \
364    ("$(OS)" == "SOLARIS" && "$(CPU)" == "S") || "$(OS)" == "WNT"
365my_components += adabas
366.END
367
368.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(OS)" != "OS2"
369my_components += desktopbe1
370.END
371
372.IF "$(GTK_TWO_FOUR)" != ""
373my_components += component/fpicker/source/unx/gnome/fps_gnome
374.END
375
376.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_KDE4)" != ""
377my_components += component/fpicker/source/unx/kde4/fps_kde4
378.END
379
380.IF "$(OS)" != "WNT"
381my_components += cmdmail
382.END
383
384.IF "$(OS)" != "WNT" && "$(ENABLE_EVOAB2)" != ""
385my_components += evoab
386.END
387
388.IF "$(OS)" != "WNT" && "$(ENABLE_GSTREAMER)" != ""
389my_components += component/avmedia/source/gstreamer/avmediagst
390.END
391
392.IF "$(OS)" != "WNT" && "$(SOLAR_JAVA)" == "TRUE"
393my_components += component/avmedia/source/java/avmedia.jar
394.END
395
396my_ooo_components = mailmerge
397
398.INCLUDE: target.mk
399
400ALLTAR : $(MISC)/services.rdb $(MISC)/ooo-services.rdb
401
402$(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \
403        $(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component")
404    $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \
405        $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input
406
407$(MISC)/services.input : makefile.mk
408    echo \
409        '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \
410        > $@
411
412$(MISC)/ooo-services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \
413        $(MISC)/ooo-services.input \
414        $(my_ooo_components:^"$(SOLARXMLDIR)/":+".component")
415    $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \
416        $(SOLARENV)/bin/packcomponents.xslt $(MISC)/ooo-services.input
417
418$(MISC)/ooo-services.input : makefile.mk
419    echo '<list>' \
420        '$(my_ooo_components:^"<filename>":+".component</filename>")' \
421        '</list>' > $@
422