diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2020-07-17 22:14:39 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2020-09-11 18:34:48 +0200 |
commit | 63972e79bbb9ea9654e755381641052632b0402c (patch) | |
tree | 090dd6dabcbd11b8aab77376736c3561c408ab6d /configure.ac | |
parent | 114ed73a7ba56e013e6d7f886798915fb20c0946 (diff) |
Fix the minimal build-tools target
The revert commits change the build-tools target for a DESKTOP
build to build the complete LO. This restores the original,
minimal one and also adds a whitelist of allowd build types.
OpenCL needs a configure switch, as it's status is also stored
in a config header, so preventing the build is not enough.
This also reverts:
- commit 802161a505272732566210e9ebbd8fe1b23fb86d
- commit 02d931a59e2966d0c2736db8dee7be3e3dcd6bae
Change-Id: Ibfcb0c54e72da1b7c2e63c082ea6586520a787fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102480
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 66 |
1 files changed, 56 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac index e5b6ab7ca78a..6b7c4562db8e 100644 --- a/configure.ac +++ b/configure.ac @@ -1626,6 +1626,11 @@ AC_ARG_ENABLE(ldap, [Disable LDAP support.]), ,enable_ldap=yes) +AC_ARG_ENABLE(opencl, + AS_HELP_STRING([--disable-opencl], + [Disable OpenCL support.]), +,enable_opencl=yes) + dnl =================================================================== dnl Optional Packages (--with/without-) dnl =================================================================== @@ -3631,7 +3636,9 @@ if test "$_os" = "WINNT"; then WIN_MULTI_ARCH="" WIN_OTHER_ARCH="" fi - else + fi + + if test "$WIN_BUILD_ARCH" = "$WIN_HOST_ARCH"; then MSVC_BUILD_PATH="$COMPATH/bin/Host$WIN_BUILD_ARCH/$WIN_BUILD_ARCH" test_cl_exe "build" "$MSVC_BUILD_PATH" fi @@ -4931,21 +4938,67 @@ if test "$cross_compiling" = "yes"; then sub_conf_opts="$sub_conf_opts $with_build_platform_configure_options" # Don't bother having configure look for stuff not needed for the build platform anyway ./configure \ + --build="$build_alias" \ --disable-cups \ + --disable-firebird-sdbc \ --disable-gpgmepp \ --disable-gstreamer-1-0 \ --disable-gtk3 \ --disable-mariadb-sdbc \ + --disable-online-update \ + --disable-opencl \ + --disable-pch \ --disable-pdfimport \ --disable-postgresql-sdbc \ + --disable-skia \ --enable-icecream="$enable_icecream" \ - --with-parallelism="$with_parallelism" \ --without-doxygen \ --without-java \ + --without-webdav \ + --with-parallelism="$with_parallelism" \ + --with-theme="$with_theme" \ + --with-tls=openssl \ $sub_conf_opts \ --srcdir=$srcdir \ 2>&1 | sed -e 's/^/ /' test -f ./config_host.mk 2>/dev/null || exit + + # filter accepted build types + BUILD_TARGETS_WHITELIST=" + AVMEDIA + BOOST + CLUCENE + DBCONNECTIVITY + DESKTOP + DYNLOADING + EPOXY + EXPAT + GLM + GRAPHITE + HARFBUZZ + ICU + LCMS2 + LIBJPEG_TURBO + LIBLANGTAG + LibO + LIBFFI + LIBPN + LIBXML2 + LIBXSLT + MDDS + NATIVE + OPENSSL + ORCUS + PYTHON + SCRIPTING + ZLIB +" + # converts BUILD_TYPE and whitelist into non-whitespace, newlined lists, to use grep as a filter + BUILD_TARGETS_WHITELIST=$(echo "$BUILD_TARGETS_WHITELIST" | sed -e '/^ *$/d' -e 's/ *//') + BUILD_TARGETS="$(sed -ne '/^export BUILD_TYPE=/ { s/.*=// ; s/ /\n/gp }' config_host.mk)" + BUILD_TARGETS="$(echo "$BUILD_TARGETS" | grep -F "$BUILD_TARGETS_WHITELIST" | tr '\n' ' ')" + sed -i -e "s/ BUILD_TYPE=.*$/ BUILD_TYPE=$BUILD_TARGETS/" config_host.mk + cp config_host.mk ../config_build.mk cp config_host_lang.mk ../config_build_lang.mk mv config.log ../config.Build.log @@ -8823,13 +8876,6 @@ else AC_MSG_RESULT([internal]) SYSTEM_LIBXSLT= BUILD_TYPE="$BUILD_TYPE LIBXSLT" - - if test "$cross_compiling" = "yes"; then - AC_PATH_PROG(XSLTPROC, xsltproc, no) - if test "$XSLTPROC" = "no"; then - AC_MSG_ERROR([xsltproc is required]) - fi - fi fi AC_SUBST(SYSTEM_LIBXSLT) if test -z "$SYSTEM_LIBXSLT_FOR_BUILD"; then @@ -11153,7 +11199,7 @@ dnl ================================================= dnl Check whether to build with OpenCL support. dnl ================================================= -if test $_os != iOS -a $_os != Android -a "$ENABLE_FUZZERS" != "TRUE"; then +if test $_os != iOS -a $_os != Android -a "$ENABLE_FUZZERS" != "TRUE" -a "$enable_opencl" = "yes"; then # OPENCL in BUILD_TYPE and HAVE_FEATURE_OPENCL tell that OpenCL is potentially available on the # platform (optional at run-time, used through clew). BUILD_TYPE="$BUILD_TYPE OPENCL" |