]> git.sesse.net Git - vlc/commitdiff
Finish the zvbi port to Windows.
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 24 Jul 2009 11:26:38 +0000 (13:26 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 24 Jul 2009 11:28:05 +0000 (13:28 +0200)
The .dll is still a bit big, because of static linking to libiconv, I think

configure.ac
extras/contrib/src/Makefile
extras/package/win32/configure-common.sh

index 44970acc61869b7f650b46cd2bb72d180e79bb3e..0924a1b3a30c870307deee738e0a9390d1aba566 100644 (file)
@@ -353,7 +353,7 @@ case "${host_os}" in
         VLC_ADD_LDFLAGS([vlc],[-mwindows])
         VLC_ADD_LIBS([activex mozilla],[-lgdi32])
         VLC_ADD_LIBS([cdda vcdx cddax sdl_image],[-lwinmm])
-        VLC_ADD_LIBS([access_http access_mms access_udp access_tcp access_ftp access_rtmp access_output_udp access_output_shout access_output_rtmp sap slp http stream_out_standard stream_out_rtp stream_out_raop vod_rtsp access_realrtsp rtp telnet rc netsync gnutls growl_udp flac ts audioscrobbler lua remoteosd],[-lws2_32])
+        VLC_ADD_LIBS([access_http access_mms access_udp access_tcp access_ftp access_rtmp access_output_udp access_output_shout access_output_rtmp sap slp http stream_out_standard stream_out_rtp stream_out_raop vod_rtsp access_realrtsp rtp telnet rc netsync gnutls growl_udp flac ts audioscrobbler lua remoteosd zvbi],[-lws2_32])
         VLC_ADD_LIBS([access_file], [-lshlwapi])
     fi
     if test "${SYS}" = "mingwce"; then
@@ -3738,26 +3738,26 @@ dnl uncompatible
 dnl
 AC_ARG_ENABLE(zvbi,
   AS_HELP_STRING([--enable-zvbi],[VBI (inc. Teletext) decoding support with
-                 libzvbi (default enabled)]))
+                  libzvbi (default enabled)]))
 AC_ARG_ENABLE(telx,
   AS_HELP_STRING([--enable-telx],[Teletext decoding module (conflicting with
-                 zvbi) (default enabled if zvbi is absent)]))
+                  zvbi) (default enabled if zvbi is absent)]))
 
 AS_IF( [test "${enable_zvbi}" != "no"],[
     PKG_CHECK_MODULES(ZVBI,
-       zvbi-0.2 >= 0.2.25,
-       [
-         VLC_ADD_LIBS([zvbi],[$ZVBI_LIBS])
-         VLC_ADD_CFLAGS([zvbi],[$ZVBI_CFLAGS])
+        zvbi-0.2 >= 0.2.25,
+        [
+          VLC_ADD_LIBS([zvbi],[$ZVBI_LIBS])
+          VLC_ADD_CFLAGS([zvbi],[$ZVBI_CFLAGS])
           VLC_ADD_PLUGIN([zvbi])
-         AC_DEFINE(ZVBI_COMPILED, 1, [Define if the zvbi module is built])
-         AS_IF( [test "${enable_telx}" = "yes"],[
-                 AC_MSG_WARN([The zvbi and telx modules are uncompatibles.
-                              Using zvbi.])
-                 ])
-       ],[
-         AC_MSG_WARN(ZVBI library not found. Enabling the telx module instead)
-       ])
+          AC_DEFINE(ZVBI_COMPILED, 1, [Define if the zvbi module is built])
+          AS_IF( [test "${enable_telx}" = "yes"],[
+                  AC_MSG_WARN([The zvbi and telx modules are uncompatibles.
+                               Using zvbi.])
+                  ])
+        ],[
+          AC_MSG_WARN(ZVBI library not found. Enabling the telx module instead)
+        ])
     ])
 AS_IF( [test "${enable_telx}" != "no" ],[
   VLC_ADD_PLUGIN([telx])
index caf78c27f22a34c72871c86b2e7a9f6154671c77..ae8f52dc4c1ac6a82db919c8265ffe14b5e3b738 100644 (file)
@@ -1759,7 +1759,7 @@ ifdef HAVE_DARWIN_OS
        (cd $<; ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS) -fnested-functions" && make && make install)
 else
 ifdef HAVE_WIN32
-       (cd $<; ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS) --std=gnu99"  && make && make install)
+       (cd $<; ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS) -DPTW32_STATIC_LIB --std=gnu99"  && make && make install)
 else
        (cd $<; ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS)" && make -C src && make -C src install)
 endif
index 44a1d140f6a65f7d09ea6344566519690c3601dd..c8bb2bd53ec06feceaf254eb1a01485ada31d515 100755 (executable)
@@ -28,5 +28,5 @@
       --enable-sse --enable-mmx \
       --disable-gnomevfs --disable-hal \
       --disable-cddax --disable-vcdx --disable-libcdio --disable-vcdinfo \
-      --disable-libcddb --disable-dvb --disable-zvbi --enable-telx \
+      --disable-libcddb --disable-dvb --enable-zvbi --disable-telx \
       --disable-pulse