gstreamer/sys/applemedia/Makefile.am
Andoni Morales Alastruey 97bb1edf6c applemedia: don't use the dynamic API for public frameworks
Public frameworks don't need to build the API dynamically, we instead
use the framework directly.
The exception is for VideoToolbox which went public in the 10.8 SDK,
but it's still private in older version of the SDK and iOS. This allow
building the plugin against SDK's where it's not a public framework.
2013-05-20 13:31:02 +02:00

80 lines
1.6 KiB
Makefile

plugin_LTLIBRARIES = libgstapplemedia.la
libgstapplemedia_la_SOURCES = \
plugin.m \
vtutil.c \
bufferfactory.m \
corevideobuffer.c \
coremediabuffer.c \
coremediactx.c \
vtapi.c \
dynapi.c
libgstapplemedia_la_CFLAGS = \
$(GST_CFLAGS) \
$(GST_BASE_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS)
libgstapplemedia_la_OBJCFLAGS = \
$(GST_OBJCFLAGS) \
$(GST_BASE_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS)
if HAVE_IOS
libgstapplemedia_la_OBJCFLAGS += -fobjc-abi-version=2 -fobjc-legacy-dispatch
endif
libgstapplemedia_la_LIBADD = \
$(GST_BASE_LIBS) \
$(GST_PLUGINS_BASE_LIBS) \
-lgstvideo-$(GST_API_VERSION)
libgstapplemedia_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
libgstapplemedia_la_LDFLAGS = \
$(GST_PLUGIN_LDFLAGS) \
$(GST_BASE_LDFLAGS) \
$(GST_PLUGINS_BASE_LDFLAGS) \
-Wl,-framework -Wl,CoreFoundation \
-Wl,-framework -Wl,CoreMedia \
-Wl,-framework -Wl,CoreVideo
noinst_HEADERS = \
qtkitvideosrc.h \
avfvideosrc.h \
vth264decbin.h \
vth264encbin.h \
vtenc.h \
vtdec.h \
vtutil.h \
bufferfactory.h \
corevideobuffer.h \
coremediabuffer.h \
coremediactx.h \
vtapi.h \
dynapi.h \
dynapi-internal.h
if HAVE_IOS
libgstapplemedia_la_SOURCES += \
avfvideosrc.m
libgstapplemedia_la_LDFLAGS += \
-Wl,-framework -Wl,CoreMedia \
-Wl,-framework -Wl,Foundation \
-Wl,-framework -Wl,AVFoundation
else
libgstapplemedia_la_SOURCES += \
qtkitvideosrc.m \
vtenc.c \
vtdec.c
libgstapplemedia_la_LDFLAGS += \
-Wl,-framework -Wl,Cocoa \
-Wl,-framework -Wl,QTKit
endif