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 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 directx9canvas \ 355 gdipluscanvas 356.END 357 358.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != "" 359my_components += 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