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 acceptor \ 39 binaryurp \ 40 bootstrap \ 41 connector \ 42 introspection \ 43 invocadapt \ 44 invocation \ 45 javaloader \ 46 javavm \ 47 juh \ 48 namingservice \ 49 proxyfac \ 50 reflection \ 51 stocservices \ 52 streams \ 53 textinstream \ 54 textoutstream \ 55 uuresolver \ 56 abp \ 57 adabasui \ 58 analysis \ 59 animcore \ 60 avmedia \ 61 basctl \ 62 basprov \ 63 bib \ 64 cached1 \ 65 calc \ 66 canvasfactory \ 67 chartcontroller \ 68 chartmodel \ 69 charttools \ 70 chartview \ 71 component/comphelper/util/comphelp \ 72 component/cui/util/cui \ 73 component/drawinglayer/drawinglayer \ 74 component/framework/util/fwk \ 75 component/framework/util/fwl \ 76 component/framework/util/fwm \ 77 component/vbahelper/util/msforms \ 78 component/sfx2/util/sfx \ 79 component/sot/util/sot \ 80 component/svgio/svgio \ 81 component/svl/source/fsstor/fsstorage \ 82 component/svl/source/passwordcontainer/passwordcontainer \ 83 component/svl/util/svl \ 84 component/svtools/source/hatchwindow/hatchwindowfactory \ 85 component/svtools/util/svt \ 86 component/svx/util/svx \ 87 component/svx/util/svxcore \ 88 component/svx/util/textconversiondlgs \ 89 component/sw/util/msword \ 90 component/sw/util/sw \ 91 component/sw/util/swd \ 92 component/sw/util/vbaswobj \ 93 component/toolkit/util/ootk \ 94 component/unoxml/source/rdf/unordf \ 95 component/unoxml/source/service/unoxml \ 96 component/xmloff/source/transform/xof \ 97 component/xmloff/util/xo \ 98 configmgr \ 99 ctl \ 100 date \ 101 dba \ 102 dbase \ 103 dbaxml \ 104 dbmm \ 105 dbp \ 106 dbpool2 \ 107 dbtools \ 108 dbu \ 109 deployment \ 110 deploymentgui \ 111 dlgprov \ 112 embobj \ 113 evtatt \ 114 fastsax \ 115 fileacc \ 116 filterconfig1 \ 117 flash \ 118 flat \ 119 for \ 120 fpicker \ 121 fps_office \ 122 frm \ 123 guesslang \ 124 hwp \ 125 i18npool \ 126 i18nsearch \ 127 lng \ 128 lnth \ 129 localebe1 \ 130 log \ 131 mailmerge \ 132 mcnttype \ 133 migrationoo2 \ 134 msfilter \ 135 mysql \ 136 odbc \ 137 offacc \ 138 oooimprovecore \ 139 oox \ 140 package2 \ 141 pcr \ 142 pdffilter \ 143 placeware \ 144 preload \ 145 protocolhandler \ 146 pythonloader \ 147 pythonscript \ 148 res \ 149 rpt \ 150 rptui \ 151 rptxml \ 152 sax \ 153 sb \ 154 sc \ 155 scd \ 156 scn \ 157 scriptframe \ 158 sd \ 159 sdbc2 \ 160 sdbt \ 161 sdd \ 162 simplecanvas \ 163 slideshow \ 164 sm \ 165 smd \ 166 spl \ 167 srtrs1 \ 168 stringresource \ 169 svgfilter \ 170 syssh \ 171 t602filter \ 172 tvhlp1 \ 173 ucb1 \ 174 ucpchelp1 \ 175 ucpdav1 \ 176 ucpexpand1 \ 177 ucpext \ 178 ucpfile1 \ 179 ucpftp1 \ 180 ucphier1 \ 181 ucppkg1 \ 182 ucptdoc1 \ 183 updatefeed \ 184 updchk \ 185 utl \ 186 uui \ 187 vbaevents \ 188 vbaobj \ 189 vclcanvas \ 190 writerfilter \ 191 xcr \ 192 xmlfa \ 193 xmlfd \ 194 xmx \ 195 xsltdlg \ 196 xstor \ 197 PresentationMinimizer \ 198 PresenterScreen 199 200.IF "$(OS)" == "MACOSX" 201my_components += component/vcl/vcl.macosx 202.ELSE 203.IF "$(OS)" == "WNT" || "$(OS)" == "OS2" 204my_components += component/vcl/vcl.windows 205.ELSE 206my_components += component/vcl/vcl.unx 207.ENDIF 208.ENDIF 209 210.IF "$(ENABLE_ONLINE_UPDATE)"=="YES" 211my_components += updchk.uno 212.END 213 214.IF "$(OS)" != "WNT" && "$(OS)" != "OS2" 215my_components += mozbootstrap 216.END 217 218.IF "$(ENABLE_OOOIMPROVEMENT)" != "" 219my_components += oooimprovement 220.END 221 222.IF "$(ENABLE_COINMP)"=="YES" 223my_components += solver 224.END 225 226.IF "$(DISABLE_SAXON)" == "" 227my_components += XSLTFilter.jar \ 228 xsltfilter 229.END 230 231.IF "$(ENABLE_HYPHEN)" == "YES" 232my_components += hyphen 233.END 234 235.IF "$(ENABLE_HUNSPELL)" == "YES" 236my_components += spell 237.END 238 239.IF "$(SYSTEM_LIBWPD)" == "YES" 240my_components += wpft 241.END 242 243.IF "$(DISABLE_ATL)" == "" 244my_components += emboleobj 245.END 246 247.IF "$(ENABLE_CAIRO_CANVAS)" == "TRUE" 248my_components += cairocanvas 249.END 250 251.IF "$(ENABLE_GCONF)" != "" 252my_components += gconfbe1 253.END 254 255.IF "$(ENABLE_GIO)" != "" 256my_components += ucpgio 257.END 258 259.IF "$(ENABLE_GNOMEVFS)" != "" 260my_components += ucpgvfs 261.END 262 263.IF "$(ENABLE_KAB)" != "" 264my_components += kab1 265.END 266 267.IF "$(ENABLE_KDE)" != "" 268my_components += kdebe1 269.END 270 271.IF "$(ENABLE_KDE4)" != "" 272my_components += kde4be1 273.END 274 275.IF "$(ENABLE_OPENGL)" == "TRUE" 276my_components += ogltrans 277.END 278 279.IF "$(SOLAR_JAVA)" == "TRUE" 280my_components += \ 281 LuceneHelpWrapper \ 282 ScriptFramework \ 283 ScriptProviderForJava \ 284 XMergeBridge \ 285 XSLTValidate \ 286 agenda \ 287 fax \ 288 form \ 289 hsqldb \ 290 jdbc \ 291 letter \ 292 query \ 293 report \ 294 table \ 295 web 296.IF "$(ENABLE_BEANSHELL)" == "YES" 297my_components += ScriptProviderForBeanShell 298.END 299.IF "$(ENABLE_JAVASCRIPT)" == "YES" 300my_components += ScriptProviderForJavaScript 301.END 302.END 303 304.IF "$(WITH_LDAP)" == "YES" 305my_components += ldapbe2 306.END 307 308.IF "$(ENABLE_NSS_MODULE)" != "NO" 309my_components += \ 310 xmlsecurity \ 311 xsec_fw \ 312 xsec_xmlsec 313.END 314 315.IF "$(OS)" == "MACOSX" 316my_components += \ 317 avmediaQuickTime \ 318 avmediaMacAVF \ 319 fps_aqua \ 320 macab1 \ 321 macbe1 \ 322 MacOSXSpell 323.END 324 325.IF "$(OS)" == "WNT" 326my_components += \ 327 ado \ 328 dnd \ 329 dtrans \ 330 fop \ 331 fps \ 332 ftransl \ 333 java_uno_accessbridge \ 334 sysmail \ 335 sysdtrans \ 336 winaccessibility \ 337 wininetbe1 338.END 339 340.IF "$(OS)" == "OS2" 341my_components += \ 342 dtrans \ 343 sysdtrans 344.END 345 346.IF "$(OS)" == "WNT" && "$(DISABLE_ATL)" == "" 347my_components += \ 348 emser \ 349 oleautobridge 350.END 351 352.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" 353my_components += \ 354 avmediawin \ 355 directx9canvas \ 356 gdipluscanvas 357.END 358 359.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != "" 360my_components += directx5canvas 361.END 362 363.IF "$(OS)" == "LINUX" || "$(OS)" == "NETBSD" || \ 364 ("$(OS)" == "SOLARIS" && "$(CPU)" == "S") || "$(OS)" == "WNT" 365my_components += adabas 366.END 367 368.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(OS)" != "OS2" 369my_components += desktopbe1 370.END 371 372.IF "$(GTK_TWO_FOUR)" != "" 373my_components += fps_gnome 374.END 375 376.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_KDE4)" != "" 377my_components += fps_kde4 378.END 379 380.IF "$(OS)" != "WNT" 381my_components += cmdmail 382.END 383 384.IF "$(OS)" != "WNT" && "$(ENABLE_EVOAB2)" != "" 385my_components += evoab 386.END 387 388.IF "$(OS)" != "WNT" && "$(ENABLE_GSTREAMER)" != "" 389my_components += avmediagst 390.END 391 392.IF "$(OS)" != "WNT" && "$(SOLAR_JAVA)" == "TRUE" 393my_components += avmedia.jar 394.END 395 396my_ooo_components = mailmerge 397 398.INCLUDE: target.mk 399 400ALLTAR : $(MISC)/services.rdb $(MISC)/ooo-services.rdb 401 402$(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 403 $(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component") 404 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 405 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input 406 407$(MISC)/services.input : makefile.mk 408 echo \ 409 '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \ 410 > $@ 411 412$(MISC)/ooo-services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 413 $(MISC)/ooo-services.input \ 414 $(my_ooo_components:^"$(SOLARXMLDIR)/":+".component") 415 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 416 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/ooo-services.input 417 418$(MISC)/ooo-services.input : makefile.mk 419 echo '<list>' \ 420 '$(my_ooo_components:^"<filename>":+".component</filename>")' \ 421 '</list>' > $@ 422