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