Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
03f548e6
Kaydet (Commit)
03f548e6
authored
Eyl 11, 2013
tarafından
Kohei Yoshida
Kaydeden (comit)
Markus Mohrhard
Eyl 19, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Allow enable / disable opencl at build time.
Change-Id: I65e2a71aae8317930d1575e7d82c11c3fd2b74de
üst
f1717208
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
3 deletions
+43
-3
Repository.mk
Repository.mk
+1
-1
config_host.mk.in
config_host.mk.in
+1
-0
config_features.h.in
config_host/config_features.h.in
+7
-0
configure.ac
configure.ac
+24
-0
Module_sc.mk
sc/Module_sc.mk
+6
-1
formulagroup.cxx
sc/source/core/tool/formulagroup.cxx
+2
-1
calcoptionsdlg.cxx
sc/source/ui/optdlg/calcoptionsdlg.cxx
+2
-0
No files found.
Repository.mk
Dosyayı görüntüle @
03f548e6
...
...
@@ -155,9 +155,9 @@ $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,calc, \
sc \
scd \
scfilt \
scopencl \
scui \
solver \
$(if $(ENABLE_OPENCL),scopencl) \
$(if $(DISABLE_SCRIPTING),,vbaobj) \
$(if $(ENABLE_TELEPATHY),tubes) \
))
...
...
config_host.mk.in
Dosyayı görüntüle @
03f548e6
...
...
@@ -147,6 +147,7 @@ export ENABLE_NPAPI_INTO_BROWSER=@ENABLE_NPAPI_INTO_BROWSER@
export ENABLE_ONLINE_UPDATE=@ENABLE_ONLINE_UPDATE@
export ENABLE_OOENV=@ENABLE_OOENV@
export ENABLE_OPENGL=@ENABLE_OPENGL@
export ENABLE_OPENCL=@ENABLE_OPENCL@
export ENABLE_PACKAGEKIT=@ENABLE_PACKAGEKIT@
export ENABLE_PCH=@ENABLE_PCH@
export ENABLE_PDFIMPORT=@ENABLE_PDFIMPORT@
...
...
config_host/config_features.h.in
Dosyayı görüntüle @
03f548e6
...
...
@@ -67,6 +67,13 @@
#define HAVE_FEATURE_MULTIUSER_ENVIRONMENT 0
/*
* Whether we have the OpenCL headers and should compile in any
* support for that abstraction.
*/
#define HAVE_FEATURE_OPENCL 0
/*
* Whether the OS has Avahi support,
* This library is used for zeroconf service publication on the local network
...
...
configure.ac
Dosyayı görüntüle @
03f548e6
...
...
@@ -917,6 +917,10 @@ AC_ARG_ENABLE(opengl,
AS_HELP_STRING([--disable-opengl],
[Determines whether to build the OpenGL 3D slide transitions component.]))
AC_ARG_ENABLE(opencl,
AS_HELP_STRING([--disable-opencl],
[Determines whether to build with OpenCL support.]))
AC_ARG_ENABLE(dbus,
AS_HELP_STRING([--disable-dbus],
[Determines whether to enable features that depend on dbus.
...
...
@@ -10222,6 +10226,26 @@ fi
AC_SUBST(SYSTEM_MESA_HEADERS)
AC_SUBST(ENABLE_OPENGL)
dnl =================================================
dnl Check whether to build with OpenCL support.
dnl =================================================
AC_MSG_CHECKING([whether to build with the OpenCL support.])
ENABLE_OPENCL=
if test "x$enable_opencl" != "xno"; then
AC_MSG_RESULT([yes])
enable_opencl=yes
ENABLE_OPENCL=TRUE
AC_DEFINE(HAVE_FEATURE_OPENCL)
else
AC_MSG_RESULT([no])
enable_opencl=no
ENABLE_OPENCL=FALSE
fi
AC_SUBST(ENABLE_OPENCL)
# presenter minimizer extension?
AC_MSG_CHECKING([whether to build the Presentation Minimizer extension])
if test "x$enable_ext_presenter_minimizer" != "xno" -a "x$enable_extension_integration" != "xno"; then
...
...
sc/Module_sc.mk
Dosyayı görüntüle @
03f548e6
...
...
@@ -15,11 +15,16 @@ $(eval $(call gb_Module_add_targets,sc,\
Library_sc \
Library_scd \
Library_scfilt \
Library_scopencl \
Library_scui \
UIConfig_scalc \
))
ifeq ($(ENABLE_OPENCL),TRUE)
$(eval $(call gb_Module_add_targets,sc,\
Library_scopencl \
))
endif
ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
$(eval $(call gb_Module_add_targets,sc,\
Library_scqahelper \
...
...
sc/source/core/tool/formulagroup.cxx
Dosyayı görüntüle @
03f548e6
...
...
@@ -358,6 +358,7 @@ FormulaGroupInterpreter *FormulaGroupInterpreter::getStatic()
if
(
!
msInstance
)
{
#if HAVE_FEATURE_OPENCL
if
(
ScInterpreter
::
GetGlobalConfig
().
mbOpenCLEnabled
)
{
#ifdef DISABLE_DYNLOADING
...
...
@@ -382,7 +383,7 @@ FormulaGroupInterpreter *FormulaGroupInterpreter::getStatic()
msInstance
=
new
sc
::
FormulaGroupInterpreterOpenCLMissing
();
#endif
}
#endif
if
(
!
msInstance
)
// software fallback
{
fprintf
(
stderr
,
"Create S/W interp
\n
"
);
...
...
sc/source/ui/optdlg/calcoptionsdlg.cxx
Dosyayı görüntüle @
03f548e6
...
...
@@ -196,7 +196,9 @@ void ScCalcOptionsDialog::FillOptionsList()
}
pModel
->
Insert
(
createBoolItem
(
maCaptionEmptyStringAsZero
,
maConfig
.
mbEmptyStringAsZero
));
#if HAVE_FEATURE_OPENCL
pModel
->
Insert
(
createBoolItem
(
maCaptionOpenCLEnabled
,
maConfig
.
mbOpenCLEnabled
));
#endif
mpLbSettings
->
SetUpdateMode
(
true
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment