summaryrefslogtreecommitdiff
path: root/sc/Library_sc.mk
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-10-29 14:45:48 +0200
committerTor Lillqvist <tml@collabora.com>2014-10-29 15:29:22 +0200
commit28561633d82df4f7909b6d8211d4bff2912f1bd6 (patch)
tree48f5b2c6d1597447e6124418bda1452a16906190 /sc/Library_sc.mk
parent20860044c4a8c990a0b734c5a8eb63de4ab03260 (diff)
Don't bother with a separate dynamically loaded scopencl library
Just link that code into the sc library. We use clew anyway to handle optoinal presence of OpenCL at run-time. This is a straightforward change for now. Could be cleaner; we could get rid of the fairly pointless wrappers in sc/source/core/opencl/formulagroupcl.cxx for instance. Change-Id: I23215c6516ef04698f6891e2a7fc6611dc83b37a
Diffstat (limited to 'sc/Library_sc.mk')
-rw-r--r--sc/Library_sc.mk33
1 files changed, 33 insertions, 0 deletions
diff --git a/sc/Library_sc.mk b/sc/Library_sc.mk
index 5a7c03b96313..364872083a0f 100644
--- a/sc/Library_sc.mk
+++ b/sc/Library_sc.mk
@@ -655,6 +655,39 @@ $(eval $(call gb_Library_add_exception_objects,sc,\
sc/source/ui/xmlsource/xmlsourcedlg \
))
+ifneq (,$(ENABLE_OPENCL))
+
+$(eval $(call gb_Library_add_exception_objects,sc,\
+ sc/source/core/opencl/formulagroupcl \
+ sc/source/core/opencl/openclwrapper \
+ sc/source/core/opencl/opencl_device \
+ sc/source/core/opencl/opbase \
+ sc/source/core/opencl/op_financial \
+ sc/source/core/opencl/op_database \
+ sc/source/core/opencl/op_math \
+ sc/source/core/opencl/op_addin \
+ sc/source/core/opencl/op_statistical \
+ sc/source/core/opencl/op_array \
+ sc/source/core/opencl/op_logical \
+ sc/source/core/opencl/op_spreadsheet \
+ sc/source/core/opencl/clcc/clew \
+))
+
+ifeq ($(OS),LINUX)
+$(eval $(call gb_Library_add_libs,sc,\
+ -ldl \
+ -lrt \
+))
+endif
+
+ifeq ($(OS),MACOSX)
+$(eval $(call gb_Library_add_libs,sc,\
+ -framework OpenCL \
+))
+endif
+
+endif
+
$(eval $(call gb_SdiTarget_SdiTarget,sc/sdi/scslots,sc/sdi/scalc))
$(eval $(call gb_SdiTarget_set_include,sc/sdi/scslots,\