summaryrefslogtreecommitdiff
path: root/sc/Library_scopencl.mk
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-09-28 23:20:34 +0200
committerTor Lillqvist <tml@collabora.com>2013-09-28 23:27:32 +0200
commitd0fdae78797979949ec7ead20ad52b901c8c7e9a (patch)
tree761e1d397b7a68b3e294f5b6e33b32c105bebfa4 /sc/Library_scopencl.mk
parent9ab2ecd0c6b941b388a69c647c9caed97eb72cca (diff)
Fix OpenCL use on Mac
Don't use glew but just include the <OpenCL/cl.h> which is present in the SDK and link to the OpenCL framework. Change-Id: I3e1c3773078bc5d2550be832a273273d89381dff
Diffstat (limited to 'sc/Library_scopencl.mk')
-rw-r--r--sc/Library_scopencl.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/sc/Library_scopencl.mk b/sc/Library_scopencl.mk
index 2942e4709f68..c2ca1f397189 100644
--- a/sc/Library_scopencl.mk
+++ b/sc/Library_scopencl.mk
@@ -36,7 +36,8 @@ $(eval $(call gb_Library_use_libraries,scopencl,\
$(eval $(call gb_Library_add_exception_objects,scopencl,\
sc/source/core/opencl/formulagroupcl \
sc/source/core/opencl/openclwrapper \
- sc/source/core/opencl/clcc/clew \
+ $(if $(filter-out MACOSX,$(OS)), \
+ sc/source/core/opencl/clcc/clew) \
))
ifeq ($(OS),LINUX)
@@ -45,4 +46,10 @@ $(eval $(call gb_Library_add_libs,scopencl,\
))
endif
+ifeq ($(OS),MACOSX)
+$(eval $(call gb_Library_add_libs,scopencl,\
+ -framework OpenCL \
+))
+endif
+
# vim: set noet sw=4 ts=4: