[vlc-devel] [PATCH] Zip: Module build system: Modules.am, configure.ac

jpeg at videolan.org jpeg at videolan.org
Sat Jan 10 22:50:48 CET 2009


From: Jean-Philippe Andre <jpeg at via.ecp.fr>

---
 configure.ac                 |    9 +++++++++
 modules/demux/Modules.am     |    2 +-
 modules/demux/zip/Modules.am |    6 ++++++
 3 files changed, 16 insertions(+), 1 deletions(-)
 create mode 100644 modules/demux/zip/Modules.am

diff --git a/configure.ac b/configure.ac
index 3b44eaf..cbfe51c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5336,6 +5336,14 @@ then
 fi
 
 dnl
+dnl ZIP files demuxer
+dnl
+AC_CHECK_HEADERS(zlib.h, [
+  VLC_ADD_LIBS([zip],[-lz])
+  VLC_ADD_PLUGIN([zip])
+])
+
+dnl
 dnl  Endianness check
 dnl
 AC_C_BIGENDIAN
@@ -5852,6 +5860,7 @@ AC_CONFIG_FILES([
   modules/demux/mp4/Makefile
   modules/demux/mpeg/Makefile
   modules/demux/playlist/Makefile
+  modules/demux/zip/Makefile
   modules/gui/Makefile
   modules/gui/beos/Makefile
   modules/gui/pda/Makefile
diff --git a/modules/demux/Modules.am b/modules/demux/Modules.am
index 350f320..2d4ff3b 100644
--- a/modules/demux/Modules.am
+++ b/modules/demux/Modules.am
@@ -1,4 +1,4 @@
-SUBDIRS = asf avformat avi mkv mp4 mpeg playlist
+SUBDIRS = asf avformat avi mkv mp4 mpeg playlist zip
 SOURCES_flacsys = flac.c
 SOURCES_ogg = ogg.c vorbis.h
 SOURCES_demuxdump = demuxdump.c
diff --git a/modules/demux/zip/Modules.am b/modules/demux/zip/Modules.am
new file mode 100644
index 0000000..8c2a5ee
--- /dev/null
+++ b/modules/demux/zip/Modules.am
@@ -0,0 +1,6 @@
+SOURCES_zip = \
+	zipdemux.c \
+	zipaccess.c \
+	unzip.c \
+	ioapi.c \
+	$(NULL)
-- 
1.6.0.6





More information about the vlc-devel mailing list