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 23PRJ=..$/.. 24 25PRJPCH= 26 27PRJNAME=scp2 28TARGET=ooo 29TARGETTYPE=CUI 30 31# --- Settings ----------------------------------------------------- 32 33.INCLUDE : settings.mk 34.INCLUDE : i18npool/version.mk 35 36.IF "$(COM)" == "MSC" 37SCPDEFS+=-D_MSC 38.ENDIF 39 40.IF "$(BUILD_SPECIAL)"!="" 41SCPDEFS+=-DBUILD_SPECIAL 42.ENDIF 43 44.IF "$(BUILD_X64)"!="" 45SCPDEFS+=-DBUILD_X64 46.ENDIF 47 48.IF "$(PROF_EDITION)"!="" 49SCPDEFS+=-DPROF_EDITION 50.ENDIF 51 52.IF "$(GUI)"=="UNX" 53.IF "$(ENABLE_GTK)" != "" 54SCPDEFS+=-DENABLE_GTK 55PKGCONFIG_MODULES=gtk+-2.0 56.INCLUDE: pkg_config.mk 57GTK_TWO_FOUR=$(shell @+-$(PKG_CONFIG) --exists 'gtk+-2.0 >= 2.4.0' && echo YES) 58.IF "$(GTK_TWO_FOUR)" != "" 59SCPDEFS+=-DGTK_TWO_FOUR 60.ENDIF 61.ENDIF 62.ENDIF # "$(GUI)"=="UNX" 63 64.IF "$(ENABLE_SYSTRAY_GTK)" != "" 65SCPDEFS+=-DENABLE_SYSTRAY_GTK 66.ENDIF 67 68.IF "$(ENABLE_GSTREAMER)" != "" 69SCPDEFS+=-DENABLE_GSTREAMER 70.ENDIF 71 72.IF "$(ENABLE_KDE)" != "" 73SCPDEFS+=-DENABLE_KDE 74.ENDIF 75 76.IF "$(ENABLE_KDE4)" != "" 77SCPDEFS+=-DENABLE_KDE4 78.ENDIF 79 80.IF "$(ENABLE_EVOAB2)" != "" 81SCPDEFS+=-DENABLE_EVOAB2 82.ENDIF 83 84.IF "$(ENABLE_DIRECTX)" != "" 85SCPDEFS+=-DENABLE_DIRECTX 86.ENDIF 87 88.IF "$(SYSTEM_FREETYPE)" == "YES" 89SCPDEFS+=-DSYSTEM_FREETYPE 90.ENDIF 91 92.IF "$(SYSTEM_CAIRO)" == "YES" 93SCPDEFS+=-DSYSTEM_CAIRO 94.ENDIF 95 96.IF "$(ENABLE_CAIRO)" == "YES" 97SCPDEFS+=-DENABLE_CAIRO 98.ENDIF 99 100.IF "$(SYSTEM_LIBXML)" == "YES" 101SCPDEFS+=-DSYSTEM_LIBXML 102.ENDIF 103 104.IF "$(SYSTEM_LIBWPD)" == "YES" 105SCPDEFS+=-DSYSTEM_LIBWPD 106.ENDIF 107 108.IF "$(SYSTEM_LIBXSLT)" == "YES" 109SCPDEFS+=-DSYSTEM_LIBXSLT 110.ELSE 111.INCLUDE : libxsltversion.mk 112SCPDEFS+=-DLIBXSLT_MAJOR=$(LIBXSLT_MAJOR) 113.ENDIF 114 115.IF "$(WITH_MYSPELL_DICTS)" == "NO" 116SCPDEFS+=-DWITHOUT_MYSPELL_DICTS 117.ENDIF 118 119.IF "$(ENABLE_NSS_MODULE)" == "YES" 120SCPDEFS+=-DENABLE_XMLSEC 121 .IF "$(SYSTEM_NSS)" != "YES" 122 SCPDEFS+=-DBUNDLE_NSS_LIBS 123 .ENDIF 124.ENDIF 125 126.IF "$(WITH_LDAP)" == "YES" 127SCPDEFS+=-DWITH_LDAP 128.ENDIF 129 130.IF "$(SYSTEM_CURL)" == "YES" 131SCPDEFS+=-DSYSTEM_CURL 132.ENDIF 133 134.IF "$(SYSTEM_STDLIBS)" == "YES" 135SCPDEFS+=-DSYSTEM_STDLIBS 136.ENDIF 137 138.IF "$(SYSTEM_SNDFILE)" == "YES" 139SCPDEFS+=-DSYSTEM_SNDFILE 140.ENDIF 141 142.IF "$(SYSTEM_PORTAUDIO)" == "YES" 143SCPDEFS+=-DSYSTEM_PORTAUDIO 144.ENDIF 145 146.IF "$(SYSTEM_HUNSPELL)" == "YES" 147SCPDEFS+=-DSYSTEM_HUNSPELL 148.ENDIF 149 150.IF "$(SYSTEM_REDLAND)" == "YES" 151SCPDEFS+=-DSYSTEM_REDLAND 152.ELSE 153.INCLUDE : redlandversion.mk 154SCPDEFS+=\ 155 -DRAPTOR_MAJOR=$(RAPTOR_MAJOR) \ 156 -DRASQAL_MAJOR=$(RASQAL_MAJOR) \ 157 -DREDLAND_MAJOR=$(REDLAND_MAJOR) 158.ENDIF 159 160.IF "$(SYSTEM_BSH)" == "YES" 161SCPDEFS+=-DSYSTEM_BSH -DBSH_JAR=\""file://$(BSH_JAR)"\" 162.ENDIF 163 164.IF "$(ENABLE_BEANSHELL)" == "YES" 165SCPDEFS+=-DENABLE_BEANSHELL 166.ENDIF 167 168.IF "$(ENABLE_JAVASCRIPT)" == "YES" 169SCPDEFS+=-DENABLE_JAVASCRIPT 170.ENDIF 171 172.IF "$(SYSTEM_HSQLDB)" == "YES" 173SCPDEFS+=-DSYSTEM_HSQLDB -DHSQLDB_JAR=\""file://$(HSQLDB_JAR)"\" 174.ENDIF 175 176.IF "$(SYSTEM_SAXON)" == "YES" 177SCPDEFS+=-DSYSTEM_SAXON -DSAXON_JAR=\""file://$(SAXON_JAR)"\" 178.ENDIF 179 180.IF "$(DISABLE_SAXON)" == "YES" 181SCPDEFS+=-DDISABLE_SAXON 182.ENDIF 183 184.IF "$(DISABLE_LIBWPD)" == "TRUE" 185SCPDEFS+=-DDISABLE_LIBWPD 186.ENDIF 187 188.IF "$(ENABLE_HUNSPELL)" != "YES" 189SCPDEFS+=-DDISABLE_HUNSPELL 190.ENDIF 191 192.IF "$(ENABLE_HYPHEN)" != "YES" 193SCPDEFS+=-DDISABLE_HYPHEN 194.ENDIF 195 196.IF "$(JDK)" == "gcj" 197SCPDEFS+=-DGCJ 198.ENDIF 199 200 201.IF "$(ENABLE_CAIRO)" == "TRUE" 202SCPDEFS+=-DENABLE_CAIRO 203.ENDIF 204 205.IF "$(SYSTEM_LUCENE)" == "YES" 206SCPDEFS+=-DSYSTEM_LUCENE 207.ENDIF 208 209.IF "$(SYSTEM_ICU)" == "YES" 210SCPDEFS+=-DSYSTEM_ICU 211.ELSE 212.INCLUDE : icuversion.mk 213SCPDEFS+=\ 214 -DICU_MAJOR=$(ICU_MAJOR) \ 215 -DICU_MINOR=$(ICU_MINOR) \ 216 -DICU_MICRO=$(ICU_MICRO) 217.ENDIF 218 219SCPDEFS+=-DISOLANG_MAJOR=$(ISOLANG_MAJOR) 220 221.IF "$(SYSTEM_NEON)" == "YES" 222SCPDEFS+=-DSYSTEM_NEON 223.ENDIF 224 225# if yes or unset (neon not used) -> do not install openssl library! 226.IF "$(SYSTEM_OPENSSL)" != "YES" 227SCPDEFS+=-DOPENSSL 228.ENDIF 229 230.IF "$(DISABLE_ATL)"!="" 231SCPDEFS+=-DDISABLE_ATL 232.ENDIF 233 234.IF "$(SYSTEM_PYTHON)" == "YES" 235SCPDEFS+=-DSYSTEM_PYTHON 236.ENDIF 237 238.IF "$(SYSTEM_LIBTEXTCAT)" == "YES" 239SCPDEFS+=-DSYSTEM_LIBTEXTCAT 240.ENDIF 241 242.IF "$(SYSTEM_LIBTEXTCAT_DATA)" != "" 243SCPDEFS+=-DSYSTEM_LIBTEXTCAT_DATA 244.ENDIF 245 246.IF "$(ENABLE_SVCTAGS)" == "YES" 247SCPDEFS+=-DENABLE_SVCTAGS 248.ENDIF 249 250.IF "$(WITH_VC_REDIST)" == "YES" 251SCPDEFS+=-DWITH_VC_REDIST 252.ENDIF 253 254.IF "$(MINGW_GCCDLL)"!="" 255SCPDEFS+=-DMINGW_GCCDLL=\""$(MINGW_GCCDLL)"\" 256.ENDIF 257 258.IF "$(MINGW_GXXDLL)"!="" 259SCPDEFS+=-DMINGW_GXXDLL=\""$(MINGW_GXXDLL)"\" 260.ENDIF 261 262.IF "$(SYSTEM_GDKPIXBUF)" == "YES" 263SCPDEFS+=-DSYSTEM_GDKPIXBUF 264.ENDIF 265 266.IF "$(SYSTEM_GETTEXT)" == "YES" 267SCPDEFS+=-DSYSTEM_GETTEXT 268.ENDIF 269 270.IF "$(SYSTEM_GLIB)" == "YES" 271SCPDEFS+=-DSYSTEM_GLIB 272.ENDIF 273 274.IF "$(SYSTEM_LIBJPEG)" == "YES" 275SCPDEFS+=-DSYSTEM_LIBJPEG 276.ENDIF 277 278.IF "$(SYSTEM_PANGO)" == "YES" 279SCPDEFS+=-DSYSTEM_PANGO 280.ENDIF 281 282.IF "$(SYSTEM_APACHE_COMMONS)" == "YES" 283SCPDEFS+=-DSYSTEM_APACHE_COMMONS 284.ENDIF 285 286.IF "${MACOSX_DEPLOYMENT_TARGET}" != "" 287SCPDEFS+=-DMACOSX_DEPLOYMENT_TARGET_NUM=${MACOSX_DEPLOYMENT_TARGET:s/.//} 288.ENDIF 289 290# The variables ENABLE_ONLINE_UPDATE, WITHOUT_MATHMLDTD, WITH_CATA_FONTS, WITH_CATB_FONTS, 291# and WITHOUT_PPDS are added (or not) in configure to SCPDEFS. 292 293SCP_PRODUCT_TYPE=osl 294 295ICUVERSION_DEPENDENT_FILES= \ 296 $(PAR)$/$(SCP_PRODUCT_TYPE)$/file_library_ooo.par \ 297 $(PAR)$/$(SCP_PRODUCT_TYPE)$/shortcut_ooo.par 298 299ISOLANGVERSION_DEPENDENT_FILES= \ 300 $(PAR)$/$(SCP_PRODUCT_TYPE)$/file_library_ooo.par 301 302PARFILES= \ 303 installation_ooo.par \ 304 scpaction_ooo.par \ 305 directory_ooo.par \ 306 directory_ooo_macosx.par \ 307 datacarrier_ooo.par \ 308 file_ooo.par \ 309 file_extra_ooo.par \ 310 file_font_ooo.par \ 311 file_library_ooo.par \ 312 file_resource_ooo.par \ 313 file_improvement.par \ 314 shortcut_ooo.par \ 315 module_ooo.par \ 316 module_hidden_ooo.par \ 317 module_langpack.par \ 318 module_lang_template.par \ 319 module_java.par \ 320 module_systemint.par \ 321 module_improvement.par \ 322 profile_ooo.par \ 323 profileitem_ooo.par \ 324 ure.par \ 325 ure_into_ooo.par \ 326 ure_standalone.par \ 327 common_brand.par \ 328 common_brand_readme.par \ 329 ooo_brand.par 330 331 332.IF "$(GUI)"=="WNT" 333PARFILES += \ 334 file_jre_ooo.par \ 335 folder_ooo.par \ 336 folderitem_ooo.par \ 337 registryitem_ooo.par \ 338 vc_redist.par \ 339 windowscustomaction_ooo.par 340.ENDIF 341 342ULFFILES= \ 343 directory_ooo.ulf \ 344 folderitem_ooo.ulf \ 345 module_ooo.ulf \ 346 module_langpack.ulf \ 347 module_java.ulf \ 348 registryitem_ooo.ulf \ 349 module_systemint.ulf 350 351# --- File --------------------------------------------------------- 352.INCLUDE : target.mk 353 354.IF "$(SYSTEM_ICU)" != "YES" 355$(ICUVERSION_DEPENDENT_FILES) : $(SOLARINCDIR)$/icuversion.mk 356.ENDIF 357 358$(ISOLANGVERSION_DEPENDENT_FILES) : $(SOLARINCDIR)$/i18npool/version.mk 359 360