Kaydet (Commit) 764836cb authored tarafından David Tardon's avatar David Tardon

Revert "No need to have OpenCL optional at configure-time"

As long as this requires bundling clcc, not allowing to disable it is
unacceptable.

This reverts commit 3b0b7646.

Conflicts:
	configure.ac

Change-Id: I12b3d5e3325bbd03cd98e1fb5139705d694493c2
üst b19fefa0
...@@ -1096,6 +1096,10 @@ AC_ARG_ENABLE(cairo-canvas, ...@@ -1096,6 +1096,10 @@ AC_ARG_ENABLE(cairo-canvas,
platforms where Cairo is available. platforms where Cairo is available.
]) ])
AC_ARG_ENABLE(opencl,
AS_HELP_STRING([--disable-opencl],
[Determines whether to build with OpenCL support.]))
AC_ARG_ENABLE(dbus, AC_ARG_ENABLE(dbus,
AS_HELP_STRING([--disable-dbus], AS_HELP_STRING([--disable-dbus],
[Determines whether to enable features that depend on dbus. [Determines whether to enable features that depend on dbus.
...@@ -10263,13 +10267,21 @@ dnl ================================================= ...@@ -10263,13 +10267,21 @@ dnl =================================================
dnl Check whether to build with OpenCL support. dnl Check whether to build with OpenCL support.
dnl ================================================= dnl =================================================
if test $_os != iOS -a $_os != Android; then AC_MSG_CHECKING([whether to build with the OpenCL support.])
ENABLE_OPENCL=
if test $_os != iOS -a $_os != Android -a "x$enable_opencl" != "xno"; then
AC_MSG_RESULT([yes])
# CLCC in BUILD_TYPE tells that we are building a bundled clcc (just the clew part), OPENCL in # CLCC in BUILD_TYPE tells that we are building a bundled clcc (just the clew part), OPENCL in
# BUILD_TYPE tells that OpenCL is potentially available on the platform (optional at run-time, # BUILD_TYPE tells that OpenCL is potentially available on the platform (optional at run-time,
# used through clew). # used through clew).
BUILD_TYPE="$BUILD_TYPE CLCC OPENCL" BUILD_TYPE="$BUILD_TYPE CLCC OPENCL"
ENABLE_OPENCL=TRUE
AC_DEFINE(HAVE_FEATURE_OPENCL) AC_DEFINE(HAVE_FEATURE_OPENCL)
else
AC_MSG_RESULT([no])
fi fi
AC_SUBST(ENABLE_OPENCL)
dnl =================================================================== dnl ===================================================================
dnl Check whether to enable glTF support dnl Check whether to enable glTF support
......
...@@ -15,7 +15,7 @@ $(eval $(call gb_CppunitTest_add_exception_objects,sc_opencl_test, \ ...@@ -15,7 +15,7 @@ $(eval $(call gb_CppunitTest_add_exception_objects,sc_opencl_test, \
$(eval $(call gb_CppunitTest_use_externals,sc_opencl_test, \ $(eval $(call gb_CppunitTest_use_externals,sc_opencl_test, \
boost_headers \ boost_headers \
clew \ $(call gb_Helper_optional,OPENCL,clew) \
mdds_headers \ mdds_headers \
orcus \ orcus \
orcus-parser \ orcus-parser \
......
...@@ -54,7 +54,7 @@ $(eval $(call gb_Module_add_slowcheck_targets,sc, \ ...@@ -54,7 +54,7 @@ $(eval $(call gb_Module_add_slowcheck_targets,sc, \
CppunitTest_sc_subsequent_filters_test \ CppunitTest_sc_subsequent_filters_test \
CppunitTest_sc_subsequent_export_test \ CppunitTest_sc_subsequent_export_test \
CppunitTest_sc_html_export_test \ CppunitTest_sc_html_export_test \
CppunitTest_sc_opencl_test \ $(call gb_Helper_optional,OPENCL,CppunitTest_sc_opencl_test) \
)) ))
# Disabled to allow the check tinderbox execute the sd tests # Disabled to allow the check tinderbox execute the sd tests
......
...@@ -64,8 +64,10 @@ private: ...@@ -64,8 +64,10 @@ private:
OUString toString(sal_Int32 nVal) const; OUString toString(sal_Int32 nVal) const;
SvTreeListEntry *createItem(const OUString &rCaption, const OUString& sValue) const; SvTreeListEntry *createItem(const OUString &rCaption, const OUString& sValue) const;
void setValueAt(size_t nPos, const OUString &rString); void setValueAt(size_t nPos, const OUString &rString);
#if HAVE_FEATURE_OPENCL
OpenCLConfig::ImplMatcherSet& CurrentWhiteOrBlackList(); OpenCLConfig::ImplMatcherSet& CurrentWhiteOrBlackList();
const OpenCLConfig::ImplMatcher& CurrentWhiteOrBlackListEntry(); const OpenCLConfig::ImplMatcher& CurrentWhiteOrBlackListEntry();
#endif
private: private:
SvxCheckListBox* mpLbSettings; SvxCheckListBox* mpLbSettings;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment