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/drawinglayer/drawinglayer \ 55 component/framework/util/fwk \ 56 component/framework/util/fwl \ 57 component/framework/util/fwm \ 58 component/vbahelper/util/msforms \ 59 component/sfx2/util/sfx \ 60 component/sot/util/sot \ 61 component/svgio/svgio \ 62 component/svl/source/fsstor/fsstorage \ 63 component/svl/source/passwordcontainer/passwordcontainer \ 64 component/svl/util/svl \ 65 component/svtools/source/hatchwindow/hatchwindowfactory \ 66 component/svtools/source/productregistration/productregistration.uno \ 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 ucpexpand1 \ 157 ucpext \ 158 ucpfile1 \ 159 ucpftp1 \ 160 ucphier1 \ 161 ucppkg1 \ 162 ucptdoc1 \ 163 updatefeed \ 164 updchk \ 165 updchk.uno \ 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 179.IF "$(OS)" == "MACOSX" 180my_components += component/vcl/vcl.macosx 181.ELSE 182.IF "$(OS)" == "WNT" 183my_components += component/vcl/vcl.windows 184.ELSE 185my_components += component/vcl/vcl.unx 186.ENDIF 187.ENDIF 188 189.IF "$(BUILD_SPECIAL)" != "" 190my_components += oooimprovement 191.END 192 193.IF "$(ENABLE_COINMP)"=="YES" 194my_components += solver 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