]> granicus.if.org Git - handbrake/commitdiff
OpenCL: fix darwin build with Xcode.
authorRodeo <tdskywalker@gmail.com>
Mon, 20 May 2013 18:43:32 +0000 (18:43 +0000)
committerRodeo <tdskywalker@gmail.com>
Mon, 20 May 2013 18:43:32 +0000 (18:43 +0000)
Idea by John Stebbins. Thanks!

git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/opencl@5489 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/module.defs

index 1870d5fe9d69ee1df47b6e3b21754e76e1ea272b..39230cd6f9c83521780930917319d6479629f9ef 100644 (file)
@@ -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))
 MACOSX.extra_ldflags = OTHER_LDFLAGS='$(abspath $(BUILD))/contrib/lib/libfdk-aac.a'
 endif
@@ -58,6 +62,7 @@ MACOSX.XCODE = $(strip \
         EXTERNAL_JOBS='$(BUILD.jobs)' \
         EXTERNAL_VARS='$(-*-command-variables-*-)' \
         \
+        $(MACOSX.extra_cflags) \
         $(MACOSX.extra_ldflags) \
         \
         $(2) )