applemedia: set -mmacosx-version-min to 10.8
authorJulien Isorce <j.isorce@samsung.com>
Fri, 18 Dec 2015 10:30:25 +0000 (10:30 +0000)
committerJulien Isorce <j.isorce@samsung.com>
Fri, 18 Dec 2015 10:30:25 +0000 (10:30 +0000)
Otherwise qtkitvideosrc fails to build on OSX 10.10.4
because QTKit has been deprecated since OS X 10.9.

Also set -mmacosx-version-min=10.8 in front to allow
the user or cerbero to override the version.

https://bugzilla.gnome.org/show_bug.cgi?id=745564

sys/applemedia/Makefile.am

index dfbb04fb38ded692db56412a85b054ebb9535abd..c95b059d294795f77a7d76c2317aca97343defe5 100644 (file)
@@ -22,10 +22,18 @@ libgstapplemedia_la_CFLAGS =                        \
        $(GST_BASE_CFLAGS)                      \
        $(GST_PLUGINS_BASE_CFLAGS)
 
+if HAVE_IOS
+GST_OBJCFLAGS_WITH_VERSION = $(GST_OBJCFLAGS)
+else
+# Add min version in front so the user or cerbero can override it since it
+# always picks the last occurence when passing several -mmacosx-version-min.
+GST_OBJCFLAGS_WITH_VERSION = -mmacosx-version-min=10.8 $(GST_OBJCFLAGS)
+endif
+
 libgstapplemedia_la_OBJCFLAGS =                        \
        -I$(top_srcdir)/gst-libs                \
        -I$(top_builddir)/gst-libs              \
-       $(GST_OBJCFLAGS)                        \
+       $(GST_OBJCFLAGS_WITH_VERSION)           \
        $(GST_BASE_CFLAGS)                      \
        $(GST_PLUGINS_BASE_CFLAGS)