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 302.IF "$(DISABLE_HUNSPELL)" == "" 303my_components += \ 304 MacOSXSpell 305.END 306 307.END 308 309.IF "$(OS)" == "WNT" 310my_components += \ 311 ado \ 312 dnd \ 313 dtrans \ 314 fop \ 315 fps \ 316 ftransl \ 317 java_uno_accessbridge \ 318 smplmail \ 319 sysdtrans \ 320 wininetbe1 321.END 322 323.IF "$(OS)" == "WNT" && "$(DISABLE_ATL)" == "" 324my_components += \ 325 emser \ 326 oleautobridge 327.END 328 329.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" 330my_components += \ 331 avmediawin \ 332 directx9canvas \ 333 gdipluscanvas 334.END 335 336.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != "" 337my_components += directx5canvas 338.END 339 340.IF "$(OS)" == "LINUX" || "$(OS)" == "NETBSD" || \ 341 ("$(OS)" == "SOLARIS" && "$(CPU)" == "S") || "$(OS)" == "WNT" 342my_components += adabas 343.END 344 345.IF "$(OS)" != "MACOSX" && "$(SYSTEM_MOZILLA)" != "YES" && \ 346 "$(WITH_MOZILLA)" != "NO" 347my_components += mozab 348.ELSE 349my_components += mozbootstrap 350.END 351 352.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" 353my_components += desktopbe1 354.END 355 356.IF "$(GTK_TWO_FOUR)" != "" 357my_components += fps_gnome 358.END 359 360.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_KDE4)" != "" 361my_components += fps_kde4 362.END 363 364.IF "$(OS)" != "WNT" 365my_components += cmdmail 366.END 367 368.IF "$(OS)" != "WNT" && "$(ENABLE_EVOAB2)" != "" 369my_components += evoab 370.END 371 372.IF "$(OS)" != "WNT" && "$(ENABLE_GSTREAMER)" != "" 373my_components += avmediagst 374.END 375 376.IF "$(OS)" != "WNT" && "$(SOLAR_JAVA)" == "TRUE" 377my_components += avmedia.jar 378.END 379 380my_ooo_components = mailmerge 381 382.INCLUDE: target.mk 383 384ALLTAR : $(MISC)/services.rdb $(MISC)/ooo-services.rdb 385 386$(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 387 $(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component") 388 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 389 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input 390 391$(MISC)/services.input : makefile.mk 392 echo \ 393 '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \ 394 > $@ 395 396$(MISC)/ooo-services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 397 $(MISC)/ooo-services.input \ 398 $(my_ooo_components:^"$(SOLARXMLDIR)/":+".component") 399 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 400 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/ooo-services.input 401 402$(MISC)/ooo-services.input : makefile.mk 403 echo '<list>' \ 404 '$(my_ooo_components:^"<filename>":+".component</filename>")' \ 405 '</list>' > $@ 406