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 "$(ENABLE_OOOIMPROVEMENT)" != "" 215my_components += oooimprovement 216.END 217 218.IF "$(ENABLE_COINMP)"=="YES" 219my_components += solver 220.END 221 222.IF "$(DISABLE_SAXON)" == "" 223my_components += XSLTFilter.jar \ 224 xsltfilter 225.END 226 227.IF "$(ENABLE_HYPHEN)" == "YES" 228my_components += hyphen 229.END 230 231.IF "$(ENABLE_HUNSPELL)" == "YES" 232my_components += spell 233.END 234 235.IF "$(SYSTEM_LIBWPD)" == "YES" 236my_components += wpft 237.END 238 239.IF "$(DISABLE_ATL)" == "" 240my_components += emboleobj 241.END 242 243.IF "$(ENABLE_CAIRO_CANVAS)" == "TRUE" 244my_components += cairocanvas 245.END 246 247.IF "$(ENABLE_GCONF)" != "" 248my_components += gconfbe1 249.END 250 251.IF "$(ENABLE_GIO)" != "" 252my_components += ucpgio 253.END 254 255.IF "$(ENABLE_GNOMEVFS)" != "" 256my_components += ucpgvfs 257.END 258 259.IF "$(ENABLE_KAB)" != "" 260my_components += kab1 261.END 262 263.IF "$(ENABLE_KDE)" != "" 264my_components += kdebe1 265.END 266 267.IF "$(ENABLE_KDE4)" != "" 268my_components += kde4be1 269.END 270 271.IF "$(ENABLE_OPENGL)" == "TRUE" 272my_components += ogltrans 273.END 274 275.IF "$(SOLAR_JAVA)" == "TRUE" 276my_components += \ 277 LuceneHelpWrapper \ 278 ScriptFramework \ 279 ScriptProviderForJava \ 280 XMergeBridge \ 281 XSLTValidate \ 282 agenda \ 283 fax \ 284 form \ 285 hsqldb \ 286 jdbc \ 287 letter \ 288 query \ 289 report \ 290 table \ 291 web 292.IF "$(ENABLE_BEANSHELL)" == "YES" 293my_components += ScriptProviderForBeanShell 294.END 295.IF "$(ENABLE_JAVASCRIPT)" == "YES" 296my_components += ScriptProviderForJavaScript 297.END 298.END 299 300.IF "$(WITH_LDAP)" == "YES" 301my_components += ldapbe2 302.END 303 304.IF "$(ENABLE_NSS_MODULE)" != "NO" 305my_components += \ 306 xmlsecurity \ 307 xsec_fw \ 308 xsec_xmlsec 309.END 310 311.IF "$(OS)" == "MACOSX" 312my_components += \ 313 fps_aqua \ 314 macab1 \ 315 macbe1 \ 316 MacOSXSpell 317.IF "${MACOSX_DEPLOYMENT_TARGET}" == "" 318 my_components += avmediaQuickTime 319.END 320.END 321 322.IF "$(OS)" == "WNT" 323my_components += \ 324 ado \ 325 dnd \ 326 dtrans \ 327 fop \ 328 fps \ 329 ftransl \ 330 java_uno_accessbridge \ 331 sysmail \ 332 sysdtrans \ 333 winaccessibility \ 334 wininetbe1 335.END 336 337.IF "$(OS)" == "OS2" 338my_components += \ 339 dtrans \ 340 sysdtrans 341.END 342 343.IF "$(OS)" == "WNT" && "$(DISABLE_ATL)" == "" 344my_components += \ 345 emser \ 346 oleautobridge 347.END 348 349.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" 350my_components += \ 351 avmediawin \ 352 directx9canvas \ 353 gdipluscanvas 354.END 355 356.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != "" 357my_components += directx5canvas 358.END 359 360.IF "$(OS)" == "LINUX" || "$(OS)" == "NETBSD" || \ 361 ("$(OS)" == "SOLARIS" && "$(CPU)" == "S") || "$(OS)" == "WNT" 362my_components += adabas 363.END 364 365.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(OS)" != "OS2" 366my_components += desktopbe1 367.END 368 369.IF "$(GTK_TWO_FOUR)" != "" 370my_components += fps_gnome 371.END 372 373.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_KDE4)" != "" 374my_components += fps_kde4 375.END 376 377.IF "$(OS)" != "WNT" 378my_components += cmdmail 379.END 380 381.IF "$(OS)" != "WNT" && "$(ENABLE_EVOAB2)" != "" 382my_components += evoab 383.END 384 385.IF "$(OS)" != "WNT" && "$(ENABLE_GSTREAMER)" != "" 386my_components += avmediagst 387.END 388 389.IF "$(OS)" != "WNT" && "$(SOLAR_JAVA)" == "TRUE" 390my_components += avmedia.jar 391.END 392 393my_ooo_components = mailmerge 394 395.INCLUDE: target.mk 396 397ALLTAR : $(MISC)/services.rdb $(MISC)/ooo-services.rdb 398 399$(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 400 $(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component") 401 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 402 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input 403 404$(MISC)/services.input : makefile.mk 405 echo \ 406 '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \ 407 > $@ 408 409$(MISC)/ooo-services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 410 $(MISC)/ooo-services.input \ 411 $(my_ooo_components:^"$(SOLARXMLDIR)/":+".component") 412 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 413 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/ooo-services.input 414 415$(MISC)/ooo-services.input : makefile.mk 416 echo '<list>' \ 417 '$(my_ooo_components:^"<filename>":+".component</filename>")' \ 418 '</list>' > $@ 419