[vlc-devel] [PATCH 1/2] Added libcloudstorage to build system.

Paweł Wegner pawel.wegner95 at gmail.com
Thu Oct 27 23:18:03 CEST 2016


---
 configure.ac               | 9 +++++++++
 modules/gui/qt/Makefile.am | 4 ++++
 2 files changed, 13 insertions(+)

diff --git a/configure.ac b/configure.ac
index a316e00..4baf138 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4030,6 +4030,15 @@ dnl  libxml2 module
 dnl
 PKG_ENABLE_MODULES_VLC([LIBXML2], [xml], [libxml-2.0 >= 2.5], [libxml2 support],[auto])
 
+dnl
+dnl  libcloudstorage
+dnl
+AC_ARG_WITH([libcloudstorage], AS_HELP_STRING([--with-libcloudstorage]))
+AM_CONDITIONAL([WITH_LIBCLOUDSTORAGE], [test "x$with_libcloudstorage" != "xno"])
+AS_IF([test "x$with_libcloudstorage" != "xno"], [
+  PKG_CHECK_MODULES([libcloudstorage], [libcloudstorage])
+  AC_DEFINE(WITH_LIBCLOUDSTORAGE, [1], [Defined if having libcloudstorage])
+])
 
 dnl
 dnl libgcrypt
diff --git a/modules/gui/qt/Makefile.am b/modules/gui/qt/Makefile.am
index 8546529..ab413ac 100644
--- a/modules/gui/qt/Makefile.am
+++ b/modules/gui/qt/Makefile.am
@@ -28,6 +28,10 @@ endif
 if HAVE_DARWIN
 libqt_plugin_la_LDFLAGS += -Wl,-framework,Cocoa
 endif
+if WITH_LIBCLOUDSTORAGE
+libqt_plugin_la_CXXFLAGS += $(libcloudstorage_CFLAGS)
+libqt_plugin_la_LIBADD += $(libcloudstorage_LIBS)
+endif
 
 gui_LTLIBRARIES =  $(LTLIBqt)
 EXTRA_LTLIBRARIES = libqt_plugin.la
-- 
2.9.3



More information about the vlc-devel mailing list