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 "$(WITH_MOZILLA)" != "NO" 305my_components += \ 306 xmlsecurity \ 307 xsec_fw \ 308 xsec_xmlsec 309.END 310 311.IF "$(OS)" == "MACOSX" 312my_components += \ 313 avmediaQuickTime \ 314 fps_aqua \ 315 macab1 \ 316 macbe1 \ 317 MacOSXSpell 318.END 319 320.IF "$(OS)" == "WNT" 321my_components += \ 322 ado \ 323 dnd \ 324 dtrans \ 325 fop \ 326 fps \ 327 ftransl \ 328 java_uno_accessbridge \ 329 sysmail \ 330 sysdtrans \ 331 wininetbe1 332.END 333 334.IF "$(OS)" == "OS2" 335my_components += \ 336 dtrans \ 337 sysdtrans 338.END 339 340.IF "$(OS)" == "WNT" && "$(DISABLE_ATL)" == "" 341my_components += \ 342 emser \ 343 oleautobridge 344.END 345 346.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" 347my_components += \ 348 avmediawin \ 349 directx9canvas \ 350 gdipluscanvas 351.END 352 353.IF "$(OS)" == "WNT" && "$(ENABLE_DIRECTX)" != "" && "$(USE_DIRECTX5)" != "" 354my_components += directx5canvas 355.END 356 357.IF "$(OS)" == "LINUX" || "$(OS)" == "NETBSD" || \ 358 ("$(OS)" == "SOLARIS" && "$(CPU)" == "S") || "$(OS)" == "WNT" 359my_components += adabas 360.END 361 362#.IF "$(OS)" != "MACOSX" && "$(SYSTEM_MOZILLA)" != "YES" && \ 363# "$(WITH_MOZILLA)" != "NO" 364#my_components += mozab 365#.ELIF "$(OS)" == "OS2" 366#.ELSE 367my_components += mozbootstrap 368#.END 369 370.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(OS)" != "OS2" 371my_components += desktopbe1 372.END 373 374.IF "$(GTK_TWO_FOUR)" != "" 375my_components += fps_gnome 376.END 377 378.IF "$(OS)" != "MACOSX" && "$(OS)" != "WNT" && "$(ENABLE_KDE4)" != "" 379my_components += fps_kde4 380.END 381 382.IF "$(OS)" != "WNT" 383my_components += cmdmail 384.END 385 386.IF "$(OS)" != "WNT" && "$(ENABLE_EVOAB2)" != "" 387my_components += evoab 388.END 389 390.IF "$(OS)" != "WNT" && "$(ENABLE_GSTREAMER)" != "" 391my_components += avmediagst 392.END 393 394.IF "$(OS)" != "WNT" && "$(SOLAR_JAVA)" == "TRUE" 395my_components += avmedia.jar 396.END 397 398my_ooo_components = mailmerge 399 400.INCLUDE: target.mk 401 402ALLTAR : $(MISC)/services.rdb $(MISC)/ooo-services.rdb 403 404$(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 405 $(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component") 406 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 407 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input 408 409$(MISC)/services.input : makefile.mk 410 echo \ 411 '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \ 412 > $@ 413 414$(MISC)/ooo-services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ 415 $(MISC)/ooo-services.input \ 416 $(my_ooo_components:^"$(SOLARXMLDIR)/":+".component") 417 $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ 418 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/ooo-services.input 419 420$(MISC)/ooo-services.input : makefile.mk 421 echo '<list>' \ 422 '$(my_ooo_components:^"<filename>":+".component</filename>")' \ 423 '</list>' > $@ 424