1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23 24PRJ = .. 25PRJNAME = postprocess 26TARGET = packcomponents 27 28.INCLUDE: settings.mk 29 30#TODO (copied from scp2/source/ooo/makefile.mk): 31.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_GTK)" != "" 32PKGCONFIG_MODULES=gtk+-2.0 33.INCLUDE: pkg_config.mk 34GTK_TWO_FOUR=$(shell @+-$(PKG_CONFIG) --exists 'gtk+-2.0 >= 2.4.0' && echo YES) 35.END 36 37my_components = \ 38 abp \ 39 adabasui \ 40 analysis \ 41 animcore \ 42 avmedia \ 43 basctl \ 44 basprov \ 45 bib \ 46 cached1 \ 47 calc \ 48 canvasfactory \ 49 chartcontroller \ 50 chartmodel \ 51 charttools \ 52 chartview \ 53 component/comphelper/util/comphelp \ 54 component/cui/util/cui \ 55 component/drawinglayer/drawinglayer \ 56 component/framework/util/fwk \ 57 component/framework/util/fwl \ 58 component/framework/util/fwm \ 59 component/vbahelper/util/msforms \ 60 component/sfx2/util/sfx \ 61 component/sot/util/sot \ 62 component/svgio/svgio \ 63 component/svl/source/fsstor/fsstorage \ 64 component/svl/source/passwordcontainer/passwordcontainer \ 65 component/svl/util/svl \ 66 component/svtools/source/hatchwindow/hatchwindowfactory \ 67 component/svtools/util/svt \ 68 component/svx/util/svx \ 69 component/svx/util/svxcore \ 70 component/svx/util/textconversiondlgs \ 71 component/sw/util/msword \ 72 component/sw/util/sw \ 73 component/sw/util/swd \ 74 component/sw/util/vbaswobj \ 75 component/toolkit/util/tk \ 76 component/unoxml/source/rdf/unordf \ 77 component/unoxml/source/service/unoxml \ 78 component/xmloff/source/transform/xof \ 79 component/xmloff/util/xo \ 80 configmgr \ 81 ctl \ 82 date \ 83 dba \ 84 dbase \ 85 dbaxml \ 86 dbmm \ 87 dbp \ 88 dbpool2 \ 89 dbtools \ 90 dbu \ 91 deployment \ 92 deploymentgui \ 93 dlgprov \ 94 embobj \ 95 evtatt \ 96 fastsax \ 97 fileacc \ 98 filterconfig1 \ 99 flash \ 100 flat \ 101 for \ 102 fpicker \ 103 fps_office \ 104 frm \ 105 guesslang \ 106 hwp \ 107 i18npool \ 108 i18nsearch \ 109 lng \ 110 lnth \ 111 localebe1 \ 112 log \ 113 mcnttype \ 114 migrationoo2 \ 115 msfilter \ 116 mysql \ 117 odbc \ 118 offacc \ 119 oooimprovecore \ 120 oox \ 121 package2 \ 122 pcr \ 123 pdffilter \ 124 placeware \ 125 preload \ 126 protocolhandler \ 127 pythonloader \ 128 pythonscript \ 129 res \ 130 rpt \ 131 rptui \ 132 rptxml \ 133 sax \ 134 sb \ 135 sc \ 136 scd \ 137 scn \ 138 scriptframe \ 139 sd \ 140 sdbc2 \ 141 sdbt \ 142 sdd \ 143 simplecanvas \ 144 slideshow \ 145 sm \ 146 smd \ 147 spl \ 148 srtrs1 \ 149 stringresource \ 150 svgfilter \ 151 syssh \ 152 t602filter \ 153 tvhlp1 \ 154 ucb1 \ 155 ucpchelp1 \ 156 ucpdav1 \ 157 ucpexpand1 \ 158 ucpext \ 159 ucpfile1 \ 160 ucpftp1 \ 161 ucphier1 \ 162 ucppkg1 \ 163 ucptdoc1 \ 164 updatefeed \ 165 updchk \ 166 utl \ 167 uui \ 168 vbaevents \ 169 vbaobj \ 170 vclcanvas \ 171 writerfilter \ 172 xcr \ 173 xmlfa \ 174 xmlfd \ 175 xmx \ 176 xsltdlg \ 177 xstor \ 178 PresentationMinimizer \ 179 PresenterScreen 180 181.IF "$(OS)" == "MACOSX" 182my_components += component/vcl/vcl.macosx 183.ELSE 184.IF "$(OS)" == "WNT" || "$(OS)" == "OS2" 185my_components += component/vcl/vcl.windows 186.ELSE 187my_components += component/vcl/vcl.unx 188.ENDIF 189.ENDIF 190 191.IF "$(ENABLE_ONLINE_UPDATE)"=="YES" 192my_components += updchk.uno 193.END 194 195.IF "$(ENABLE_OOOIMPROVEMENT)" != "" 196my_components += oooimprovement 197.END 198 199.IF "$(ENABLE_COINMP)"=="YES" 200my_components += solver 201.END 202 203.IF "$(DISABLE_SAXON)" == "" 204my_components += XSLTFilter.jar \ 205 xsltfilter 206.END 207 208.IF "$(ENABLE_HYPHEN)" == "YES" 209my_components += hyphen 210.END 211 212.IF "$(ENABLE_HUNSPELL)" == "YES" 213my_components += spell 214.END 215 216.IF "$(SYSTEM_LIBWPD)" == "YES" 217my_components += wpft 218.END 219 220.IF "$(DISABLE_ATL)" == "" 221my_components += emboleobj 222.END 223 224.IF "$(ENABLE_CAIRO_CANVAS)" == "TRUE" 225my_components += cairocanvas 226.END 227 228.IF "$(ENABLE_GCONF)" != "" 229my_components += gconfbe1 230.END 231 232.IF "$(ENABLE_GIO)" != "" 233my_components += ucpgio 234.END 235 236.IF "$(ENABLE_GNOMEVFS)" != "" 237my_components += ucpgvfs 238.END 239 240.IF "$(ENABLE_KAB)" != "" 241my_components += kab1 242.END 243 244.IF "$(ENABLE_KDE)" != "" 245my_components += kdebe1 246.END 247 248.IF "$(ENABLE_KDE4)" != "" 249my_components += kde4be1 250.END 251 252.IF "$(ENABLE_OPENGL)" == "TRUE" 253my_components += ogltrans 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.END 297 298.IF "$(OS)" == "MACOSX" 299my_components += \ 300 avmediaQuickTime \ 301 fps_aqua \ 302 macab1 \ 303 macbe1 \ 304 MacOSXSpell 305.END 306 307.IF "$(OS)" == "WNT" 308my_components += \ 309 ado \ 310 dnd \ 311 dtrans \ 312 fop \ 313 fps \ 314 ftransl \ 315 java_uno_accessbridge \ 316 sysmail \ 317 sysdtrans \ 318 wininetbe1 319.END 320 321.IF "$(OS)" == "OS2" 322my_components += \ 323 dtrans \ 324 sysdtrans 325.END 326 327.IF "$(OS)" == "WNT" && "$(DISABLE_ATL)" == "" 328my_components += \ 329 emser \ 330 oleautobridge 331.END 332 333.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" 334my_components += \ 335 avmediawin \ 336 directx9canvas \ 337 gdipluscanvas 338.END 339 340.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != "" 341my_components += directx5canvas 342.END 343 344.IF "$(OS)" == "LINUX" || "$(OS)" == "NETBSD" || \ 345 ("$(OS)" == "SOLARIS" && "$(CPU)" == "S") || "$(OS)" == "WNT" 346my_components += adabas 347.END 348 349.IF "$(OS)" != "MACOSX" && "$(SYSTEM_MOZILLA)" != "YES" && \ 350 "$(WITH_MOZILLA)" != "NO" 351my_components += mozab 352.ELIF "$(OS)" == "OS2" 353.ELSE 354my_components += mozbootstrap 355.END 356 357.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(OS)" != "OS2" 358my_components += desktopbe1 359.END 360 361.IF "$(GTK_TWO_FOUR)" != "" 362my_components += fps_gnome 363.END 364 365.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_KDE4)" != "" 366my_components += fps_kde4 367.END 368 369.IF "$(OS)" != "WNT" 370my_components += cmdmail 371.END 372 373.IF "$(OS)" != "WNT" && "$(ENABLE_EVOAB2)" != "" 374my_components += evoab 375.END 376 377.IF "$(OS)" != "WNT" && "$(ENABLE_GSTREAMER)" != "" 378my_components += avmediagst 379.END 380 381.IF "$(OS)" != "WNT" && "$(SOLAR_JAVA)" == "TRUE" 382my_components += avmedia.jar 383.END 384 385my_ooo_components = mailmerge 386 387.INCLUDE: target.mk 388 389ALLTAR : $(MISC)/services.rdb $(MISC)/ooo-services.rdb 390 391$(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 392 $(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component") 393 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 394 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input 395 396$(MISC)/services.input : makefile.mk 397 echo \ 398 '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \ 399 > $@ 400 401$(MISC)/ooo-services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 402 $(MISC)/ooo-services.input \ 403 $(my_ooo_components:^"$(SOLARXMLDIR)/":+".component") 404 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 405 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/ooo-services.input 406 407$(MISC)/ooo-services.input : makefile.mk 408 echo '<list>' \ 409 '$(my_ooo_components:^"<filename>":+".component</filename>")' \ 410 '</list>' > $@ 411