xmlfix3: merge to-be-m100 DEV300_next
[LibreOffice.git] / postprocess / packcomponents / makefile.mk
blob57ff61c0628b3b7ed35aa7a92baaec35e6306a4c
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 vcl \
175 vclcanvas \
176 wpft \
177 writerfilter \
178 xcr \
179 xmlfa \
180 xmlfd \
181 xmx \
182 xsltdlg \
183 xsltfilter \
184 xstor
186 .IF "$(BUILD_SPECIAL)" != ""
187 my_components += oooimprovement
188 .END
190 .IF "$(DISABLE_ATL)" == ""
191 my_components += emboleobj
192 .END
194 .IF "$(DISABLE_NEON)" != "TRUE"
195 my_components += ucpdav1
196 .END
198 .IF "$(ENABLE_CAIRO)" == "TRUE"
199 my_components += cairocanvas
200 .END
202 .IF "$(ENABLE_GCONF)" != ""
203 my_components += gconfbe1
204 .END
206 .IF "$(ENABLE_GIO)" != ""
207 my_components += ucpgio
208 .END
210 .IF "$(ENABLE_GNOMEVFS)" != ""
211 my_components += ucpgvfs
212 .END
214 .IF "$(ENABLE_KAB)" != ""
215 my_components += kab1
216 .END
218 .IF "$(ENABLE_KDE)" != ""
219 my_components += kdebe1
220 .END
222 .IF "$(ENABLE_KDE4)" != ""
223 my_components += kde4be1
224 .END
226 .IF "$(ENABLE_OGL)" == "TRUE"
227 my_components += ogltrans
228 .END
230 .IF "$(ENABLE_SVCTAGS)" == "YES"
231 my_components += productregistration.jar
232 .END
234 .IF "$(ENABLE_VBA)" == "YES"
235 my_components += vbaevents
236 .END
238 .IF "$(SOLAR_JAVA)" == "TRUE"
239 my_components += \
240 LuceneHelpWrapper \
241 ScriptFramework \
242 ScriptProviderForBeanShell \
243 ScriptProviderForJava \
244 ScriptProviderForJavaScript \
245 XMergeBridge \
246 XSLTFilter.jar \
247 XSLTValidate \
248 agenda \
249 fax \
250 form \
251 hsqldb \
252 jdbc \
253 letter \
254 query \
255 report \
256 table \
258 .END
260 .IF "$(WITH_BINFILTER)" != "NO"
261 my_components += \
262 bf_migratefilter \
263 bindet
264 .END
266 .IF "$(WITH_LDAP)" == "YES"
267 my_components += ldapbe2
268 .END
270 .IF "$(WITH_MOZILLA)" != "NO"
271 my_components += \
272 xmlsecurity \
273 xsec_fw \
274 xsec_xmlsec \
276 .END
278 .IF "$(OS)" == "MACOSX"
279 my_components += \
280 MacOSXSpell \
281 avmediaQuickTime \
282 fps_aqua \
283 macab1 \
284 macbe1
285 .END
287 .IF "$(OS)" == "WNT"
288 my_components += \
289 ado \
290 dnd \
291 dtrans \
292 fop \
293 fps \
294 ftransl \
295 java_uno_accessbridge \
296 smplmail \
297 sysdtrans \
298 wininetbe1
299 .END
301 .IF "$(OS)" == "WNT" && "$(DISABLE_ATL)" == ""
302 my_components += \
303 emser \
304 oleautobridge
305 .END
307 .IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != ""
308 my_components += \
309 avmediawin \
310 directx9canvas \
311 gdipluscanvas
312 .END
314 .IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != ""
315 my_components += directx5canvas
316 .END
318 .IF "$(OS)" == "LINUX" || "$(OS)" == "NETBSD" || \
319 ("$(OS)" == "SOLARIS" && "$(CPU)" == "S") || "$(OS)" == "WNT"
320 my_components += adabas
321 .END
323 .IF "$(OS)" != "MACOSX" && "$(SYSTEM_MOZILLA)" != "YES" && \
324 "$(WITH_MOZILLA)" != "NO"
325 my_components += mozab
326 .ELSE
327 my_components += mozbootstrap
328 .END
330 .IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT"
331 my_components += desktopbe1
332 .END
334 .IF "$(GTK_TWO_FOUR)" != ""
335 my_components += fps_gnome
336 .END
338 .IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_KDE4)" != ""
339 my_components += fps_kde4
340 .END
342 .IF "$(OS)" != "WNT"
343 my_components += cmdmail
344 .END
346 .IF "$(OS)" != "WNT" && "$(ENABLE_EVOAB2)" != ""
347 my_components += evoab
348 .END
350 .IF "$(OS)" != "WNT" && "$(ENABLE_GSTREAMER)" != ""
351 my_components += avmediagst
352 .END
354 .IF "$(OS)" != "WNT" && "$(SOLAR_JAVA)" == "TRUE"
355 my_components += avmedia.jar
356 .END
358 my_ooo_components = mailmerge
360 .INCLUDE: target.mk
362 ALLTAR : $(MISC)/services.rdb $(MISC)/ooo-services.rdb
364 $(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \
365 $(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component")
366 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \
367 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input
369 $(MISC)/services.input : makefile.mk
370 echo \
371 '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \
372 > $@
374 $(MISC)/ooo-services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \
375 $(MISC)/ooo-services.input \
376 $(my_ooo_components:^"$(SOLARXMLDIR)/":+".component")
377 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \
378 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/ooo-services.input
380 $(MISC)/ooo-services.input : makefile.mk
381 echo '<list>' \
382 '$(my_ooo_components:^"<filename>":+".component</filename>")' \
383 '</list>' > $@