summaryrefslogtreecommitdiffstats
path: root/macosx/module.defs
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/module.defs')
-rw-r--r--macosx/module.defs5
1 files changed, 5 insertions, 0 deletions
diff --git a/macosx/module.defs b/macosx/module.defs
index 5d22164f6..39edaa405 100644
--- a/macosx/module.defs
+++ b/macosx/module.defs
@@ -25,6 +25,10 @@ MACOSX.map.g.min = debug
MACOSX.map.g.std = debug
MACOSX.map.g.max = debug
+ifeq (1,$(FEATURE.opencl))
+MACOSX.extra_cflags = OTHER_CFLAGS='-DUSE_OPENCL'
+endif
+
ifeq (1,$(FEATURE.fdk_aac))
extra_libs += $(abspath $(BUILD))/contrib/lib/libfdk-aac.a
endif
@@ -71,6 +75,7 @@ MACOSX.XCODE = $(strip \
EXTERNAL_JOBS='$(BUILD.jobs)' \
EXTERNAL_VARS='$(-*-command-variables-*-)' \
\
+ $(MACOSX.extra_cflags) \
$(MACOSX.extra_ldflags) \
\
$(2) )