[vlc-devel] [PATCH 3/3] [RFC] Add the CineForm plugin to the build system

Emeric Grange egrange at gopro.com
Mon Nov 20 15:52:03 CET 2017


---
 configure.ac                       |  5 +++++
 extras/package/macosx/configure.sh |  1 +
 modules/codec/Makefile.am          | 13 +++++++++++++
 3 files changed, 19 insertions(+)

diff --git a/configure.ac b/configure.ac
index 255e688..e3af859 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2638,6 +2638,11 @@ AS_IF([test "${enable_vpx}" != "no"],[
 ])
 
 dnl
+dnl  cineformsdk
+dnl
+PKG_ENABLE_MODULES_VLC([CINEFORMSDK], [], [libcineformsdk >= 10.0.1], [CineForm SDK with encoder and decoder], [auto])
+
+dnl
 dnl twolame encoder plugin
 dnl
 PKG_ENABLE_MODULES_VLC([TWOLAME], [], [twolame], [MPEG Audio Layer 2 encoder], [auto], [], [], [ -DLIBTWOLAME_STATIC])
diff --git a/extras/package/macosx/configure.sh b/extras/package/macosx/configure.sh
index 2ba0c75..ef57b1b 100755
--- a/extras/package/macosx/configure.sh
+++ b/extras/package/macosx/configure.sh
@@ -29,6 +29,7 @@ OPTIONS="
         --enable-libass
         --enable-macosx-qtkit
         --enable-macosx-avfoundation
+        --enable-cineformsdk
         --disable-skins2
         --disable-xcb
         --disable-caca
diff --git a/modules/codec/Makefile.am b/modules/codec/Makefile.am
index 20899d8..404febe 100644
--- a/modules/codec/Makefile.am
+++ b/modules/codec/Makefile.am
@@ -124,6 +124,19 @@ EXTRA_LTLIBRARIES += libschroedinger_plugin.la
 codec_LTLIBRARIES += $(LTLIBschroedinger)
 
 
+libcineformsdk_plugin_la_SOURCES = dummy.cpp \
+	codec/cineformsdk/cineform_plugin.c codec/cineformsdk/cineform_plugin.h \
+	codec/cineformsdk/cineform_allocator.c codec/cineformsdk/cineform_allocator.h \
+	codec/cineformsdk/cineform_debug.c codec/cineformsdk/cineform_debug.h \
+	codec/cineformsdk/cineform_settings.c codec/cineformsdk/cineform_settings.h
+libcineformsdk_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_cineformsdk)
+libcineformsdk_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_cineformsdk)
+libcineformsdk_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
+libcineformsdk_plugin_la_LIBADD = $(LIBS_cineformsdk)
+EXTRA_LTLIBRARIES += libcineformsdk_plugin.la
+codec_LTLIBRARIES += $(LTLIBcineformsdk)
+
+
 ### Image codecs ###
 
 libpng_plugin_la_SOURCES = codec/png.c
-- 
2.10.1





More information about the vlc-devel mailing list