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 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 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 "$(ENABLE_HYPHEN)" == "YES" 201my_components += hyphen 202.END 203 204.IF "$(ENABLE_HUNSPELL)" == "YES" 205my_components += spell 206.END 207 208.IF "$(SYSTEM_LIBWPD)" == "YES" 209my_components += wpft 210.END 211 212.IF "$(DISABLE_ATL)" == "" 213my_components += emboleobj 214.END 215 216.IF "$(SYSTEM_NEON)" == "YES" 217my_components += ucpdav1 218.END 219 220.IF "$(ENABLE_CAIRO_CANVAS)" == "TRUE" 221my_components += cairocanvas 222.END 223 224.IF "$(ENABLE_GCONF)" != "" 225my_components += gconfbe1 226.END 227 228.IF "$(ENABLE_GIO)" != "" 229my_components += ucpgio 230.END 231 232.IF "$(ENABLE_GNOMEVFS)" != "" 233my_components += ucpgvfs 234.END 235 236.IF "$(ENABLE_KAB)" != "" 237my_components += kab1 238.END 239 240.IF "$(ENABLE_KDE)" != "" 241my_components += kdebe1 242.END 243 244.IF "$(ENABLE_KDE4)" != "" 245my_components += kde4be1 246.END 247 248.IF "$(ENABLE_OPENGL)" == "TRUE" 249my_components += ogltrans 250.END 251 252.IF "$(ENABLE_SVCTAGS)" == "YES" 253my_components += productregistration.jar 254.END 255 256.IF "$(SOLAR_JAVA)" == "TRUE" 257my_components += \ 258 LuceneHelpWrapper \ 259 ScriptFramework \ 260 ScriptProviderForBeanShell \ 261 ScriptProviderForJava \ 262 ScriptProviderForJavaScript \ 263 XMergeBridge \ 264 XSLTValidate \ 265 agenda \ 266 fax \ 267 form \ 268 hsqldb \ 269 jdbc \ 270 letter \ 271 query \ 272 report \ 273 table \ 274 web 275.END 276 277.IF "$(WITH_BINFILTER)" != "NO" 278my_components += \ 279 bf_migratefilter \ 280 bindet 281.END 282 283.IF "$(WITH_LDAP)" == "YES" 284my_components += ldapbe2 285.END 286 287.IF "$(WITH_MOZILLA)" != "NO" 288my_components += \ 289 xmlsecurity \ 290 xsec_fw \ 291 xsec_xmlsec \ 292 pl 293.END 294 295.IF "$(OS)" == "MACOSX" 296my_components += \ 297 avmediaQuickTime \ 298 fps_aqua \ 299 macab1 \ 300 macbe1 \ 301 MacOSXSpell 302.END 303 304.IF "$(OS)" == "WNT" 305my_components += \ 306 ado \ 307 dnd \ 308 dtrans \ 309 fop \ 310 fps \ 311 ftransl \ 312 java_uno_accessbridge \ 313 smplmail \ 314 sysdtrans \ 315 wininetbe1 316.END 317 318.IF "$(OS)" == "WNT" && "$(DISABLE_ATL)" == "" 319my_components += \ 320 emser \ 321 oleautobridge 322.END 323 324.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" 325my_components += \ 326 avmediawin \ 327 directx9canvas \ 328 gdipluscanvas 329.END 330 331.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != "" 332my_components += directx5canvas 333.END 334 335.IF "$(OS)" == "LINUX" || "$(OS)" == "NETBSD" || \ 336 ("$(OS)" == "SOLARIS" && "$(CPU)" == "S") || "$(OS)" == "WNT" 337my_components += adabas 338.END 339 340.IF "$(OS)" != "MACOSX" && "$(SYSTEM_MOZILLA)" != "YES" && \ 341 "$(WITH_MOZILLA)" != "NO" 342my_components += mozab 343.ELSE 344my_components += mozbootstrap 345.END 346 347.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" 348my_components += desktopbe1 349.END 350 351.IF "$(GTK_TWO_FOUR)" != "" 352my_components += fps_gnome 353.END 354 355.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_KDE4)" != "" 356my_components += fps_kde4 357.END 358 359.IF "$(OS)" != "WNT" 360my_components += cmdmail 361.END 362 363.IF "$(OS)" != "WNT" && "$(ENABLE_EVOAB2)" != "" 364my_components += evoab 365.END 366 367.IF "$(OS)" != "WNT" && "$(ENABLE_GSTREAMER)" != "" 368my_components += avmediagst 369.END 370 371.IF "$(OS)" != "WNT" && "$(SOLAR_JAVA)" == "TRUE" 372my_components += avmedia.jar 373.END 374 375my_ooo_components = mailmerge 376 377.INCLUDE: target.mk 378 379ALLTAR : $(MISC)/services.rdb $(MISC)/ooo-services.rdb 380 381$(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 382 $(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component") 383 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 384 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input 385 386$(MISC)/services.input : makefile.mk 387 echo \ 388 '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \ 389 > $@ 390 391$(MISC)/ooo-services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 392 $(MISC)/ooo-services.input \ 393 $(my_ooo_components:^"$(SOLARXMLDIR)/":+".component") 394 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 395 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/ooo-services.input 396 397$(MISC)/ooo-services.input : makefile.mk 398 echo '<list>' \ 399 '$(my_ooo_components:^"<filename>":+".component</filename>")' \ 400 '</list>' > $@ 401