CWS gnumake3: fix component location for msforms; change library name for msforms...
[LibreOffice.git] / postprocess / packcomponents / makefile.mk
blob75204c6c15c387c2db374eac107f7625df0718d7
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 comphelp4 \
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/xmloff/source/transform/xof \
79 component/xmloff/util/xo \
80 configmgr \
81 ctl \
82 date \
83 dba \
84 dbacfg \
85 dbase \
86 dbaxml \
87 dbmm \
88 dbp \
89 dbpool2 \
90 dbtools \
91 dbu \
92 deployment \
93 deploymentgui \
94 dlgprov \
95 embobj \
96 evtatt \
97 fastsax \
98 fileacc \
99 filterconfig1 \
100 flash \
101 flat \
102 for \
103 fpicker \
104 fps_office \
105 frm \
106 guesslang \
107 hwp \
108 hyphen \
109 i18npool \
110 i18nsearch \
111 lng \
112 lnth \
113 localebe1 \
114 log \
115 mcnttype \
116 migrationoo2 \
117 msfilter \
118 mysql \
119 odbc \
120 offacc \
121 oooimprovecore \
122 oox \
123 package2 \
124 pcr \
125 pdffilter \
126 placeware \
127 preload \
128 protocolhandler \
129 pythonloader \
130 pythonscript \
131 res \
132 rpt \
133 rptui \
134 rptxml \
135 sax \
136 sb \
137 sc \
138 scd \
139 scn \
140 scriptframe \
141 sd \
142 sdbc2 \
143 sdbt \
144 sdd \
145 simplecanvas \
146 slideshow \
147 sm \
148 smd \
149 solver \
150 spell \
151 spl \
152 srtrs1 \
153 stringresource \
154 svgfilter \
155 syssh \
156 t602filter \
157 tvhlp1 \
158 ucb1 \
159 ucpchelp1 \
160 ucpexpand1 \
161 ucpext \
162 ucpfile1 \
163 ucpftp1 \
164 ucphier1 \
165 ucppkg1 \
166 ucptdoc1 \
167 unordf \
168 unoxml \
169 updatefeed \
170 updchk \
171 updchk.uno \
172 utl \
173 uui \
174 vbaobj \
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 "$(ENABLE_VBA)" == "YES"
236 my_components += vbaevents
237 .END
239 .IF "$(SOLAR_JAVA)" == "TRUE"
240 my_components += \
241 LuceneHelpWrapper \
242 ScriptFramework \
243 ScriptProviderForBeanShell \
244 ScriptProviderForJava \
245 ScriptProviderForJavaScript \
246 XMergeBridge \
247 XSLTFilter.jar \
248 XSLTValidate \
249 agenda \
250 fax \
251 form \
252 hsqldb \
253 jdbc \
254 letter \
255 query \
256 report \
257 table \
259 .END
261 .IF "$(WITH_BINFILTER)" != "NO"
262 my_components += \
263 bf_migratefilter \
264 bindet
265 .END
267 .IF "$(WITH_LDAP)" == "YES"
268 my_components += ldapbe2
269 .END
271 .IF "$(WITH_MOZILLA)" != "NO"
272 my_components += \
273 xmlsecurity \
274 xsec_fw \
275 xsec_xmlsec \
277 .END
279 .IF "$(OS)" == "MACOSX"
280 my_components += \
281 MacOSXSpell \
282 avmediaQuickTime \
283 fps_aqua \
284 macab1 \
285 macbe1
286 .END
288 .IF "$(OS)" == "WNT"
289 my_components += \
290 ado \
291 dnd \
292 dtrans \
293 fop \
294 fps \
295 ftransl \
296 java_uno_accessbridge \
297 smplmail \
298 sysdtrans \
299 wininetbe1
300 .END
302 .IF "$(OS)" == "WNT" && "$(DISABLE_ATL)" == ""
303 my_components += \
304 emser \
305 oleautobridge
306 .END
308 .IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != ""
309 my_components += \
310 avmediawin \
311 directx9canvas \
312 gdipluscanvas
313 .END
315 .IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != ""
316 my_components += directx5canvas
317 .END
319 .IF "$(OS)" == "LINUX" || "$(OS)" == "NETBSD" || \
320 ("$(OS)" == "SOLARIS" && "$(CPU)" == "S") || "$(OS)" == "WNT"
321 my_components += adabas
322 .END
324 .IF "$(OS)" != "MACOSX" && "$(SYSTEM_MOZILLA)" != "YES" && \
325 "$(WITH_MOZILLA)" != "NO"
326 my_components += mozab
327 .ELSE
328 my_components += mozbootstrap
329 .END
331 .IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT"
332 my_components += desktopbe1
333 .END
335 .IF "$(GTK_TWO_FOUR)" != ""
336 my_components += fps_gnome
337 .END
339 .IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_KDE4)" != ""
340 my_components += fps_kde4
341 .END
343 .IF "$(OS)" != "WNT"
344 my_components += cmdmail
345 .END
347 .IF "$(OS)" != "WNT" && "$(ENABLE_EVOAB2)" != ""
348 my_components += evoab
349 .END
351 .IF "$(OS)" != "WNT" && "$(ENABLE_GSTREAMER)" != ""
352 my_components += avmediagst
353 .END
355 .IF "$(OS)" != "WNT" && "$(SOLAR_JAVA)" == "TRUE"
356 my_components += avmedia.jar
357 .END
359 my_ooo_components = mailmerge
361 .INCLUDE: target.mk
363 ALLTAR : $(MISC)/services.rdb $(MISC)/ooo-services.rdb
365 $(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \
366 $(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component")
367 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \
368 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input
370 $(MISC)/services.input : makefile.mk
371 echo \
372 '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \
373 > $@
375 $(MISC)/ooo-services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \
376 $(MISC)/ooo-services.input \
377 $(my_ooo_components:^"$(SOLARXMLDIR)/":+".component")
378 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \
379 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/ooo-services.input
381 $(MISC)/ooo-services.input : makefile.mk
382 echo '<list>' \
383 '$(my_ooo_components:^"<filename>":+".component</filename>")' \
384 '</list>' > $@