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_KAB)" != "" 81SCPDEFS+=-DENABLE_KAB 82.ENDIF 83 84.IF "$(ENABLE_EVOAB2)" != "" 85SCPDEFS+=-DENABLE_EVOAB2 86.ENDIF 87 88.IF "$(ENABLE_DIRECTX)" != "" 89SCPDEFS+=-DENABLE_DIRECTX 90.ENDIF 91 92.IF "$(SYSTEM_FREETYPE)" == "YES" 93SCPDEFS+=-DSYSTEM_FREETYPE 94.ENDIF 95 96.IF "$(SYSTEM_CAIRO)" == "YES" 97SCPDEFS+=-DSYSTEM_CAIRO 98.ENDIF 99 100.IF "$(ENABLE_CAIRO)" == "YES" 101SCPDEFS+=-DENABLE_CAIRO 102.ENDIF 103 104.IF "$(SYSTEM_LIBXML)" == "YES" 105SCPDEFS+=-DSYSTEM_LIBXML 106.ENDIF 107 108.IF "$(SYSTEM_LIBWPD)" == "YES" 109SCPDEFS+=-DSYSTEM_LIBWPD 110.ENDIF 111 112.IF "$(SYSTEM_LIBXSLT)" == "YES" 113SCPDEFS+=-DSYSTEM_LIBXSLT 114.ELSE 115.INCLUDE : libxsltversion.mk 116SCPDEFS+=-DLIBXSLT_MAJOR=$(LIBXSLT_MAJOR) 117.ENDIF 118 119.IF "$(USE_SYSTEM_STL)" == "YES" || "$(STLPORT4)" != "NO_STLPORT4" 120SCPDEFS+=-DUSE_SYSTEM_STL 121.ENDIF 122 123.IF "$(WITH_MYSPELL_DICTS)" == "NO" 124SCPDEFS+=-DWITHOUT_MYSPELL_DICTS 125.ENDIF 126 127.IF "$(ENABLE_NSS_MODULE)" == "YES" 128SCPDEFS+=-DENABLE_XMLSEC 129 .IF "$(SYSTEM_NSS)" != "YES" 130 SCPDEFS+=-DBUNDLE_NSS_LIBS 131 .ENDIF 132.ENDIF 133 134.IF "$(WITH_LDAP)" == "YES" 135SCPDEFS+=-DWITH_LDAP 136.ENDIF 137 138.IF "$(SYSTEM_CURL)" == "YES" 139SCPDEFS+=-DSYSTEM_CURL 140.ENDIF 141 142.IF "$(SYSTEM_STDLIBS)" == "YES" 143SCPDEFS+=-DSYSTEM_STDLIBS 144.ENDIF 145 146.IF "$(SYSTEM_SNDFILE)" == "YES" 147SCPDEFS+=-DSYSTEM_SNDFILE 148.ENDIF 149 150.IF "$(SYSTEM_PORTAUDIO)" == "YES" 151SCPDEFS+=-DSYSTEM_PORTAUDIO 152.ENDIF 153 154.IF "$(SYSTEM_HUNSPELL)" == "YES" 155SCPDEFS+=-DSYSTEM_HUNSPELL 156.ENDIF 157 158.IF "$(SYSTEM_REDLAND)" == "YES" 159SCPDEFS+=-DSYSTEM_REDLAND 160.ELSE 161.INCLUDE : redlandversion.mk 162SCPDEFS+=\ 163 -DRAPTOR_MAJOR=$(RAPTOR_MAJOR) \ 164 -DRASQAL_MAJOR=$(RASQAL_MAJOR) \ 165 -DREDLAND_MAJOR=$(REDLAND_MAJOR) 166.ENDIF 167 168.IF "$(SYSTEM_BSH)" == "YES" 169SCPDEFS+=-DSYSTEM_BSH -DBSH_JAR=\""file://$(BSH_JAR)"\" 170.ENDIF 171 172.IF "$(ENABLE_BEANSHELL)" == "YES" 173SCPDEFS+=-DENABLE_BEANSHELL 174.ENDIF 175 176.IF "$(ENABLE_JAVASCRIPT)" == "YES" 177SCPDEFS+=-DENABLE_JAVASCRIPT 178.ENDIF 179 180.IF "$(SYSTEM_HSQLDB)" == "YES" 181SCPDEFS+=-DSYSTEM_HSQLDB -DHSQLDB_JAR=\""file://$(HSQLDB_JAR)"\" 182.ENDIF 183 184.IF "$(SYSTEM_SAXON)" == "YES" 185SCPDEFS+=-DSYSTEM_SAXON -DSAXON_JAR=\""file://$(SAXON_JAR)"\" 186.ENDIF 187 188.IF "$(DISABLE_SAXON)" == "YES" 189SCPDEFS+=-DDISABLE_SAXON 190.ENDIF 191 192.IF "$(DISABLE_LIBWPD)" == "TRUE" 193SCPDEFS+=-DDISABLE_LIBWPD 194.ENDIF 195 196.IF "$(ENABLE_HUNSPELL)" != "YES" 197SCPDEFS+=-DDISABLE_HUNSPELL 198.ENDIF 199 200.IF "$(ENABLE_HYPHEN)" != "YES" 201SCPDEFS+=-DDISABLE_HYPHEN 202.ENDIF 203 204.IF "$(JDK)" == "gcj" 205SCPDEFS+=-DGCJ 206.ENDIF 207 208 209.IF "$(ENABLE_CAIRO)" == "TRUE" 210SCPDEFS+=-DENABLE_CAIRO 211.ENDIF 212 213.IF "$(SYSTEM_LUCENE)" == "YES" 214SCPDEFS+=-DSYSTEM_LUCENE 215.ENDIF 216 217.IF "$(SYSTEM_ICU)" == "YES" 218SCPDEFS+=-DSYSTEM_ICU 219.ELSE 220.INCLUDE : icuversion.mk 221SCPDEFS+=\ 222 -DICU_MAJOR=$(ICU_MAJOR) \ 223 -DICU_MINOR=$(ICU_MINOR) \ 224 -DICU_MICRO=$(ICU_MICRO) 225.ENDIF 226 227SCPDEFS+=-DISOLANG_MAJOR=$(ISOLANG_MAJOR) 228 229.IF "$(SYSTEM_NEON)" == "YES" 230SCPDEFS+=-DSYSTEM_NEON 231.ENDIF 232 233# if yes or unset (neon not used) -> do not install openssl library! 234.IF $(SYSTEM_OPENSSL) != "YES" 235SCPDEFS+=-DOPENSSL 236.ENDIF 237 238.IF "$(DISABLE_ATL)"!="" 239SCPDEFS+=-DDISABLE_ATL 240.ENDIF 241 242# Detect version numbers for apr, apr-util, serf. 243.IF "$(SYSTEM_APR)"!="YES" 244.INCLUDE : apr_version.mk 245SCPDEFS+=\ 246 -DAPR_MAJOR=$(APR_MAJOR) \ 247 -DAPR_MINOR=$(APR_MINOR) \ 248 -DAPR_MICRO=$(APR_MICRO) 249.ENDIF 250.IF "$(SYSTEM_APR_UTIL)"!="YES" 251.INCLUDE : aprutil_version.mk 252SCPDEFS+=\ 253 -DAPR_UTIL_MAJOR=$(APR_UTIL_MAJOR) \ 254 -DAPR_UTIL_MINOR=$(APR_UTIL_MINOR) \ 255 -DAPR_UTIL_MICRO=$(APR_UTIL_MICRO) 256.ENDIF 257.IF "$(SYSTEM_SERF)"!="YES" 258.INCLUDE : serf_version.mk 259SCPDEFS+=\ 260 -DSERF_MAJOR=$(SERF_MAJOR) \ 261 -DSERF_MINOR=$(SERF_MINOR) \ 262 -DSERF_MICRO=$(SERF_MICRO) 263.ENDIF 264 265.IF "$(SYSTEM_PYTHON)" == "YES" 266SCPDEFS+=-DSYSTEM_PYTHON 267.ENDIF 268 269.IF "$(SYSTEM_LIBTEXTCAT)" == "YES" 270SCPDEFS+=-DSYSTEM_LIBTEXTCAT 271.ENDIF 272 273.IF "$(SYSTEM_LIBTEXTCAT_DATA)" != "" 274SCPDEFS+=-DSYSTEM_LIBTEXTCAT_DATA 275.ENDIF 276 277.IF "$(ENABLE_SVCTAGS)" == "YES" 278SCPDEFS+=-DENABLE_SVCTAGS 279.ENDIF 280 281.IF "$(WITH_VC_REDIST)" == "YES" 282SCPDEFS+=-DWITH_VC_REDIST 283.ENDIF 284 285.IF "$(MINGW_GCCDLL)"!="" 286SCPDEFS+=-DMINGW_GCCDLL=\""$(MINGW_GCCDLL)"\" 287.ENDIF 288 289.IF "$(MINGW_GXXDLL)"!="" 290SCPDEFS+=-DMINGW_GXXDLL=\""$(MINGW_GXXDLL)"\" 291.ENDIF 292 293.IF "$(SYSTEM_GDKPIXBUF)" == "YES" 294SCPDEFS+=-DSYSTEM_GDKPIXBUF 295.ENDIF 296 297.IF "$(SYSTEM_GETTEXT)" == "YES" 298SCPDEFS+=-DSYSTEM_GETTEXT 299.ENDIF 300 301.IF "$(SYSTEM_GLIB)" == "YES" 302SCPDEFS+=-DSYSTEM_GLIB 303.ENDIF 304 305.IF "$(SYSTEM_LIBJPEG)" == "YES" 306SCPDEFS+=-DSYSTEM_LIBJPEG 307.ENDIF 308 309.IF "$(SYSTEM_PANGO)" == "YES" 310SCPDEFS+=-DSYSTEM_PANGO 311.ENDIF 312 313 314# The variables ENABLE_ONLINE_UPDATE, WITHOUT_MATHMLDTD, WITH_CATA_FONTS, WITH_CATB_FONTS, 315# and WITHOUT_PPDS are added (or not) in configure to SCPDEFS. 316 317SCP_PRODUCT_TYPE=osl 318 319ICUVERSION_DEPENDENT_FILES= \ 320 $(PAR)$/$(SCP_PRODUCT_TYPE)$/file_library_ooo.par \ 321 $(PAR)$/$(SCP_PRODUCT_TYPE)$/shortcut_ooo.par 322 323ISOLANGVERSION_DEPENDENT_FILES= \ 324 $(PAR)$/$(SCP_PRODUCT_TYPE)$/file_library_ooo.par 325 326PARFILES= \ 327 installation_ooo.par \ 328 scpaction_ooo.par \ 329 directory_ooo.par \ 330 directory_ooo_macosx.par \ 331 datacarrier_ooo.par \ 332 file_ooo.par \ 333 file_extra_ooo.par \ 334 file_font_ooo.par \ 335 file_library_ooo.par \ 336 file_resource_ooo.par \ 337 file_improvement.par \ 338 shortcut_ooo.par \ 339 module_ooo.par \ 340 module_hidden_ooo.par \ 341 module_langpack.par \ 342 module_lang_template.par \ 343 module_java.par \ 344 module_systemint.par \ 345 module_improvement.par \ 346 profile_ooo.par \ 347 profileitem_ooo.par \ 348 ure.par \ 349 ure_into_ooo.par \ 350 ure_standalone.par \ 351 common_brand.par \ 352 common_brand_readme.par \ 353 ooo_brand.par 354 355 356.IF "$(GUI)"=="WNT" 357PARFILES += \ 358 file_jre_ooo.par \ 359 folder_ooo.par \ 360 folderitem_ooo.par \ 361 registryitem_ooo.par \ 362 vc_redist.par \ 363 windowscustomaction_ooo.par 364.ENDIF 365 366ULFFILES= \ 367 directory_ooo.ulf \ 368 folderitem_ooo.ulf \ 369 module_ooo.ulf \ 370 module_langpack.ulf \ 371 module_java.ulf \ 372 registryitem_ooo.ulf \ 373 module_systemint.ulf 374 375# --- File --------------------------------------------------------- 376.INCLUDE : target.mk 377 378.IF "$(SYSTEM_ICU)" != "YES" 379$(ICUVERSION_DEPENDENT_FILES) : $(SOLARINCDIR)$/icuversion.mk 380.ENDIF 381 382$(ISOLANGVERSION_DEPENDENT_FILES) : $(SOLARINCDIR)$/i18npool/version.mk 383 384