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 ScriptProviderForJava \ 261 XMergeBridge \ 262 XSLTValidate \ 263 agenda \ 264 fax \ 265 form \ 266 hsqldb \ 267 jdbc \ 268 letter \ 269 query \ 270 report \ 271 table \ 272 web 273.IF "$(ENABLE_BEANSHELL)" == "YES" 274my_components += ScriptProviderForBeanShell 275.END 276.IF "$(ENABLE_JAVASCRIPT)" == "YES" 277my_components += ScriptProviderForJavaScript 278.END 279.END 280 281.IF "$(WITH_BINFILTER)" != "NO" 282my_components += \ 283 bf_migratefilter \ 284 bindet 285.END 286 287.IF "$(WITH_LDAP)" == "YES" 288my_components += ldapbe2 289.END 290 291.IF "$(WITH_MOZILLA)" != "NO" 292my_components += \ 293 xmlsecurity \ 294 xsec_fw \ 295 xsec_xmlsec \ 296 pl 297.END 298 299.IF "$(OS)" == "MACOSX" 300my_components += \ 301 avmediaQuickTime \ 302 fps_aqua \ 303 macab1 \ 304 macbe1 \ 305 MacOSXSpell 306.END 307 308.IF "$(OS)" == "WNT" 309my_components += \ 310 ado \ 311 dnd \ 312 dtrans \ 313 fop \ 314 fps \ 315 ftransl \ 316 java_uno_accessbridge \ 317 smplmail \ 318 sysdtrans \ 319 wininetbe1 320.END 321 322.IF "$(OS)" == "WNT" && "$(DISABLE_ATL)" == "" 323my_components += \ 324 emser \ 325 oleautobridge 326.END 327 328.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" 329my_components += \ 330 avmediawin \ 331 directx9canvas \ 332 gdipluscanvas 333.END 334 335.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != "" 336my_components += directx5canvas 337.END 338 339.IF "$(OS)" == "LINUX" || "$(OS)" == "NETBSD" || \ 340 ("$(OS)" == "SOLARIS" && "$(CPU)" == "S") || "$(OS)" == "WNT" 341my_components += adabas 342.END 343 344.IF "$(OS)" != "MACOSX" && "$(SYSTEM_MOZILLA)" != "YES" && \ 345 "$(WITH_MOZILLA)" != "NO" 346my_components += mozab 347.ELSE 348my_components += mozbootstrap 349.END 350 351.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" 352my_components += desktopbe1 353.END 354 355.IF "$(GTK_TWO_FOUR)" != "" 356my_components += fps_gnome 357.END 358 359.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_KDE4)" != "" 360my_components += fps_kde4 361.END 362 363.IF "$(OS)" != "WNT" 364my_components += cmdmail 365.END 366 367.IF "$(OS)" != "WNT" && "$(ENABLE_EVOAB2)" != "" 368my_components += evoab 369.END 370 371.IF "$(OS)" != "WNT" && "$(ENABLE_GSTREAMER)" != "" 372my_components += avmediagst 373.END 374 375.IF "$(OS)" != "WNT" && "$(SOLAR_JAVA)" == "TRUE" 376my_components += avmedia.jar 377.END 378 379my_ooo_components = mailmerge 380 381.INCLUDE: target.mk 382 383ALLTAR : $(MISC)/services.rdb $(MISC)/ooo-services.rdb 384 385$(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 386 $(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component") 387 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 388 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input 389 390$(MISC)/services.input : makefile.mk 391 echo \ 392 '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \ 393 > $@ 394 395$(MISC)/ooo-services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 396 $(MISC)/ooo-services.input \ 397 $(my_ooo_components:^"$(SOLARXMLDIR)/":+".component") 398 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 399 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/ooo-services.input 400 401$(MISC)/ooo-services.input : makefile.mk 402 echo '<list>' \ 403 '$(my_ooo_components:^"<filename>":+".component</filename>")' \ 404 '</list>' > $@ 405