17871dc3eSAndrew Rist#************************************************************** 27871dc3eSAndrew Rist# 37871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 47871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 57871dc3eSAndrew Rist# distributed with this work for additional information 67871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 77871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 87871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 97871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 107871dc3eSAndrew Rist# 117871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 127871dc3eSAndrew Rist# 137871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 147871dc3eSAndrew Rist# software distributed under the License is distributed on an 157871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 167871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 177871dc3eSAndrew Rist# specific language governing permissions and limitations 187871dc3eSAndrew Rist# under the License. 197871dc3eSAndrew Rist# 207871dc3eSAndrew Rist#************************************************************** 217871dc3eSAndrew Rist 227871dc3eSAndrew Rist 23cdf0e10cSrcweirPRJ=..$/.. 24cdf0e10cSrcweir 25cdf0e10cSrcweirPRJPCH= 26cdf0e10cSrcweir 27cdf0e10cSrcweirPRJNAME=scp2 28cdf0e10cSrcweirTARGET=ooo 29cdf0e10cSrcweirTARGETTYPE=CUI 30cdf0e10cSrcweir 31cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 32cdf0e10cSrcweir 33cdf0e10cSrcweir.INCLUDE : settings.mk 34cdf0e10cSrcweir.INCLUDE : i18npool/version.mk 35cdf0e10cSrcweir 36cdf0e10cSrcweir.IF "$(COM)" == "MSC" 37cdf0e10cSrcweirSCPDEFS+=-D_MSC 38cdf0e10cSrcweir.ENDIF 39cdf0e10cSrcweir 40cdf0e10cSrcweir.IF "$(BUILD_SPECIAL)"!="" 41cdf0e10cSrcweirSCPDEFS+=-DBUILD_SPECIAL 42cdf0e10cSrcweir.ENDIF 43cdf0e10cSrcweir 44cdf0e10cSrcweir.IF "$(BUILD_X64)"!="" 45cdf0e10cSrcweirSCPDEFS+=-DBUILD_X64 46cdf0e10cSrcweir.ENDIF 47cdf0e10cSrcweir 48cdf0e10cSrcweir.IF "$(PROF_EDITION)"!="" 49cdf0e10cSrcweirSCPDEFS+=-DPROF_EDITION 50cdf0e10cSrcweir.ENDIF 51cdf0e10cSrcweir 52cdf0e10cSrcweir.IF "$(GUI)"=="UNX" 53cdf0e10cSrcweir.IF "$(ENABLE_GTK)" != "" 54cdf0e10cSrcweirSCPDEFS+=-DENABLE_GTK 55cdf0e10cSrcweirPKGCONFIG_MODULES=gtk+-2.0 56cdf0e10cSrcweir.INCLUDE: pkg_config.mk 57cdf0e10cSrcweirGTK_TWO_FOUR=$(shell @+-$(PKG_CONFIG) --exists 'gtk+-2.0 >= 2.4.0' && echo YES) 58cdf0e10cSrcweir.IF "$(GTK_TWO_FOUR)" != "" 59cdf0e10cSrcweirSCPDEFS+=-DGTK_TWO_FOUR 60cdf0e10cSrcweir.ENDIF 61cdf0e10cSrcweir.ENDIF 62cdf0e10cSrcweir.ENDIF # "$(GUI)"=="UNX" 63cdf0e10cSrcweir 64cdf0e10cSrcweir.IF "$(ENABLE_SYSTRAY_GTK)" != "" 65cdf0e10cSrcweirSCPDEFS+=-DENABLE_SYSTRAY_GTK 66cdf0e10cSrcweir.ENDIF 67cdf0e10cSrcweir 68cdf0e10cSrcweir.IF "$(ENABLE_GSTREAMER)" != "" 69cdf0e10cSrcweirSCPDEFS+=-DENABLE_GSTREAMER 70cdf0e10cSrcweir.ENDIF 71cdf0e10cSrcweir 72cdf0e10cSrcweir.IF "$(ENABLE_KDE)" != "" 73cdf0e10cSrcweirSCPDEFS+=-DENABLE_KDE 74cdf0e10cSrcweir.ENDIF 75cdf0e10cSrcweir 76cdf0e10cSrcweir.IF "$(ENABLE_KDE4)" != "" 77cdf0e10cSrcweirSCPDEFS+=-DENABLE_KDE4 78cdf0e10cSrcweir.ENDIF 79cdf0e10cSrcweir 80cdf0e10cSrcweir.IF "$(ENABLE_EVOAB2)" != "" 81cdf0e10cSrcweirSCPDEFS+=-DENABLE_EVOAB2 82cdf0e10cSrcweir.ENDIF 83cdf0e10cSrcweir 84cdf0e10cSrcweir.IF "$(ENABLE_DIRECTX)" != "" 85cdf0e10cSrcweirSCPDEFS+=-DENABLE_DIRECTX 86cdf0e10cSrcweir.ENDIF 87cdf0e10cSrcweir 88cdf0e10cSrcweir.IF "$(SYSTEM_FREETYPE)" == "YES" 89cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_FREETYPE 90cdf0e10cSrcweir.ENDIF 91cdf0e10cSrcweir 92cdf0e10cSrcweir.IF "$(SYSTEM_CAIRO)" == "YES" 93cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_CAIRO 94cdf0e10cSrcweir.ENDIF 95cdf0e10cSrcweir 96cdf0e10cSrcweir.IF "$(ENABLE_CAIRO)" == "YES" 97cdf0e10cSrcweirSCPDEFS+=-DENABLE_CAIRO 98cdf0e10cSrcweir.ENDIF 99cdf0e10cSrcweir 100cdf0e10cSrcweir.IF "$(SYSTEM_LIBXML)" == "YES" 101cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LIBXML 102cdf0e10cSrcweir.ENDIF 103cdf0e10cSrcweir 1040bd633abSJürgen Schmidt.IF "$(SYSTEM_LIBWPD)" == "YES" 1050bd633abSJürgen SchmidtSCPDEFS+=-DSYSTEM_LIBWPD 1060bd633abSJürgen Schmidt.ENDIF 1070bd633abSJürgen Schmidt 108cdf0e10cSrcweir.IF "$(SYSTEM_LIBXSLT)" == "YES" 109cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LIBXSLT 110cdf0e10cSrcweir.ELSE 111cdf0e10cSrcweir.INCLUDE : libxsltversion.mk 112cdf0e10cSrcweirSCPDEFS+=-DLIBXSLT_MAJOR=$(LIBXSLT_MAJOR) 113cdf0e10cSrcweir.ENDIF 114cdf0e10cSrcweir 115cdf0e10cSrcweir.IF "$(WITH_MYSPELL_DICTS)" == "NO" 116cdf0e10cSrcweirSCPDEFS+=-DWITHOUT_MYSPELL_DICTS 117cdf0e10cSrcweir.ENDIF 118cdf0e10cSrcweir 119cc99daadSHerbert Dürr.IF "$(ENABLE_NSS_MODULE)" == "YES" 120cc99daadSHerbert DürrSCPDEFS+=-DENABLE_XMLSEC 121cc99daadSHerbert Dürr .IF "$(SYSTEM_NSS)" != "YES" 122cc99daadSHerbert Dürr SCPDEFS+=-DBUNDLE_NSS_LIBS 123cc99daadSHerbert Dürr .ENDIF 124cc99daadSHerbert Dürr.ENDIF 125cdf0e10cSrcweir 126cdf0e10cSrcweir.IF "$(WITH_LDAP)" == "YES" 127cdf0e10cSrcweirSCPDEFS+=-DWITH_LDAP 128cdf0e10cSrcweir.ENDIF 129cdf0e10cSrcweir 130cdf0e10cSrcweir.IF "$(SYSTEM_CURL)" == "YES" 131cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_CURL 132cdf0e10cSrcweir.ENDIF 133cdf0e10cSrcweir 134cdf0e10cSrcweir.IF "$(SYSTEM_STDLIBS)" == "YES" 135cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_STDLIBS 136cdf0e10cSrcweir.ENDIF 137cdf0e10cSrcweir 138cdf0e10cSrcweir.IF "$(SYSTEM_SNDFILE)" == "YES" 139cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_SNDFILE 140cdf0e10cSrcweir.ENDIF 141cdf0e10cSrcweir 142cdf0e10cSrcweir.IF "$(SYSTEM_PORTAUDIO)" == "YES" 143cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_PORTAUDIO 144cdf0e10cSrcweir.ENDIF 145cdf0e10cSrcweir 146cdf0e10cSrcweir.IF "$(SYSTEM_HUNSPELL)" == "YES" 147cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_HUNSPELL 148cdf0e10cSrcweir.ENDIF 149cdf0e10cSrcweir 150cdf0e10cSrcweir.IF "$(SYSTEM_REDLAND)" == "YES" 151cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_REDLAND 152cdf0e10cSrcweir.ELSE 153cdf0e10cSrcweir.INCLUDE : redlandversion.mk 154cdf0e10cSrcweirSCPDEFS+=\ 155cdf0e10cSrcweir -DRAPTOR_MAJOR=$(RAPTOR_MAJOR) \ 156cdf0e10cSrcweir -DRASQAL_MAJOR=$(RASQAL_MAJOR) \ 157cdf0e10cSrcweir -DREDLAND_MAJOR=$(REDLAND_MAJOR) 158cdf0e10cSrcweir.ENDIF 159cdf0e10cSrcweir 160cdf0e10cSrcweir.IF "$(SYSTEM_BSH)" == "YES" 161cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_BSH -DBSH_JAR=\""file://$(BSH_JAR)"\" 162cdf0e10cSrcweir.ENDIF 163cdf0e10cSrcweir 1649ef65f0eSAndre Fischer.IF "$(ENABLE_BEANSHELL)" == "YES" 1659ef65f0eSAndre FischerSCPDEFS+=-DENABLE_BEANSHELL 1669ef65f0eSAndre Fischer.ENDIF 1679ef65f0eSAndre Fischer 1689ef65f0eSAndre Fischer.IF "$(ENABLE_JAVASCRIPT)" == "YES" 1699ef65f0eSAndre FischerSCPDEFS+=-DENABLE_JAVASCRIPT 1709ef65f0eSAndre Fischer.ENDIF 1719ef65f0eSAndre Fischer 172cdf0e10cSrcweir.IF "$(SYSTEM_HSQLDB)" == "YES" 173cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_HSQLDB -DHSQLDB_JAR=\""file://$(HSQLDB_JAR)"\" 174cdf0e10cSrcweir.ENDIF 175cdf0e10cSrcweir 176cdf0e10cSrcweir.IF "$(SYSTEM_SAXON)" == "YES" 177cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_SAXON -DSAXON_JAR=\""file://$(SAXON_JAR)"\" 178cdf0e10cSrcweir.ENDIF 179cdf0e10cSrcweir 1809ef65f0eSAndre Fischer.IF "$(DISABLE_SAXON)" == "YES" 1810ea1a209SEike RathkeSCPDEFS+=-DDISABLE_SAXON 1820ea1a209SEike Rathke.ENDIF 1830ea1a209SEike Rathke 1840ea1a209SEike Rathke.IF "$(DISABLE_LIBWPD)" == "TRUE" 1850ea1a209SEike RathkeSCPDEFS+=-DDISABLE_LIBWPD 1860ea1a209SEike Rathke.ENDIF 1870ea1a209SEike Rathke 188a44fea77SAriel Constenla-Haile.IF "$(ENABLE_HUNSPELL)" != "YES" 1890ea1a209SEike RathkeSCPDEFS+=-DDISABLE_HUNSPELL 1900ea1a209SEike Rathke.ENDIF 1910ea1a209SEike Rathke 192a44fea77SAriel Constenla-Haile.IF "$(ENABLE_HYPHEN)" != "YES" 1930ea1a209SEike RathkeSCPDEFS+=-DDISABLE_HYPHEN 1940ea1a209SEike Rathke.ENDIF 1950ea1a209SEike Rathke 196cdf0e10cSrcweir.IF "$(JDK)" == "gcj" 197cdf0e10cSrcweirSCPDEFS+=-DGCJ 198cdf0e10cSrcweir.ENDIF 199cdf0e10cSrcweir 200cdf0e10cSrcweir 201cdf0e10cSrcweir.IF "$(ENABLE_CAIRO)" == "TRUE" 202cdf0e10cSrcweirSCPDEFS+=-DENABLE_CAIRO 203cdf0e10cSrcweir.ENDIF 204cdf0e10cSrcweir 205cdf0e10cSrcweir.IF "$(SYSTEM_LUCENE)" == "YES" 206cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LUCENE 207cdf0e10cSrcweir.ENDIF 208cdf0e10cSrcweir 209cdf0e10cSrcweir.IF "$(SYSTEM_ICU)" == "YES" 210cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_ICU 211cdf0e10cSrcweir.ELSE 212cdf0e10cSrcweir.INCLUDE : icuversion.mk 213cdf0e10cSrcweirSCPDEFS+=\ 214cdf0e10cSrcweir -DICU_MAJOR=$(ICU_MAJOR) \ 215cdf0e10cSrcweir -DICU_MINOR=$(ICU_MINOR) \ 216cdf0e10cSrcweir -DICU_MICRO=$(ICU_MICRO) 217cdf0e10cSrcweir.ENDIF 218cdf0e10cSrcweir 219cdf0e10cSrcweirSCPDEFS+=-DISOLANG_MAJOR=$(ISOLANG_MAJOR) 220cdf0e10cSrcweir 221cdf0e10cSrcweir.IF "$(SYSTEM_NEON)" == "YES" 222cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_NEON 223cdf0e10cSrcweir.ENDIF 224cdf0e10cSrcweir 225cdf0e10cSrcweir# if yes or unset (neon not used) -> do not install openssl library! 226*41606ed7SArrigo Marchiori.IF "$(SYSTEM_OPENSSL)" != "YES" 227cdf0e10cSrcweirSCPDEFS+=-DOPENSSL 228cdf0e10cSrcweir.ENDIF 229cdf0e10cSrcweir 230cdf0e10cSrcweir.IF "$(DISABLE_ATL)"!="" 231cdf0e10cSrcweirSCPDEFS+=-DDISABLE_ATL 232cdf0e10cSrcweir.ENDIF 233cdf0e10cSrcweir 234cdf0e10cSrcweir.IF "$(SYSTEM_PYTHON)" == "YES" 235cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_PYTHON 236cdf0e10cSrcweir.ENDIF 237cdf0e10cSrcweir 238cdf0e10cSrcweir.IF "$(SYSTEM_LIBTEXTCAT)" == "YES" 239cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LIBTEXTCAT 240cdf0e10cSrcweir.ENDIF 241cdf0e10cSrcweir 242cdf0e10cSrcweir.IF "$(SYSTEM_LIBTEXTCAT_DATA)" != "" 243cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LIBTEXTCAT_DATA 244cdf0e10cSrcweir.ENDIF 245cdf0e10cSrcweir 246cdf0e10cSrcweir.IF "$(ENABLE_SVCTAGS)" == "YES" 247cdf0e10cSrcweirSCPDEFS+=-DENABLE_SVCTAGS 248cdf0e10cSrcweir.ENDIF 249cdf0e10cSrcweir 2503edd2c3eSJürgen Schmidt.IF "$(WITH_VC_REDIST)" == "YES" 251cdf0e10cSrcweirSCPDEFS+=-DWITH_VC_REDIST 252cdf0e10cSrcweir.ENDIF 253cdf0e10cSrcweir 254cdf0e10cSrcweir.IF "$(MINGW_GCCDLL)"!="" 255cdf0e10cSrcweirSCPDEFS+=-DMINGW_GCCDLL=\""$(MINGW_GCCDLL)"\" 256cdf0e10cSrcweir.ENDIF 257cdf0e10cSrcweir 258cdf0e10cSrcweir.IF "$(MINGW_GXXDLL)"!="" 259cdf0e10cSrcweirSCPDEFS+=-DMINGW_GXXDLL=\""$(MINGW_GXXDLL)"\" 260cdf0e10cSrcweir.ENDIF 261cdf0e10cSrcweir 262cdf0e10cSrcweir.IF "$(SYSTEM_GDKPIXBUF)" == "YES" 263cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_GDKPIXBUF 264cdf0e10cSrcweir.ENDIF 265cdf0e10cSrcweir 266cdf0e10cSrcweir.IF "$(SYSTEM_GETTEXT)" == "YES" 267cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_GETTEXT 268cdf0e10cSrcweir.ENDIF 269cdf0e10cSrcweir 270cdf0e10cSrcweir.IF "$(SYSTEM_GLIB)" == "YES" 271cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_GLIB 272cdf0e10cSrcweir.ENDIF 273cdf0e10cSrcweir 274cdf0e10cSrcweir.IF "$(SYSTEM_LIBJPEG)" == "YES" 275cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LIBJPEG 276cdf0e10cSrcweir.ENDIF 277cdf0e10cSrcweir 278cdf0e10cSrcweir.IF "$(SYSTEM_PANGO)" == "YES" 279cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_PANGO 280cdf0e10cSrcweir.ENDIF 281cdf0e10cSrcweir 28214f5e98eSDon Lewis.IF "$(SYSTEM_APACHE_COMMONS)" == "YES" 28314f5e98eSDon LewisSCPDEFS+=-DSYSTEM_APACHE_COMMONS 28414f5e98eSDon Lewis.ENDIF 28514f5e98eSDon Lewis 2865a7504daSHerbert Dürr.IF "${MACOSX_DEPLOYMENT_TARGET}" != "" 2871e1ac450SHerbert DürrSCPDEFS+=-DMACOSX_DEPLOYMENT_TARGET_NUM=${MACOSX_DEPLOYMENT_TARGET:s/.//} 2885a7504daSHerbert Dürr.ENDIF 289c38a3dfaSAndre Fischer 290c38a3dfaSAndre Fischer# The variables ENABLE_ONLINE_UPDATE, WITHOUT_MATHMLDTD, WITH_CATA_FONTS, WITH_CATB_FONTS, 291c38a3dfaSAndre Fischer# and WITHOUT_PPDS are added (or not) in configure to SCPDEFS. 292c38a3dfaSAndre Fischer 293cdf0e10cSrcweirSCP_PRODUCT_TYPE=osl 294cdf0e10cSrcweir 295cdf0e10cSrcweirICUVERSION_DEPENDENT_FILES= \ 296cdf0e10cSrcweir $(PAR)$/$(SCP_PRODUCT_TYPE)$/file_library_ooo.par \ 297cdf0e10cSrcweir $(PAR)$/$(SCP_PRODUCT_TYPE)$/shortcut_ooo.par 298cdf0e10cSrcweir 299cdf0e10cSrcweirISOLANGVERSION_DEPENDENT_FILES= \ 300cdf0e10cSrcweir $(PAR)$/$(SCP_PRODUCT_TYPE)$/file_library_ooo.par 301cdf0e10cSrcweir 302cdf0e10cSrcweirPARFILES= \ 303cdf0e10cSrcweir installation_ooo.par \ 304cdf0e10cSrcweir scpaction_ooo.par \ 305cdf0e10cSrcweir directory_ooo.par \ 306cdf0e10cSrcweir directory_ooo_macosx.par \ 307cdf0e10cSrcweir datacarrier_ooo.par \ 308cdf0e10cSrcweir file_ooo.par \ 309cdf0e10cSrcweir file_extra_ooo.par \ 310cdf0e10cSrcweir file_font_ooo.par \ 311cdf0e10cSrcweir file_library_ooo.par \ 312cdf0e10cSrcweir file_resource_ooo.par \ 313cdf0e10cSrcweir file_improvement.par \ 314cdf0e10cSrcweir shortcut_ooo.par \ 315cdf0e10cSrcweir module_ooo.par \ 316cdf0e10cSrcweir module_hidden_ooo.par \ 317cdf0e10cSrcweir module_langpack.par \ 318cdf0e10cSrcweir module_lang_template.par \ 319cdf0e10cSrcweir module_java.par \ 320cdf0e10cSrcweir module_systemint.par \ 321cdf0e10cSrcweir module_improvement.par \ 322cdf0e10cSrcweir profile_ooo.par \ 323cdf0e10cSrcweir profileitem_ooo.par \ 324cdf0e10cSrcweir ure.par \ 325cdf0e10cSrcweir ure_into_ooo.par \ 326910823aeSJürgen Schmidt ure_standalone.par \ 327910823aeSJürgen Schmidt common_brand.par \ 328cdf0e10cSrcweir common_brand_readme.par \ 329910823aeSJürgen Schmidt ooo_brand.par 330910823aeSJürgen Schmidt 331cdf0e10cSrcweir 332cdf0e10cSrcweir.IF "$(GUI)"=="WNT" 333cdf0e10cSrcweirPARFILES += \ 334cdf0e10cSrcweir file_jre_ooo.par \ 335cdf0e10cSrcweir folder_ooo.par \ 336cdf0e10cSrcweir folderitem_ooo.par \ 337cdf0e10cSrcweir registryitem_ooo.par \ 338cdf0e10cSrcweir vc_redist.par \ 339cdf0e10cSrcweir windowscustomaction_ooo.par 340cdf0e10cSrcweir.ENDIF 341cdf0e10cSrcweir 342cdf0e10cSrcweirULFFILES= \ 343cdf0e10cSrcweir directory_ooo.ulf \ 344cdf0e10cSrcweir folderitem_ooo.ulf \ 345cdf0e10cSrcweir module_ooo.ulf \ 346cdf0e10cSrcweir module_langpack.ulf \ 347cdf0e10cSrcweir module_java.ulf \ 348cdf0e10cSrcweir registryitem_ooo.ulf \ 349cdf0e10cSrcweir module_systemint.ulf 350cdf0e10cSrcweir 351cdf0e10cSrcweir# --- File --------------------------------------------------------- 352cdf0e10cSrcweir.INCLUDE : target.mk 353cdf0e10cSrcweir 354cdf0e10cSrcweir.IF "$(SYSTEM_ICU)" != "YES" 355cdf0e10cSrcweir$(ICUVERSION_DEPENDENT_FILES) : $(SOLARINCDIR)$/icuversion.mk 356cdf0e10cSrcweir.ENDIF 357cdf0e10cSrcweir 358cdf0e10cSrcweir$(ISOLANGVERSION_DEPENDENT_FILES) : $(SOLARINCDIR)$/i18npool/version.mk 359cdf0e10cSrcweir 360