Commit 4a8ce8ac authored by Sam Hocevar's avatar Sam Hocevar

* ./src/misc/modules.c: p_module->psz_filename is now filled with a real

    8 bit string under WinCE.
  * ./extras/Win32_msvc: scrapped this directory.
  * ./bootstrap: we now parse plugin makefiles to guess what to put in
    the MSVC project files. Only the dummy plugin has been tested yet.
parent fa94ffd5
#! /bin/sh
## bootstrap file for vlc, the VideoLAN Client
## $Id: bootstrap,v 1.28 2002/11/18 11:50:42 sam Exp $
## $Id: bootstrap,v 1.29 2002/11/19 17:38:06 sam Exp $
##
## Authors: Samuel Hocevar <sam@zoy.org>
###
### get a sane environment
### Get a sane environment, just in case
###
LANG=C
export LANG
CYGWIN=binmode
export CYGWIN
##
## Give help
......@@ -72,6 +74,8 @@ then
exit 1
fi
echo "generating Visual Studio files..."
# The evil ^M
M=' '
......@@ -83,14 +87,11 @@ then
# libvlc files
for target in evc/libvlc.vcp msvc/libvlc.dsp
do
echo "${target}"
rm -f ${target}
# Top of the project file
cat ${target}.in > ${target}
perl -pe 'if(/SOURCES/){last;}' < ${target}.in > ${target}
# The source files
cat >> ${target} << EOF
# Begin Group "Source Files"${M}
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"${M}
EOF
for file in `for i in ${LIBVLC_SOURCES} ; do echo $i ; done | grep -v "/.*/"`
do
cat >> ${target} << EOF
......@@ -166,14 +167,8 @@ EOF
# End Group${M}
EOF
done
cat >> ${target} << EOF
# End Group${M}
EOF
# The headers
cat >> ${target} << EOF
# Begin Group "Header Files"${M}
# PROP Default_Filter "h;hpp;hxx;hm;inl"${M}
EOF
perl -e 'while(<>){if(/SOURCES/){last;}}while(<>){if(/HEADERS/){last;}print $_}' < ${target}.in >> ${target}
for file in ${LIBVLC_HEADERS}
do
cat >> ${target} << EOF
......@@ -195,64 +190,72 @@ EOF
done
cat >> ${target} << EOF
# End Group${M}
# End Group${M}
# End Target${M}
# End Project${M}
EOF
perl -e 'while(<>){if(/HEADERS/){last;}}while(<>){print $_}' < ${target}.in >> ${target}
done
# plugins files
for target in evc/plugins.vcp msvc/plugins.dsp
for dir in evc msvc
do
rm -f ${target}
# Top of the project file
cat ${target}.in > ${target}
# The source files
cat >> ${target} << EOF
# Begin Group "Source Files"${M}
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"${M}
# End Group${M}
EOF
# The headers
cat >> ${target} << EOF
# Begin Group "Header Files"${M}
# PROP Default_Filter "h;hpp;hxx;hm;inl"${M}
# End Group${M}
# End Target${M}
# End Project${M}
test "${dir}" = "evc" && suf="vcp" || suf="dsp"
for plugin in dummy
do
makefile="`grep '^L_'${plugin}'_pic =' Modules.am | sed -e 's@.* modules@modules@' -e 's@/[^/]*$@/Modules.am@'`"
source="${dir}/plugins.${suf}.in"
target="${dir}/plugin_${plugin}.${suf}"
echo "${target}"
rm -f ${target}
perl -pe 'if(/SOURCES/){last;} s/PLUGIN/'${plugin}'/g' < ${source} > ${target}
# this is an attempt at getting a list of plugin sources
sed -ne 's/^SOURCES_'${plugin}'.*=//; t foo; /^[a-zA-Z]/q; :foo p' < ${makefile} | tr '\\ ' '\n\n' | sed -ne 's,/,\\\\,g; s/.*modules/modules/p' | while read source
do
cat >> ${target} << EOF
# Begin Source File${M}
SOURCE="..\\${source}"${M}
# End Source File${M}
EOF
done
# sed is really nicer for this... unfortunately it's broken under cygwin
# sed -ne '1,/SOURCES/d; /HEADERS/,$d; p' < ${source} >> ${target}
perl -e 'while(<>){if(/SOURCES/){last;}}while(<>){if(/HEADERS/){last;}print $_}' < ${source} >> ${target}
### header generation disabled
## cat >> ${target} << EOF
### Begin Source File${M}
##SOURCE="..\\test.h"${M}
### End Source File${M}
##EOF
# sed -ne '1,/HEADERS/d; p' < ${source} >> ${target}
perl -e 'while(<>){if(/HEADERS/){last;}}while(<>){print $_}' < ${source} >> ${target}
done
done
# vlc files
for target in evc/vlc.vcp msvc/vlc.dsp
do
echo "${target}"
rm -f ${target}
# Top of the project file
cat ${target}.in > ${target}
perl -pe 'if(/SOURCES/){last;}' < ${target}.in > ${target}
# The source files
cat >> ${target} << EOF
# Begin Group "Source Files"${M}
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"${M}
# Begin Source File${M}
EOF
if test "${target}" = "evc/vlc.vcp"
then
cat >> ${target} << EOF
# Begin Source File${M}
SOURCE="..\\evc\\vlc.c"${M}
# End Source File${M}
EOF
else
cat >> ${target} << EOF
# Begin Source File${M}
SOURCE="..\\src\\vlc.c"${M}
EOF
fi
cat >> ${target} << EOF
# End Source File${M}
# End Group${M}
EOF
fi
# Bottom of the project file - handles resource files too
cat ${target}.out >> ${target}
perl -e 'while(<>){if(/SOURCES/){last;}}while(<>){print $_}' < ${target}.in >> ${target}
done
echo "done."
exit 0
fi
......@@ -262,7 +265,7 @@ fi
if test "$do_po" = "yes"
then
cd po
make update-po 2>&1 | grep '^[^:]*:$' | cut -f1 -d: | tr '\n' ' ' | sed 's/ $//'
make update-po #2>&1 | grep '^[^:]*:$' | cut -f1 -d: | tr '\n' ' ' | sed 's/ $//'
cd ..
exit 0
......
ARMDbg
ARMRel
MIPSDbg
MIPSRel
SH3Dbg
SH3Rel
SH4Dbg
SH4Rel
X86EMDbg
......@@ -314,3 +314,13 @@ BSC32=bscmake.exe
# Name "libvlc - Win32 (WCE x86em) Release"
# Name "libvlc - Win32 (WCE x86em) Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
SOURCES
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
HEADERS
# End Group
# End Target
# End Project
This diff is collapsed.
This diff is collapsed.
......@@ -357,7 +357,7 @@ RSC=rc.exe
# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "_X86_" /d "x86" /d "i486" /r
CPP=cl.exe
# ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "i486" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /Yu"stdafx.h" /Gz /c
# ADD CPP /nologo /W3 /Zi /Od /I "." /I "..\include" /D "DEBUG" /D "i486" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /FR /Gz /c
# ADD CPP /nologo /W3 /Zi /Od /I "." /I "..\include" /D "DEBUG" /D "i486" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /Gz /c
# SUBTRACT CPP /YX /Yc /Yu
MTL=midl.exe
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
......@@ -383,257 +383,14 @@ LINK32=link.exe
# Name "vlc - Win32 (WCE ARM) Debug"
# Name "vlc - Win32 (WCE x86em) Release"
# Name "vlc - Win32 (WCE x86em) Debug"
# Begin Group "Source Files"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE="..\evc\vlc.c"
!IF "$(CFG)" == "vlc - Win32 (WCE MIPS) Release"
DEP_CPP_VLC_C=\
"..\include\beos_specific.h"\
"..\include\configuration.h"\
"..\include\darwin_specific.h"\
"..\include\main.h"\
"..\include\modules.h"\
"..\include\modules_inner.h"\
"..\include\mtime.h"\
"..\include\os_specific.h"\
"..\include\variables.h"\
"..\include\vlc\vlc.h"\
"..\include\vlc_common.h"\
"..\include\vlc_config.h"\
"..\include\vlc_messages.h"\
"..\include\vlc_objects.h"\
"..\include\vlc_symbols.h"\
"..\include\vlc_threads.h"\
"..\include\vlc_threads_funcs.h"\
"..\include\win32_specific.h"\
".\config.h"\
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE MIPS) Debug"
DEP_CPP_VLC_C=\
"..\include\beos_specific.h"\
"..\include\configuration.h"\
"..\include\darwin_specific.h"\
"..\include\main.h"\
"..\include\modules.h"\
"..\include\modules_inner.h"\
"..\include\mtime.h"\
"..\include\os_specific.h"\
"..\include\variables.h"\
"..\include\vlc\vlc.h"\
"..\include\vlc_common.h"\
"..\include\vlc_config.h"\
"..\include\vlc_messages.h"\
"..\include\vlc_objects.h"\
"..\include\vlc_symbols.h"\
"..\include\vlc_threads.h"\
"..\include\vlc_threads_funcs.h"\
"..\include\win32_specific.h"\
".\config.h"\
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE SH4) Release"
DEP_CPP_VLC_C=\
"..\include\beos_specific.h"\
"..\include\configuration.h"\
"..\include\darwin_specific.h"\
"..\include\main.h"\
"..\include\modules.h"\
"..\include\modules_inner.h"\
"..\include\mtime.h"\
"..\include\os_specific.h"\
"..\include\variables.h"\
"..\include\vlc\vlc.h"\
"..\include\vlc_common.h"\
"..\include\vlc_config.h"\
"..\include\vlc_messages.h"\
"..\include\vlc_objects.h"\
"..\include\vlc_symbols.h"\
"..\include\vlc_threads.h"\
"..\include\vlc_threads_funcs.h"\
"..\include\win32_specific.h"\
".\config.h"\
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE SH4) Debug"
DEP_CPP_VLC_C=\
"..\include\beos_specific.h"\
"..\include\configuration.h"\
"..\include\darwin_specific.h"\
"..\include\main.h"\
"..\include\modules.h"\
"..\include\modules_inner.h"\
"..\include\mtime.h"\
"..\include\os_specific.h"\
"..\include\variables.h"\
"..\include\vlc\vlc.h"\
"..\include\vlc_common.h"\
"..\include\vlc_config.h"\
"..\include\vlc_messages.h"\
"..\include\vlc_objects.h"\
"..\include\vlc_symbols.h"\
"..\include\vlc_threads.h"\
"..\include\vlc_threads_funcs.h"\
"..\include\win32_specific.h"\
".\config.h"\
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE SH3) Release"
DEP_CPP_VLC_C=\
"..\include\beos_specific.h"\
"..\include\configuration.h"\
"..\include\darwin_specific.h"\
"..\include\main.h"\
"..\include\modules.h"\
"..\include\modules_inner.h"\
"..\include\mtime.h"\
"..\include\os_specific.h"\
"..\include\variables.h"\
"..\include\vlc\vlc.h"\
"..\include\vlc_common.h"\
"..\include\vlc_config.h"\
"..\include\vlc_messages.h"\
"..\include\vlc_objects.h"\
"..\include\vlc_symbols.h"\
"..\include\vlc_threads.h"\
"..\include\vlc_threads_funcs.h"\
"..\include\win32_specific.h"\
".\config.h"\
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE SH3) Debug"
DEP_CPP_VLC_C=\
"..\include\beos_specific.h"\
"..\include\configuration.h"\
"..\include\darwin_specific.h"\
"..\include\main.h"\
"..\include\modules.h"\
"..\include\modules_inner.h"\
"..\include\mtime.h"\
"..\include\os_specific.h"\
"..\include\variables.h"\
"..\include\vlc\vlc.h"\
"..\include\vlc_common.h"\
"..\include\vlc_config.h"\
"..\include\vlc_messages.h"\
"..\include\vlc_objects.h"\
"..\include\vlc_symbols.h"\
"..\include\vlc_threads.h"\
"..\include\vlc_threads_funcs.h"\
"..\include\win32_specific.h"\
".\config.h"\
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE ARM) Release"
DEP_CPP_VLC_C=\
"..\include\beos_specific.h"\
"..\include\configuration.h"\
"..\include\darwin_specific.h"\
"..\include\main.h"\
"..\include\modules.h"\
"..\include\modules_inner.h"\
"..\include\mtime.h"\
"..\include\os_specific.h"\
"..\include\variables.h"\
"..\include\vlc\vlc.h"\
"..\include\vlc_common.h"\
"..\include\vlc_config.h"\
"..\include\vlc_messages.h"\
"..\include\vlc_objects.h"\
"..\include\vlc_symbols.h"\
"..\include\vlc_threads.h"\
"..\include\vlc_threads_funcs.h"\
"..\include\win32_specific.h"\
".\config.h"\
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE ARM) Debug"
DEP_CPP_VLC_C=\
"..\include\beos_specific.h"\
"..\include\configuration.h"\
"..\include\darwin_specific.h"\
"..\include\main.h"\
"..\include\modules.h"\
"..\include\modules_inner.h"\
"..\include\mtime.h"\
"..\include\os_specific.h"\
"..\include\variables.h"\
"..\include\vlc\vlc.h"\
"..\include\vlc_common.h"\
"..\include\vlc_config.h"\
"..\include\vlc_messages.h"\
"..\include\vlc_objects.h"\
"..\include\vlc_symbols.h"\
"..\include\vlc_threads.h"\
"..\include\vlc_threads_funcs.h"\
"..\include\win32_specific.h"\
".\config.h"\
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE x86em) Release"
DEP_CPP_VLC_C=\
"..\include\beos_specific.h"\
"..\include\configuration.h"\
"..\include\darwin_specific.h"\
"..\include\main.h"\
"..\include\modules.h"\
"..\include\modules_inner.h"\
"..\include\mtime.h"\
"..\include\os_specific.h"\
"..\include\variables.h"\
"..\include\vlc\vlc.h"\
"..\include\vlc_common.h"\
"..\include\vlc_config.h"\
"..\include\vlc_messages.h"\
"..\include\vlc_objects.h"\
"..\include\vlc_symbols.h"\
"..\include\vlc_threads.h"\
"..\include\vlc_threads_funcs.h"\
"..\include\win32_specific.h"\
".\config.h"\
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE x86em) Debug"
DEP_CPP_VLC_C=\
"..\include\beos_specific.h"\
"..\include\configuration.h"\
"..\include\darwin_specific.h"\
"..\include\main.h"\
"..\include\modules.h"\
"..\include\modules_inner.h"\
"..\include\mtime.h"\
"..\include\os_specific.h"\
"..\include\variables.h"\
"..\include\vlc\vlc.h"\
"..\include\vlc_common.h"\
"..\include\vlc_config.h"\
"..\include\vlc_messages.h"\
"..\include\vlc_objects.h"\
"..\include\vlc_symbols.h"\
"..\include\vlc_threads.h"\
"..\include\vlc_threads_funcs.h"\
"..\include\win32_specific.h"\
".\config.h"\
!ENDIF
# End Source File
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
......
......@@ -384,3 +384,41 @@ LINK32=link.exe
# Name "vlc - Win32 (WCE x86em) Release"
# Name "vlc - Win32 (WCE x86em) Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
SOURCES
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# Begin Source File
SOURCE=..\share\vlc_wince_rc.rc
!IF "$(CFG)" == "vlc - Win32 (WCE MIPS) Release"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE MIPS) Debug"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE SH4) Release"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE SH4) Debug"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE SH3) Release"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE SH3) Debug"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE ARM) Release"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE ARM) Debug"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE x86em) Release"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE x86em) Debug"
!ENDIF
# End Source File
# End Group
# End Target
# End Project
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# Begin Source File
SOURCE=..\share\vlc_wince_rc.rc
!IF "$(CFG)" == "vlc - Win32 (WCE MIPS) Release"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE MIPS) Debug"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE SH4) Release"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE SH4) Debug"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE SH3) Release"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE SH3) Debug"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE ARM) Release"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE ARM) Debug"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE x86em) Release"
!ELSEIF "$(CFG)" == "vlc - Win32 (WCE x86em) Debug"
!ENDIF
# End Source File
# End Group
# End Target
# End Project
/* Define if you have alloca, as a function or macro. */
#define HAVE_ALLOCA 1
#define PLUGIN_PATH "."
/* Define to `long' if <sys/types.h> doesn't define. */
/* #undef off_t */
/* Define as the return type of signal handlers (int or void). */
#define RETSIGTYPE void
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if you have the getcwd function. */
#define HAVE_GETCWD 1
/* Define if you have the putenv function. */
#define HAVE_PUTENV 1
/* Define if you have the setlocale function. */
#define HAVE_SETLOCALE 1
/* Define if you have the strcasecmp function. */
#define HAVE_STRCASECMP 1
/* Define if you have the strchr function. */
#define HAVE_STRCHR 1
/* Define if you have the strdup function. */
#define HAVE_STRDUP 1
/* Define if you have the strerror function. */
#define HAVE_STRERROR 1
/* Define if you have the strtod function. */
#define HAVE_STRTOD 1
/* Define if you have the strtol function. */
#define HAVE_STRTOL 1
/* Define if you have the strtoul function. */
#define HAVE_STRTOUL 1
/* Define if you have the swab function. */
#define HAVE_SWAB 1
/* Define if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H 1
/* Define if you have the <stddef.h> header file. */
#define HAVE_STDDEF_H 1
/* Define if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Package name */
#define VLC_PACKAGE "vlc"
/* Package version */
#define VLC_VERSION "0.3.1"
/* Define if you have the iconv() function. */
/* #undef HAVE_ICONV */
/* Define as const if the declaration of iconv() needs const. */
/* #undef ICONV_CONST */
/* Define if your <locale.h> file defines LC_MESSAGES. */
/* #undef HAVE_LC_MESSAGES */
/* Define to 1 if translation of program messages to the user's native language
is requested. */
#define ENABLE_NLS 1
/* Maximum supported data alignment */
#define ATTRIBUTE_ALIGNED_MAX 16
/* iline */
#define inline __inline
/* Simple version string */
#define VERSION_MESSAGE "vlc 0.3.1_2002-05-17 Ourumov Copyright 1996-2002 VideoLAN"
/* Copyright string */
#define COPYRIGHT_MESSAGE "VideoLAN Client - version 0.3.1_2002-05-03 Ourumov - (c) 1996-2002 VideoLAN"
/* String suffix for module functions */
#define MODULE_SUFFIX "__MODULE_0_3_1_2002_05_17"
/* Symbol suffix for module functions */
#define MODULE_SYMBOL 0_3_1_2002_05_17
/*****************************************************************************
* modules_builtin.h: built-in modules list
*****************************************************************************
* Copyright (C) 2001 VideoLAN
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#define ALLOCATE_BUILTIN( NAME ) \
AllocateBuiltinModule( InitModule__MODULE_ ## NAME, \
ActivateModule__MODULE_ ## NAME, \
DeactivateModule__MODULE_ ## NAME );
/* We also consider the main program as a module (useful for config stuff) */
int InitModule__MODULE_main( module_t* );
int ActivateModule__MODULE_main( module_t* );
int DeactivateModule__MODULE_main( module_t* );
/* Add stuff here */
int InitModule__MODULE_null( module_t* );
int ActivateModule__MODULE_null( module_t* );
int DeactivateModule__MODULE_null( module_t* );
int InitModule__MODULE_mpeg_es( module_t* );
int ActivateModule__MODULE_mpeg_es( module_t* );
int DeactivateModule__MODULE_mpeg_es( module_t* );
int InitModule__MODULE_mpeg_ps( module_t* );
int ActivateModule__MODULE_mpeg_ps( module_t* );
int DeactivateModule__MODULE_mpeg_ps( module_t* );
int InitModule__MODULE_mpeg_ts( module_t* );
int ActivateModule__MODULE_mpeg_ts( module_t* );
int DeactivateModule__MODULE_mpeg_ts( module_t* );
int InitModule__MODULE_file( module_t* );
int ActivateModule__MODULE_file( module_t* );
int DeactivateModule__MODULE_file( module_t* );
int InitModule__MODULE_memcpy( module_t* );
int ActivateModule__MODULE_memcpy( module_t* );
int DeactivateModule__MODULE_memcpy( module_t* );
int InitModule__MODULE_lpcm_adec( module_t* );
int ActivateModule__MODULE_lpcm_adec( module_t* );
int DeactivateModule__MODULE_lpcm_adec( module_t* );
int InitModule__MODULE_ac3_spdif( module_t* );
int ActivateModule__MODULE_ac3_spdif( module_t* );
int DeactivateModule__MODULE_ac3_spdif( module_t* );
int InitModule__MODULE_spudec( module_t* );
int ActivateModule__MODULE_spudec( module_t* );
int DeactivateModule__MODULE_spudec( module_t* );
int InitModule__MODULE_sdl( module_t* );
int ActivateModule__MODULE_sdl( module_t* );
int DeactivateModule__MODULE_sdl( module_t* );
int InitModule__MODULE_directx( module_t* );
int ActivateModule__MODULE_directx( module_t* );
int DeactivateModule__MODULE_directx( module_t* );
int InitModule__MODULE_waveout( module_t* );
int ActivateModule__MODULE_waveout( module_t* );
int DeactivateModule__MODULE_waveout( module_t* );
int InitModule__MODULE_idct( module_t* );
int ActivateModule__MODULE_idct( module_t* );
int DeactivateModule__MODULE_idct( module_t* );
int InitModule__MODULE_idctclassic( module_t* );
int ActivateModule__MODULE_idctclassic( module_t* );
int DeactivateModule__MODULE_idctclassic( module_t* );
int InitModule__MODULE_motion( module_t* );
int ActivateModule__MODULE_motion( module_t* );
int DeactivateModule__MODULE_motion( module_t* );
int InitModule__MODULE_imdct( module_t* );
int ActivateModule__MODULE_imdct( module_t* );
int DeactivateModule__MODULE_imdct( module_t* );
int InitModule__MODULE_downmix( module_t* );
int ActivateModule__MODULE_downmix( module_t* );
int DeactivateModule__MODULE_downmix( module_t* );
int InitModule__MODULE_chroma_i420_rgb( module_t* );
int ActivateModule__MODULE_chroma_i420_rgb( module_t* );
int DeactivateModule__MODULE_chroma_i420_rgb( module_t* );
int InitModule__MODULE_chroma_i420_yuy2( module_t* );
int ActivateModule__MODULE_chroma_i420_yuy2( module_t* );
int DeactivateModule__MODULE_chroma_i420_yuy2( module_t* );
int InitModule__MODULE_chroma_i422_yuy2( module_t* );
int ActivateModule__MODULE_chroma_i422_yuy2( module_t* );
int DeactivateModule__MODULE_chroma_i422_yuy2( module_t* );
int InitModule__MODULE_mpeg_adec( module_t* );
int ActivateModule__MODULE_mpeg_adec( module_t* );
int DeactivateModule__MODULE_mpeg_adec( module_t* );
int InitModule__MODULE_ac3_adec( module_t* );
int ActivateModule__MODULE_ac3_adec( module_t* );
int DeactivateModule__MODULE_ac3_adec( module_t* );
int InitModule__MODULE_dummy( module_t* );
int ActivateModule__MODULE_dummy( module_t* );
int DeactivateModule__MODULE_dummy( module_t* );
int InitModule__MODULE_mpeg_vdec( module_t* );
int ActivateModule__MODULE_mpeg_vdec( module_t* );
int DeactivateModule__MODULE_mpeg_vdec( module_t* );
int InitModule__MODULE_dvd( module_t* );
int ActivateModule__MODULE_dvd( module_t* );
int DeactivateModule__MODULE_dvd( module_t* );
int InitModule__MODULE_wall( module_t* );
int ActivateModule__MODULE_wall( module_t* );
int DeactivateModule__MODULE_wall( module_t* );
#define ALLOCATE_ALL_BUILTINS() \
do \
{ \
ALLOCATE_BUILTIN(null); \
ALLOCATE_BUILTIN(mpeg_es); \
ALLOCATE_BUILTIN(mpeg_ps); \
ALLOCATE_BUILTIN(mpeg_ts); \
ALLOCATE_BUILTIN(file); \
ALLOCATE_BUILTIN(memcpy); \
ALLOCATE_BUILTIN(lpcm_adec); \
ALLOCATE_BUILTIN(spudec); \
ALLOCATE_BUILTIN(directx); \
ALLOCATE_BUILTIN(waveout); \
ALLOCATE_BUILTIN(idct); \
ALLOCATE_BUILTIN(idctclassic); \
ALLOCATE_BUILTIN(motion); \
ALLOCATE_BUILTIN(imdct); \
ALLOCATE_BUILTIN(downmix); \
ALLOCATE_BUILTIN(chroma_i420_rgb); \
ALLOCATE_BUILTIN(chroma_i420_yuy2); \
ALLOCATE_BUILTIN(chroma_i422_yuy2); \
ALLOCATE_BUILTIN(mpeg_adec); \
ALLOCATE_BUILTIN(ac3_adec); \
ALLOCATE_BUILTIN(dummy); \
ALLOCATE_BUILTIN(mpeg_vdec); \
ALLOCATE_BUILTIN(dvd); \
ALLOCATE_BUILTIN(wall); \
} while( 0 );
In this directory you will find a Microsoft Visual Studio C++ 6 project
to build vlc.
You should be aware that this project should mainly be used for debugging vlc.
Most of the hardware accelerated plugins can't be built from MSVC as they are
programmed in assembly using the GCC asm syntax and MSVC doesn't understand
this.
Also you shouldn't expect this project to be working out of the box as you
need to configure it to include the GTK headers and libraries.
\ No newline at end of file
This diff is collapsed.
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "vlc"=.\vlc.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################
......@@ -81,3 +81,13 @@ LIB32=link.exe -lib
# Name "libvlc - Win32 Release"
# Name "libvlc - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
SOURCES
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
HEADERS
# End Group
# End Target
# End Project
......@@ -84,3 +84,30 @@ LINK32=link.exe
# Name "vlc - Win32 Release"
# Name "vlc - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
SOURCES
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# Begin Source File
SOURCE=..\share\vlc_win32_rc.rc
!IF "$(CFG)" == "vlc - Win32 Release"
!ELSEIF "$(CFG)" == "vlc - Win32 Debug"
# ADD BASE RSC /l 0x40c /i "\vlc-win32\share" /i "\vlc-win\share"
# SUBTRACT BASE RSC /i "../"
# ADD RSC /l 0x40c /i "\vlc-win32\share" /i "\vlc-win\share" /i "../../"
# SUBTRACT RSC /i "../"
!ENDIF
# End Source File
# End Group
# End Target
# End Project
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# Begin Source File
SOURCE=..\share\vlc_win32_rc.rc
!IF "$(CFG)" == "vlc - Win32 Release"
!ELSEIF "$(CFG)" == "vlc - Win32 Debug"
# ADD BASE RSC /l 0x40c /i "\vlc-win32\share" /i "\vlc-win\share"
# SUBTRACT BASE RSC /i "../"
# ADD RSC /l 0x40c /i "\vlc-win32\share" /i "\vlc-win\share" /i "../../"
# SUBTRACT RSC /i "../"
!ENDIF
# End Source File
# End Group
# End Target
# End Project
......@@ -2,7 +2,7 @@
* modules.c : Builtin and plugin modules management functions
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: modules.c,v 1.106 2002/11/18 18:37:23 gbazin Exp $
* $Id: modules.c,v 1.107 2002/11/19 17:38:07 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Ethan C. Baldridge <BaldridgeE@cadmus.com>
......@@ -559,7 +559,7 @@ static void AllocateAllPlugins( vlc_object_t *p_this )
#endif
#if defined( UNDER_CE )
wchar_t psz_dir[MAX_PATH];
wchar_t psz_dir[MAX_PATH];
#endif
/* If the user provided a plugin path, we add it to the list */
......@@ -735,6 +735,14 @@ static int AllocatePluginFile( vlc_object_t * p_this, MYCHAR * psz_file )
module_t * p_module;
module_handle_t handle;
#ifdef UNDER_CE
char psz_filename[MAX_PATH];
WideCharToMultiByte( CP_ACP, WC_DEFAULTCHAR, psz_file, -1,
psz_filename, MAX_PATH, NULL, NULL );
#else
char * psz_filename = psz_file;
#endif
/* Try to dynamically load the module. */
if( module_load( psz_file, &handle ) )
{
......@@ -742,7 +750,7 @@ static int AllocatePluginFile( vlc_object_t * p_this, MYCHAR * psz_file )
/* The plugin module couldn't be opened */
msg_Warn( p_this, "cannot open `%s' (%s)",
psz_file, module_error( psz_buffer ) );
psz_filename, module_error( psz_buffer ) );
return -1;
}
......@@ -757,8 +765,7 @@ static int AllocatePluginFile( vlc_object_t * p_this, MYCHAR * psz_file )
}
/* We need to fill these since they may be needed by CallEntry() */
/* FIXME: this is not unicode-compliant */
p_module->psz_filename = (char *)psz_file;
p_module->psz_filename = psz_filename;
p_module->handle = handle;
p_module->p_symbols = &p_this->p_libvlc->p_module_bank->symbols;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment