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/source/productregistration/productregistration.uno \ 68 component/svtools/util/svt \ 69 component/svx/util/svx \ 70 component/svx/util/svxcore \ 71 component/svx/util/textconversiondlgs \ 72 component/sw/util/msword \ 73 component/sw/util/sw \ 74 component/sw/util/swd \ 75 component/sw/util/vbaswobj \ 76 component/toolkit/util/tk \ 77 component/unoxml/source/rdf/unordf \ 78 component/unoxml/source/service/unoxml \ 79 component/xmloff/source/transform/xof \ 80 component/xmloff/util/xo \ 81 configmgr \ 82 ctl \ 83 date \ 84 dba \ 85 dbase \ 86 dbaxml \ 87 dbmm \ 88 dbp \ 89 dbpool2 \ 90 dbtools \ 91 dbu \ 92 deployment \ 93 deploymentgui \ 94 dlgprov \ 95 embobj \ 96 evtatt \ 97 fastsax \ 98 fileacc \ 99 filterconfig1 \ 100 flash \ 101 flat \ 102 for \ 103 fpicker \ 104 fps_office \ 105 frm \ 106 guesslang \ 107 hwp \ 108 i18npool \ 109 i18nsearch \ 110 lng \ 111 lnth \ 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 "$(ENABLE_COINMP)"=="YES" 195my_components += solver 196.END 197 198.IF "$(DISABLE_SAXON)" == "" 199my_components += XSLTFilter.jar \ 200 xsltfilter 201.END 202 203.IF "$(ENABLE_HYPHEN)" == "YES" 204my_components += hyphen 205.END 206 207.IF "$(ENABLE_HUNSPELL)" == "YES" 208my_components += spell 209.END 210 211.IF "$(SYSTEM_LIBWPD)" == "YES" 212my_components += wpft 213.END 214 215.IF "$(DISABLE_ATL)" == "" 216my_components += emboleobj 217.END 218 219.IF "$(SYSTEM_NEON)" == "YES" 220my_components += ucpdav1 221.END 222 223.IF "$(ENABLE_CAIRO_CANVAS)" == "TRUE" 224my_components += cairocanvas 225.END 226 227.IF "$(ENABLE_GCONF)" != "" 228my_components += gconfbe1 229.END 230 231.IF "$(ENABLE_GIO)" != "" 232my_components += ucpgio 233.END 234 235.IF "$(ENABLE_GNOMEVFS)" != "" 236my_components += ucpgvfs 237.END 238 239.IF "$(ENABLE_KAB)" != "" 240my_components += kab1 241.END 242 243.IF "$(ENABLE_KDE)" != "" 244my_components += kdebe1 245.END 246 247.IF "$(ENABLE_KDE4)" != "" 248my_components += kde4be1 249.END 250 251.IF "$(ENABLE_OPENGL)" == "TRUE" 252my_components += ogltrans 253.END 254 255.IF "$(ENABLE_SVCTAGS)" == "YES" 256my_components += productregistration.jar 257.END 258 259.IF "$(SOLAR_JAVA)" == "TRUE" 260my_components += \ 261 LuceneHelpWrapper \ 262 ScriptFramework \ 263 ScriptProviderForJava \ 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.IF "$(ENABLE_BEANSHELL)" == "YES" 277my_components += ScriptProviderForBeanShell 278.END 279.IF "$(ENABLE_JAVASCRIPT)" == "YES" 280my_components += ScriptProviderForJavaScript 281.END 282.END 283 284.IF "$(WITH_BINFILTER)" != "NO" 285my_components += \ 286 bf_migratefilter \ 287 bindet 288.END 289 290.IF "$(WITH_LDAP)" == "YES" 291my_components += ldapbe2 292.END 293 294.IF "$(WITH_MOZILLA)" != "NO" 295my_components += \ 296 xmlsecurity \ 297 xsec_fw \ 298 xsec_xmlsec \ 299 pl 300.END 301 302.IF "$(OS)" == "MACOSX" 303my_components += \ 304 avmediaQuickTime \ 305 fps_aqua \ 306 macab1 \ 307 macbe1 \ 308 MacOSXSpell 309.END 310 311.IF "$(OS)" == "WNT" 312my_components += \ 313 ado \ 314 dnd \ 315 dtrans \ 316 fop \ 317 fps \ 318 ftransl \ 319 java_uno_accessbridge \ 320 smplmail \ 321 sysdtrans \ 322 wininetbe1 323.END 324 325.IF "$(OS)" == "WNT" && "$(DISABLE_ATL)" == "" 326my_components += \ 327 emser \ 328 oleautobridge 329.END 330 331.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" 332my_components += \ 333 avmediawin \ 334 directx9canvas \ 335 gdipluscanvas 336.END 337 338.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != "" 339my_components += directx5canvas 340.END 341 342.IF "$(OS)" == "LINUX" || "$(OS)" == "NETBSD" || \ 343 ("$(OS)" == "SOLARIS" && "$(CPU)" == "S") || "$(OS)" == "WNT" 344my_components += adabas 345.END 346 347.IF "$(OS)" != "MACOSX" && "$(SYSTEM_MOZILLA)" != "YES" && \ 348 "$(WITH_MOZILLA)" != "NO" 349my_components += mozab 350.ELSE 351my_components += mozbootstrap 352.END 353 354.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" 355my_components += desktopbe1 356.END 357 358.IF "$(GTK_TWO_FOUR)" != "" 359my_components += fps_gnome 360.END 361 362.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_KDE4)" != "" 363my_components += fps_kde4 364.END 365 366.IF "$(OS)" != "WNT" 367my_components += cmdmail 368.END 369 370.IF "$(OS)" != "WNT" && "$(ENABLE_EVOAB2)" != "" 371my_components += evoab 372.END 373 374.IF "$(OS)" != "WNT" && "$(ENABLE_GSTREAMER)" != "" 375my_components += avmediagst 376.END 377 378.IF "$(OS)" != "WNT" && "$(SOLAR_JAVA)" == "TRUE" 379my_components += avmedia.jar 380.END 381 382my_ooo_components = mailmerge 383 384.INCLUDE: target.mk 385 386ALLTAR : $(MISC)/services.rdb $(MISC)/ooo-services.rdb 387 388$(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 389 $(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component") 390 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 391 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input 392 393$(MISC)/services.input : makefile.mk 394 echo \ 395 '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \ 396 > $@ 397 398$(MISC)/ooo-services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 399 $(MISC)/ooo-services.input \ 400 $(my_ooo_components:^"$(SOLARXMLDIR)/":+".component") 401 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 402 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/ooo-services.input 403 404$(MISC)/ooo-services.input : makefile.mk 405 echo '<list>' \ 406 '$(my_ooo_components:^"<filename>":+".component</filename>")' \ 407 '</list>' > $@ 408