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/drawinglayer/drawinglayer \ 59 component/framework/util/fwk \ 60 component/framework/util/fwl \ 61 component/framework/util/fwm \ 62 component/vbahelper/util/msforms \ 63 component/sfx2/util/sfx \ 64 component/sot/util/sot \ 65 component/svgio/svgio \ 66 component/svl/source/fsstor/fsstorage \ 67 component/svl/source/passwordcontainer/passwordcontainer \ 68 component/svl/util/svl \ 69 component/svtools/source/hatchwindow/hatchwindowfactory \ 70 component/svtools/source/productregistration/productregistration.uno \ 71 component/svtools/util/svt \ 72 component/svx/util/svx \ 73 component/svx/util/svxcore \ 74 component/svx/util/textconversiondlgs \ 75 component/sw/util/msword \ 76 component/sw/util/sw \ 77 component/sw/util/swd \ 78 component/sw/util/vbaswobj \ 79 component/toolkit/util/tk \ 80 component/unoxml/source/rdf/unordf \ 81 component/unoxml/source/service/unoxml \ 82 component/xmloff/source/transform/xof \ 83 component/xmloff/util/xo \ 84 configmgr \ 85 ctl \ 86 date \ 87 dba \ 88 dbase \ 89 dbaxml \ 90 dbmm \ 91 dbp \ 92 dbpool2 \ 93 dbtools \ 94 dbu \ 95 deployment \ 96 deploymentgui \ 97 dlgprov \ 98 embobj \ 99 evtatt \ 100 fastsax \ 101 fileacc \ 102 filterconfig1 \ 103 flash \ 104 flat \ 105 for \ 106 fpicker \ 107 fps_office \ 108 frm \ 109 guesslang \ 110 hwp \ 111 i18npool \ 112 i18nsearch \ 113 lng \ 114 lnth \ 115 localebe1 \ 116 log \ 117 mcnttype \ 118 migrationoo2 \ 119 msfilter \ 120 mysql \ 121 odbc \ 122 offacc \ 123 oooimprovecore \ 124 oox \ 125 package2 \ 126 pcr \ 127 pdffilter \ 128 placeware \ 129 preload \ 130 protocolhandler \ 131 pythonloader \ 132 pythonscript \ 133 res \ 134 rpt \ 135 rptui \ 136 rptxml \ 137 sax \ 138 sb \ 139 sc \ 140 scd \ 141 scn \ 142 scriptframe \ 143 sd \ 144 sdbc2 \ 145 sdbt \ 146 sdd \ 147 simplecanvas \ 148 slideshow \ 149 sm \ 150 smd \ 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 updatefeed \ 168 updchk \ 169 updchk.uno \ 170 utl \ 171 uui \ 172 vbaevents \ 173 vbaobj \ 174 vclcanvas \ 175 writerfilter \ 176 xcr \ 177 xmlfa \ 178 xmlfd \ 179 xmx \ 180 xsltdlg \ 181 xstor 182 183.IF "$(OS)" == "MACOSX" 184my_components += component/vcl/vcl.macosx 185.ELSE 186.IF "$(OS)" == "WNT" 187my_components += component/vcl/vcl.windows 188.ELSE 189my_components += component/vcl/vcl.unx 190.ENDIF 191.ENDIF 192 193.IF "$(BUILD_SPECIAL)" != "" 194my_components += oooimprovement 195.END 196 197.IF "$(DISABLE_SAXON)" == "" 198my_components += XSLTFilter.jar \ 199 xsltfilter 200.END 201 202.IF "$(ENABLE_HYPHEN)" == "YES" 203my_components += hyphen 204.END 205 206.IF "$(ENABLE_HUNSPELL)" == "YES" 207my_components += spell 208.END 209 210.IF "$(SYSTEM_LIBWPD)" == "YES" 211my_components += wpft 212.END 213 214.IF "$(DISABLE_ATL)" == "" 215my_components += emboleobj 216.END 217 218.IF "$(SYSTEM_NEON)" == "YES" 219my_components += ucpdav1 220.END 221 222.IF "$(ENABLE_CAIRO_CANVAS)" == "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_OPENGL)" == "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 ScriptProviderForJava \ 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.IF "$(ENABLE_BEANSHELL)" == "YES" 276my_components += ScriptProviderForBeanShell 277.END 278.IF "$(ENABLE_JAVASCRIPT)" == "YES" 279my_components += ScriptProviderForJavaScript 280.END 281.END 282 283.IF "$(WITH_BINFILTER)" != "NO" 284my_components += \ 285 bf_migratefilter \ 286 bindet 287.END 288 289.IF "$(WITH_LDAP)" == "YES" 290my_components += ldapbe2 291.END 292 293.IF "$(WITH_MOZILLA)" != "NO" 294my_components += \ 295 xmlsecurity \ 296 xsec_fw \ 297 xsec_xmlsec \ 298 pl 299.END 300 301.IF "$(OS)" == "MACOSX" 302my_components += \ 303 avmediaQuickTime \ 304 fps_aqua \ 305 macab1 \ 306 macbe1 \ 307 MacOSXSpell 308.END 309 310.IF "$(OS)" == "WNT" 311my_components += \ 312 ado \ 313 dnd \ 314 dtrans \ 315 fop \ 316 fps \ 317 ftransl \ 318 java_uno_accessbridge \ 319 smplmail \ 320 sysdtrans \ 321 wininetbe1 322.END 323 324.IF "$(OS)" == "WNT" && "$(DISABLE_ATL)" == "" 325my_components += \ 326 emser \ 327 oleautobridge 328.END 329 330.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" 331my_components += \ 332 avmediawin \ 333 directx9canvas \ 334 gdipluscanvas 335.END 336 337.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != "" 338my_components += directx5canvas 339.END 340 341.IF "$(OS)" == "LINUX" || "$(OS)" == "NETBSD" || \ 342 ("$(OS)" == "SOLARIS" && "$(CPU)" == "S") || "$(OS)" == "WNT" 343my_components += adabas 344.END 345 346.IF "$(OS)" != "MACOSX" && "$(SYSTEM_MOZILLA)" != "YES" && \ 347 "$(WITH_MOZILLA)" != "NO" 348my_components += mozab 349.ELSE 350my_components += mozbootstrap 351.END 352 353.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" 354my_components += desktopbe1 355.END 356 357.IF "$(GTK_TWO_FOUR)" != "" 358my_components += fps_gnome 359.END 360 361.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_KDE4)" != "" 362my_components += fps_kde4 363.END 364 365.IF "$(OS)" != "WNT" 366my_components += cmdmail 367.END 368 369.IF "$(OS)" != "WNT" && "$(ENABLE_EVOAB2)" != "" 370my_components += evoab 371.END 372 373.IF "$(OS)" != "WNT" && "$(ENABLE_GSTREAMER)" != "" 374my_components += avmediagst 375.END 376 377.IF "$(OS)" != "WNT" && "$(SOLAR_JAVA)" == "TRUE" 378my_components += avmedia.jar 379.END 380 381my_ooo_components = mailmerge 382 383.INCLUDE: target.mk 384 385ALLTAR : $(MISC)/services.rdb $(MISC)/ooo-services.rdb 386 387$(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 388 $(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component") 389 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 390 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input 391 392$(MISC)/services.input : makefile.mk 393 echo \ 394 '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \ 395 > $@ 396 397$(MISC)/ooo-services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 398 $(MISC)/ooo-services.input \ 399 $(my_ooo_components:^"$(SOLARXMLDIR)/":+".component") 400 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 401 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/ooo-services.input 402 403$(MISC)/ooo-services.input : makefile.mk 404 echo '<list>' \ 405 '$(my_ooo_components:^"<filename>":+".component</filename>")' \ 406 '</list>' > $@ 407