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 spl \ 149 srtrs1 \ 150 stringresource \ 151 svgfilter \ 152 syssh \ 153 t602filter \ 154 tvhlp1 \ 155 ucb1 \ 156 ucpchelp1 \ 157 ucpexpand1 \ 158 ucpext \ 159 ucpfile1 \ 160 ucpftp1 \ 161 ucphier1 \ 162 ucppkg1 \ 163 ucptdoc1 \ 164 updatefeed \ 165 updchk \ 166 updchk.uno \ 167 utl \ 168 uui \ 169 vbaevents \ 170 vbaobj \ 171 vclcanvas \ 172 writerfilter \ 173 xcr \ 174 xmlfa \ 175 xmlfd \ 176 xmx \ 177 xsltdlg \ 178 xstor 179 180.IF "$(OS)" == "MACOSX" 181my_components += component/vcl/vcl.macosx 182.ELSE 183.IF "$(OS)" == "WNT" 184my_components += component/vcl/vcl.windows 185.ELSE 186my_components += component/vcl/vcl.unx 187.ENDIF 188.ENDIF 189 190.IF "$(BUILD_SPECIAL)" != "" 191my_components += oooimprovement 192.END 193 194.IF "$(DISABLE_SAXON)" == "" 195my_components += XSLTFilter.jar \ 196 xsltfilter 197.END 198 199.IF "$(DISABLE_HYPHEN)" == "" 200my_components += hyphen 201.END 202 203.IF "$(DISABLE_HUNSPELL)" == "" 204my_components += \ 205 lnth \ 206 spell 207.END 208 209.IF "$(DISABLE_LIBWPD)" == "" 210my_components += wpft 211.END 212 213.IF "$(DISABLE_ATL)" == "" 214my_components += emboleobj 215.END 216 217.IF "$(DISABLE_NEON)" != "TRUE" 218my_components += ucpdav1 219.END 220 221.IF "$(ENABLE_CAIRO_CANVAS)" == "TRUE" 222my_components += cairocanvas 223.END 224 225.IF "$(ENABLE_GCONF)" != "" 226my_components += gconfbe1 227.END 228 229.IF "$(ENABLE_GIO)" != "" 230my_components += ucpgio 231.END 232 233.IF "$(ENABLE_GNOMEVFS)" != "" 234my_components += ucpgvfs 235.END 236 237.IF "$(ENABLE_KAB)" != "" 238my_components += kab1 239.END 240 241.IF "$(ENABLE_KDE)" != "" 242my_components += kdebe1 243.END 244 245.IF "$(ENABLE_KDE4)" != "" 246my_components += kde4be1 247.END 248 249.IF "$(ENABLE_OPENGL)" == "TRUE" 250my_components += ogltrans 251.END 252 253.IF "$(ENABLE_SVCTAGS)" == "YES" 254my_components += productregistration.jar 255.END 256 257.IF "$(SOLAR_JAVA)" == "TRUE" 258my_components += \ 259 LuceneHelpWrapper \ 260 ScriptFramework \ 261 ScriptProviderForBeanShell \ 262 ScriptProviderForJava \ 263 ScriptProviderForJavaScript \ 264 XMergeBridge \ 265 XSLTValidate \ 266 agenda \ 267 fax \ 268 form \ 269 hsqldb \ 270 jdbc \ 271 letter \ 272 query \ 273 report \ 274 table \ 275 web 276.END 277 278.IF "$(WITH_BINFILTER)" != "NO" 279my_components += \ 280 bf_migratefilter \ 281 bindet 282.END 283 284.IF "$(WITH_LDAP)" == "YES" 285my_components += ldapbe2 286.END 287 288.IF "$(WITH_MOZILLA)" != "NO" 289my_components += \ 290 xmlsecurity \ 291 xsec_fw \ 292 xsec_xmlsec \ 293 pl 294.END 295 296.IF "$(OS)" == "MACOSX" 297my_components += \ 298 avmediaQuickTime \ 299 fps_aqua \ 300 macab1 \ 301 macbe1 302 303.IF "$(DISABLE_HUNSPELL)" == "" 304my_components += \ 305 MacOSXSpell 306.END 307 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