CWS-TOOLING: integrate CWS xmlfix3
[LibreOffice.git] / postprocess / packcomponents / makefile.mk
blob236d372eb1c05d9f187690e9e1b685d754fac9f3
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #***********************************************************************/
28 PRJ = ..
29 PRJNAME = postprocess
30 TARGET = packcomponents
32 .INCLUDE: settings.mk
34 #TODO (copied from scp2/source/ooo/makefile.mk):
35 .IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_GTK)" != ""
36 PKGCONFIG_MODULES=gtk+-2.0
37 .INCLUDE: pkg_config.mk
38 GTK_TWO_FOUR=$(shell @+-$(PKG_CONFIG) --exists 'gtk+-2.0 >= 2.4.0' && echo YES)
39 .END
41 my_components = \
42 abp \
43 adabasui \
44 analysis \
45 animcore \
46 avmedia \
47 basctl \
48 basprov \
49 bib \
50 cached1 \
51 calc \
52 canvasfactory \
53 chartcontroller \
54 chartmodel \
55 charttools \
56 chartview \
57 component/comphelper/util/comphelp \
58 component/framework/util/fwk \
59 component/framework/util/fwl \
60 component/framework/util/fwm \
61 component/vbahelper/util/msforms \
62 component/sfx2/util/sfx \
63 component/sot/util/sot \
64 component/svl/source/fsstor/fsstorage \
65 component/svl/source/passwordcontainer/passwordcontainer \
66 component/svl/util/svl \
67 component/svtools/source/hatchwindow/hatchwindowfactory \
68 component/svtools/source/productregistration/productregistration.uno \
69 component/svtools/util/svt \
70 component/svx/util/svx \
71 component/svx/util/svxcore \
72 component/svx/util/textconversiondlgs \
73 component/sw/util/msword \
74 component/sw/util/sw \
75 component/sw/util/swd \
76 component/sw/util/vbaswobj \
77 component/toolkit/util/tk \
78 component/unoxml/source/rdf/unordf \
79 component/unoxml/source/service/unoxml \
80 component/xmloff/source/transform/xof \
81 component/xmloff/util/xo \
82 configmgr \
83 ctl \
84 date \
85 dba \
86 dbase \
87 dbaxml \
88 dbmm \
89 dbp \
90 dbpool2 \
91 dbtools \
92 dbu \
93 deployment \
94 deploymentgui \
95 dlgprov \
96 embobj \
97 evtatt \
98 fastsax \
99 fileacc \
100 filterconfig1 \
101 flash \
102 flat \
103 for \
104 fpicker \
105 fps_office \
106 frm \
107 guesslang \
108 hwp \
109 hyphen \
110 i18npool \
111 i18nsearch \
112 lng \
113 lnth \
114 localebe1 \
115 log \
116 mcnttype \
117 migrationoo2 \
118 msfilter \
119 mysql \
120 odbc \
121 offacc \
122 oooimprovecore \
123 oox \
124 package2 \
125 pcr \
126 pdffilter \
127 placeware \
128 preload \
129 protocolhandler \
130 pythonloader \
131 pythonscript \
132 res \
133 rpt \
134 rptui \
135 rptxml \
136 sax \
137 sb \
138 sc \
139 scd \
140 scn \
141 scriptframe \
142 sd \
143 sdbc2 \
144 sdbt \
145 sdd \
146 simplecanvas \
147 slideshow \
148 sm \
149 smd \
150 solver \
151 spell \
152 spl \
153 srtrs1 \
154 stringresource \
155 svgfilter \
156 syssh \
157 t602filter \
158 tvhlp1 \
159 ucb1 \
160 ucpchelp1 \
161 ucpexpand1 \
162 ucpext \
163 ucpfile1 \
164 ucpftp1 \
165 ucphier1 \
166 ucppkg1 \
167 ucptdoc1 \
168 updatefeed \
169 updchk \
170 updchk.uno \
171 utl \
172 uui \
173 vbaobj \
174 vbaevents \
175 vcl \
176 vclcanvas \
177 wpft \
178 writerfilter \
179 xcr \
180 xmlfa \
181 xmlfd \
182 xmx \
183 xsltdlg \
184 xsltfilter \
185 xstor
187 .IF "$(BUILD_SPECIAL)" != ""
188 my_components += oooimprovement
189 .END
191 .IF "$(DISABLE_ATL)" == ""
192 my_components += emboleobj
193 .END
195 .IF "$(DISABLE_NEON)" != "TRUE"
196 my_components += ucpdav1
197 .END
199 .IF "$(ENABLE_CAIRO)" == "TRUE"
200 my_components += cairocanvas
201 .END
203 .IF "$(ENABLE_GCONF)" != ""
204 my_components += gconfbe1
205 .END
207 .IF "$(ENABLE_GIO)" != ""
208 my_components += ucpgio
209 .END
211 .IF "$(ENABLE_GNOMEVFS)" != ""
212 my_components += ucpgvfs
213 .END
215 .IF "$(ENABLE_KAB)" != ""
216 my_components += kab1
217 .END
219 .IF "$(ENABLE_KDE)" != ""
220 my_components += kdebe1
221 .END
223 .IF "$(ENABLE_KDE4)" != ""
224 my_components += kde4be1
225 .END
227 .IF "$(ENABLE_OGL)" == "TRUE"
228 my_components += ogltrans
229 .END
231 .IF "$(ENABLE_SVCTAGS)" == "YES"
232 my_components += productregistration.jar
233 .END
235 .IF "$(SOLAR_JAVA)" == "TRUE"
236 my_components += \
237 LuceneHelpWrapper \
238 ScriptFramework \
239 ScriptProviderForBeanShell \
240 ScriptProviderForJava \
241 ScriptProviderForJavaScript \
242 XMergeBridge \
243 XSLTFilter.jar \
244 XSLTValidate \
245 agenda \
246 fax \
247 form \
248 hsqldb \
249 jdbc \
250 letter \
251 query \
252 report \
253 table \
255 .END
257 .IF "$(WITH_BINFILTER)" != "NO"
258 my_components += \
259 bf_migratefilter \
260 bindet
261 .END
263 .IF "$(WITH_LDAP)" == "YES"
264 my_components += ldapbe2
265 .END
267 .IF "$(WITH_MOZILLA)" != "NO"
268 my_components += \
269 xmlsecurity \
270 xsec_fw \
271 xsec_xmlsec \
273 .END
275 .IF "$(OS)" == "MACOSX"
276 my_components += \
277 MacOSXSpell \
278 avmediaQuickTime \
279 fps_aqua \
280 macab1 \
281 macbe1
282 .END
284 .IF "$(OS)" == "WNT"
285 my_components += \
286 ado \
287 dnd \
288 dtrans \
289 fop \
290 fps \
291 ftransl \
292 java_uno_accessbridge \
293 smplmail \
294 sysdtrans \
295 wininetbe1
296 .END
298 .IF "$(OS)" == "WNT" && "$(DISABLE_ATL)" == ""
299 my_components += \
300 emser \
301 oleautobridge
302 .END
304 .IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != ""
305 my_components += \
306 avmediawin \
307 directx9canvas \
308 gdipluscanvas
309 .END
311 .IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != ""
312 my_components += directx5canvas
313 .END
315 .IF "$(OS)" == "LINUX" || "$(OS)" == "NETBSD" || \
316 ("$(OS)" == "SOLARIS" && "$(CPU)" == "S") || "$(OS)" == "WNT"
317 my_components += adabas
318 .END
320 .IF "$(OS)" != "MACOSX" && "$(SYSTEM_MOZILLA)" != "YES" && \
321 "$(WITH_MOZILLA)" != "NO"
322 my_components += mozab
323 .ELSE
324 my_components += mozbootstrap
325 .END
327 .IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT"
328 my_components += desktopbe1
329 .END
331 .IF "$(GTK_TWO_FOUR)" != ""
332 my_components += fps_gnome
333 .END
335 .IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_KDE4)" != ""
336 my_components += fps_kde4
337 .END
339 .IF "$(OS)" != "WNT"
340 my_components += cmdmail
341 .END
343 .IF "$(OS)" != "WNT" && "$(ENABLE_EVOAB2)" != ""
344 my_components += evoab
345 .END
347 .IF "$(OS)" != "WNT" && "$(ENABLE_GSTREAMER)" != ""
348 my_components += avmediagst
349 .END
351 .IF "$(OS)" != "WNT" && "$(SOLAR_JAVA)" == "TRUE"
352 my_components += avmedia.jar
353 .END
355 my_ooo_components = mailmerge
357 .INCLUDE: target.mk
359 ALLTAR : $(MISC)/services.rdb $(MISC)/ooo-services.rdb
361 $(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \
362 $(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component")
363 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \
364 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input
366 $(MISC)/services.input : makefile.mk
367 echo \
368 '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \
369 > $@
371 $(MISC)/ooo-services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \
372 $(MISC)/ooo-services.input \
373 $(my_ooo_components:^"$(SOLARXMLDIR)/":+".component")
374 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \
375 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/ooo-services.input
377 $(MISC)/ooo-services.input : makefile.mk
378 echo '<list>' \
379 '$(my_ooo_components:^"<filename>":+".component</filename>")' \
380 '</list>' > $@