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