[vlmc-devel] Add medialibrary dependency

Hugo Beauzée-Luyssen git at videolan.org
Tue May 24 00:37:14 CEST 2016


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue May 24 00:01:51 2016 +0200| [6c552156f4bdc2223553a6dc40410990bcaa9f2b] | committer: Hugo Beauzée-Luyssen

Add medialibrary dependency

> https://code.videolan.org/videolan/vlmc/commit/6c552156f4bdc2223553a6dc40410990bcaa9f2b
---

 contribs/CMakeLists.txt | 11 +++++++++++
 src/CMakeLists.txt      |  1 +
 2 files changed, 12 insertions(+)

diff --git a/contribs/CMakeLists.txt b/contribs/CMakeLists.txt
index ad93d1e..bfcee0c 100644
--- a/contribs/CMakeLists.txt
+++ b/contribs/CMakeLists.txt
@@ -15,3 +15,14 @@ ExternalProject_Add(
     BUILD_COMMAND make
     INSTALL_COMMAND make install
 )
+
+# Now find medialibrary
+ExternalProject_Add(
+    medialibrary
+    PREFIX ${PREFIX}
+    UPDATE_COMMAND ""
+    GIT_REPOSITORY https://code.videolan.org/videolan/medialibrary.git
+    CONFIGURE_COMMAND <SOURCE_DIR>/bootstrap && <SOURCE_DIR>/configure --prefix=${PREFIX}/install --disable-tests
+    BUILD_COMMAND make
+    INSTALL_COMMAND make install
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ae498ca..b4fa8ec 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -286,6 +286,7 @@ ELSE(NOT WITH_GUI)
 ENDIF( NOT WITH_GUI )
 
 add_dependencies(vlmc libvlcpp)
+add_dependencies(vlmc medialibrary)
 message(STATUS "Contribs prefix: ${CONTRIBS_DIR}")
 include_directories( ${CONTRIBS_DIR}/include )
 



More information about the Vlmc-devel mailing list