]> git.sesse.net Git - vlc/commitdiff
* toolbox: use the "Output_Dir" property when generating the msvc project files so...
authorGildas Bazin <gbazin@videolan.org>
Thu, 4 Dec 2003 12:33:43 +0000 (12:33 +0000)
committerGildas Bazin <gbazin@videolan.org>
Thu, 4 Dec 2003 12:33:43 +0000 (12:33 +0000)
* msvc/config.h.in, modules/access_output/file.c: MSVC fixes.
* modules/video_chroma/i420_rgb.c: don't use our RV24 conversion routine on win32 because it assumes 32 bits per pixel.

modules/access_output/file.c
modules/video_chroma/i420_rgb.c
msvc/config.h.in
toolbox

index 689ef0f2b48f128edf3cdcabdc519877312c1fb3..76a56acae85861c10284996d7f719c3a5b1a5ef7 100644 (file)
@@ -2,7 +2,7 @@
  * file.c
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: file.c,v 1.9 2003/09/07 20:08:31 fenrir Exp $
+ * $Id: file.c,v 1.10 2003/12/04 12:33:43 gbazin Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *          Eric Petit <titer@videolan.org>
@@ -49,6 +49,9 @@
 #ifndef S_IROTH
 #   define S_IROTH 0
 #endif
+#ifndef STDOUT_FILENO
+#   define STDOUT_FILENO 1
+#endif
 
 /*****************************************************************************
  * Exported prototypes
index 4bf0342d409890272f1262f5009f548a8f6a9fe0..49efea78fb835036961549902dae2a05e7b5d141 100644 (file)
@@ -2,7 +2,7 @@
  * i420_rgb.c : YUV to bitmap RGB conversion module for vlc
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: i420_rgb.c,v 1.4 2003/08/29 18:58:05 fenrir Exp $
+ * $Id: i420_rgb.c,v 1.5 2003/12/04 12:33:43 gbazin Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -122,7 +122,9 @@ static int Activate( vlc_object_t *p_this )
                     p_vout->chroma.pf_convert = E_(I420_RGB16);
                     break;
 
-                case VLC_FOURCC('R','V','2','4'):
+#ifndef WIN32 /* Hmmm, is there only X11 using 32bits per pixel for RV24 ? */
+               case VLC_FOURCC('R','V','2','4'):
+#endif
                 case VLC_FOURCC('R','V','3','2'):
 #if defined (MODULE_NAME_IS_i420_rgb_mmx)
                     /* If we don't have support for the bitmasks, bail out */
index 9b2d709be0c421c82f15de9ddad678aee122ce93..f8ee76a37a02db622910fa650a4bd11d8ead8650 100644 (file)
@@ -93,9 +93,6 @@
 /* Define to 1 if you have the <sys/stat.h> header file. */
 #define HAVE_SYS_STAT_H 1
 
-/* Define to 1 if you have the <sys/time.h> header file. */
-#define HAVE_SYS_TIME_H 1
-
 /* Define to 1 if you have the <sys/types.h> header file. */
 #define HAVE_SYS_TYPES_H 1
 
diff --git a/toolbox b/toolbox
index 0b7cc9c2ea460dad8d17643ae4df9c999f46b20e..2966d17ec47adbd3898f114f2c2d377adb5f0d59 100755 (executable)
--- a/toolbox
+++ b/toolbox
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 ##  toolbox for the VLC media player
-##  $Id: toolbox,v 1.50 2003/11/27 00:05:51 sam Exp $
+##  $Id: toolbox,v 1.51 2003/12/04 12:33:42 gbazin Exp $
 ##
 ##  Authors: Samuel Hocevar <sam@zoy.org>
 
@@ -158,7 +158,7 @@ then
   LIBVLC_PKG_HEADERS=`getfiles dist_pkginclude_HEADERS`
 
   # Clean up
-  rm -f evc/*.vcp msvc/*.dsp
+  rm -f evc/*.vcp msvc/*.dsp msvc/*.vcproj msvc/*.sln msvc/*.ncb
 
   # config files
   for target in evc/config.h msvc/config.h
@@ -193,6 +193,7 @@ EOF
 EOF
       for file in `for i in ${LIBVLC_SOURCES} ; do echo $i ; done | grep "/${subdir}/"`
       do
+      subdir="`echo ${file} | sed -e 's%/[^/]*$%/%' | sed -e 's%/%\\\\%g'`"
       if test "${target}" = "evc/libvlc.vcp"
       then
         cat >> ${target} << EOF
@@ -304,6 +305,12 @@ EOF
 # Begin Source File${M}
 SOURCE="..\\modules\\`echo ${dir}/${cfile} | sed 's,/,\\\\,g'`"${M}
 # ADD CPP /D "__VLC__" /D "__PLUGIN__"  /D "MODULE_NAME=${mod}" /D "MODULE_NAME_IS_${mod}" ${M}
+!IF "\$(CFG)" == "plugin_${mod} - Win32 Release"${M}
+# PROP Output_Dir "Release\\modules\\`echo ${dir} | sed 's,/,\\\\,g'`"${M}
+# PROP Intermediate_Dir "Release\\modules\\`echo ${dir} | sed 's,/,\\\\,g'`"${M}
+!ELSEIF "\$(CFG)" == "plugin_${mod} - Win32 Debug"${M}
+# PROP Output_Dir "Debug\\modules\\`echo ${dir} | sed 's,/,\\\\,g'`"${M}
+# PROP Intermediate_Dir "Debug\\modules\\`echo ${dir} | sed 's,/,\\\\,g'`"${M}
 # End Source File${M}
 EOF
         done