1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 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. 14# 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). 20# 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. 25# 26#***********************************************************************/ 27 28PRJ = .. 29PRJNAME = postprocess 30TARGET = packcomponents 31 32.INCLUDE: settings.mk 33 34#TODO (copied from scp2/source/ooo/makefile.mk): 35.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_GTK)" != "" 36PKGCONFIG_MODULES=gtk+-2.0 37.INCLUDE: pkg_config.mk 38GTK_TWO_FOUR=$(shell @+-$(PKG_CONFIG) --exists 'gtk+-2.0 >= 2.4.0' && echo YES) 39.END 40 41my_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 i18npool \ 110 i18nsearch \ 111 lng \ 112 localebe1 \ 113 log \ 114 mcnttype \ 115 migrationoo2 \ 116 msfilter \ 117 mysql \ 118 odbc \ 119 offacc \ 120 oooimprovecore \ 121 oox \ 122 package2 \ 123 pcr \ 124 pdffilter \ 125 placeware \ 126 preload \ 127 protocolhandler \ 128 pythonloader \ 129 pythonscript \ 130 res \ 131 rpt \ 132 rptui \ 133 rptxml \ 134 sax \ 135 sb \ 136 sc \ 137 scd \ 138 scn \ 139 scriptframe \ 140 sd \ 141 sdbc2 \ 142 sdbt \ 143 sdd \ 144 simplecanvas \ 145 slideshow \ 146 sm \ 147 smd \ 148 solver \ 149 spl \ 150 srtrs1 \ 151 stringresource \ 152 svgfilter \ 153 syssh \ 154 t602filter \ 155 tvhlp1 \ 156 ucb1 \ 157 ucpchelp1 \ 158 ucpexpand1 \ 159 ucpext \ 160 ucpfile1 \ 161 ucpftp1 \ 162 ucphier1 \ 163 ucppkg1 \ 164 ucptdoc1 \ 165 updatefeed \ 166 updchk \ 167 updchk.uno \ 168 utl \ 169 uui \ 170 vbaevents \ 171 vbaobj \ 172 vclcanvas \ 173 writerfilter \ 174 xcr \ 175 xmlfa \ 176 xmlfd \ 177 xmx \ 178 xsltdlg \ 179 xstor 180 181.IF "$(OS)" == "MACOSX" 182my_components += component/vcl/vcl.macosx 183.ELSE 184.IF "$(OS)" == "WNT" 185my_components += component/vcl/vcl.windows 186.ELSE 187my_components += component/vcl/vcl.unx 188.ENDIF 189.ENDIF 190 191.IF "$(BUILD_SPECIAL)" != "" 192my_components += oooimprovement 193.END 194 195.IF "$(DISABLE_SAXON)" == "" 196my_components += XSLTFilter.jar \ 197 xsltfilter 198.END 199 200.IF "$(DISABLE_HYPHEN)" == "" 201my_components += hyphen 202.END 203 204.IF "$(DISABLE_HUNSPELL)" == "" 205my_components += \ 206 lnth \ 207 spell 208.END 209 210.IF "$(DISABLE_LIBWPD)" == "" 211my_components += wpft 212.END 213 214.IF "$(DISABLE_ATL)" == "" 215my_components += emboleobj 216.END 217 218.IF "$(DISABLE_NEON)" != "TRUE" 219my_components += ucpdav1 220.END 221 222.IF "$(ENABLE_CAIRO)" == "TRUE" 223my_components += cairocanvas 224.END 225 226.IF "$(ENABLE_GCONF)" != "" 227my_components += gconfbe1 228.END 229 230.IF "$(ENABLE_GIO)" != "" 231my_components += ucpgio 232.END 233 234.IF "$(ENABLE_GNOMEVFS)" != "" 235my_components += ucpgvfs 236.END 237 238.IF "$(ENABLE_KAB)" != "" 239my_components += kab1 240.END 241 242.IF "$(ENABLE_KDE)" != "" 243my_components += kdebe1 244.END 245 246.IF "$(ENABLE_KDE4)" != "" 247my_components += kde4be1 248.END 249 250.IF "$(ENABLE_OGL)" == "TRUE" 251my_components += ogltrans 252.END 253 254.IF "$(ENABLE_SVCTAGS)" == "YES" 255my_components += productregistration.jar 256.END 257 258.IF "$(SOLAR_JAVA)" == "TRUE" 259my_components += \ 260 LuceneHelpWrapper \ 261 ScriptFramework \ 262 ScriptProviderForBeanShell \ 263 ScriptProviderForJava \ 264 ScriptProviderForJavaScript \ 265 XMergeBridge \ 266 XSLTValidate \ 267 agenda \ 268 fax \ 269 form \ 270 hsqldb \ 271 jdbc \ 272 letter \ 273 query \ 274 report \ 275 table \ 276 web 277.END 278 279.IF "$(WITH_BINFILTER)" != "NO" 280my_components += \ 281 bf_migratefilter \ 282 bindet 283.END 284 285.IF "$(WITH_LDAP)" == "YES" 286my_components += ldapbe2 287.END 288 289.IF "$(WITH_MOZILLA)" != "NO" 290my_components += \ 291 xmlsecurity \ 292 xsec_fw \ 293 xsec_xmlsec \ 294 pl 295.END 296 297.IF "$(OS)" == "MACOSX" 298my_components += \ 299 MacOSXSpell \ 300 avmediaQuickTime \ 301 fps_aqua \ 302 macab1 \ 303 macbe1 304.END 305 306.IF "$(OS)" == "WNT" 307my_components += \ 308 ado \ 309 dnd \ 310 dtrans \ 311 fop \ 312 fps \ 313 ftransl \ 314 java_uno_accessbridge \ 315 smplmail \ 316 sysdtrans \ 317 wininetbe1 318.END 319 320.IF "$(OS)" == "WNT" && "$(DISABLE_ATL)" == "" 321my_components += \ 322 emser \ 323 oleautobridge 324.END 325 326.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" 327my_components += \ 328 avmediawin \ 329 directx9canvas \ 330 gdipluscanvas 331.END 332 333.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != "" 334my_components += directx5canvas 335.END 336 337.IF "$(OS)" == "LINUX" || "$(OS)" == "NETBSD" || \ 338 ("$(OS)" == "SOLARIS" && "$(CPU)" == "S") || "$(OS)" == "WNT" 339my_components += adabas 340.END 341 342.IF "$(OS)" != "MACOSX" && "$(SYSTEM_MOZILLA)" != "YES" && \ 343 "$(WITH_MOZILLA)" != "NO" 344my_components += mozab 345.ELSE 346my_components += mozbootstrap 347.END 348 349.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" 350my_components += desktopbe1 351.END 352 353.IF "$(GTK_TWO_FOUR)" != "" 354my_components += fps_gnome 355.END 356 357.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_KDE4)" != "" 358my_components += fps_kde4 359.END 360 361.IF "$(OS)" != "WNT" 362my_components += cmdmail 363.END 364 365.IF "$(OS)" != "WNT" && "$(ENABLE_EVOAB2)" != "" 366my_components += evoab 367.END 368 369.IF "$(OS)" != "WNT" && "$(ENABLE_GSTREAMER)" != "" 370my_components += avmediagst 371.END 372 373.IF "$(OS)" != "WNT" && "$(SOLAR_JAVA)" == "TRUE" 374my_components += avmedia.jar 375.END 376 377my_ooo_components = mailmerge 378 379.INCLUDE: target.mk 380 381ALLTAR : $(MISC)/services.rdb $(MISC)/ooo-services.rdb 382 383$(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 384 $(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component") 385 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 386 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input 387 388$(MISC)/services.input : makefile.mk 389 echo \ 390 '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \ 391 > $@ 392 393$(MISC)/ooo-services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 394 $(MISC)/ooo-services.input \ 395 $(my_ooo_components:^"$(SOLARXMLDIR)/":+".component") 396 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 397 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/ooo-services.input 398 399$(MISC)/ooo-services.input : makefile.mk 400 echo '<list>' \ 401 '$(my_ooo_components:^"<filename>":+".component</filename>")' \ 402 '</list>' > $@ 403