- # Sources that get built under Win32
- LIBVLC_SOURCES=`make show-libvlc-sources | grep '^X: ' | cut -b3-`
- LIBVLC_HEADERS=`make show-libvlc-headers | grep '^X: ' | cut -b3-`
- LIBVLC_PKG_HEADERS=`make show-libvlc-pkg-headers | grep '^X: ' | cut -b3-`
-
- # libvlc files
- for target in evc/libvlc.vcp msvc/libvlc.dsp
- 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}
-EOF
- for file in `for i in ${LIBVLC_SOURCES} ; do echo $i ; done | grep -v "/.*/"`
- do
- cat >> ${target} << EOF
-# Begin Source File${M}
-SOURCE="..\\`echo $file | sed -e 's%/%\\\\%g'`"${M}
-# ADD CPP /D "__VLC__" /D PLUGIN_PATH=\\"plugins\\" /D DATA_PATH=\\"share\\"${M}
-# End Source File${M}
-EOF
- done
- for subdir in `for i in ${LIBVLC_SOURCES} ; do echo $i ; done | grep "/.*/" | cut -f2 -d/ | sort | uniq`
- do
- cat >> ${target} << EOF
-# Begin Group "${subdir}"${M}
-EOF
- for file in `for i in ${LIBVLC_SOURCES} ; do echo $i ; done | grep "/${subdir}/"`
- do
- if test "${target}" = "evc/libvlc.vcp"
- then
- cat >> ${target} << EOF
-# Begin Source File${M}
-SOURCE="..\\`echo $file | sed -e 's%/%\\\\%g'`"${M}
-# ADD CPP /D "__VLC__" /D PLUGIN_PATH=\\"plugins\\" /D DATA_PATH=\\"share\\"${M}
-!IF "\$(CFG)" == "vlc - Win32 (WCE MIPS) Release"${M}
-# PROP Intermediate_Dir "MIPSRel\\${subdir}"${M}
-# PROP Output_Dir "MIPSRel\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE MIPS) Debug"${M}
-# PROP Intermediate_Dir "MIPSDbg\\${subdir}"${M}
-# PROP Output_Dir "MIPSDbg\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE SH4) Release"${M}
-# PROP Intermediate_Dir "SH4Rel\\${subdir}"${M}
-# PROP Output_Dir "SH4Rel\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE SH4) Debug"${M}
-# PROP Intermediate_Dir "SH4Dbg\\${subdir}"${M}
-# PROP Output_Dir "SH4Dbg\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE SH3) Release"${M}
-# PROP Intermediate_Dir "SH3Rel\\${subdir}"${M}
-# PROP Output_Dir "SH3Rel\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE SH3) Debug"${M}
-# PROP Intermediate_Dir "SH3Dbg\\${subdir}"${M}
-# PROP Output_Dir "SH3Dbg\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE ARM) Release"${M}
-# PROP Intermediate_Dir "ARMRel\\${subdir}"${M}
-# PROP Output_Dir "ARMRel\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE ARM) Debug"${M}
-# PROP Intermediate_Dir "ARMDbg\\${subdir}"${M}
-# PROP Output_Dir "ARMDbg\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE x86em) Release"${M}
-# PROP Intermediate_Dir "X86EMRel\\${subdir}"${M}
-# PROP Output_Dir "X86EMRel\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 (WCE x86em) Debug"${M}
-# PROP Intermediate_Dir "X86EMDbg\\${subdir}"${M}
-# PROP Output_Dir "X86EMDbg\\${subdir}"${M}
-!ENDIF${M}
-# End Source File${M}
-EOF
- else
- cat >> ${target} << EOF
-# Begin Source File${M}
-SOURCE="..\\`echo $file | sed -e 's%/%\\\\%g'`"${M}
-# ADD CPP /D "__VLC__" /D PLUGIN_PATH=\\"plugins\\" /D DATA_PATH=\\"share\\"${M}
-!IF "\$(CFG)" == "vlc - Win32 Release"${M}
-# PROP Intermediate_Dir "Release\\${subdir}"${M}
-# PROP Output_Dir "Release\\${subdir}"${M}
-!ELSEIF "\$(CFG)" == "vlc - Win32 Debug"${M}
-# PROP Intermediate_Dir "Debug\\${subdir}"${M}
-# PROP Output_Dir "Debug\\${subdir}"${M}
-!ENDIF${M}
-# End Source File${M}
-EOF
- fi
- done
- cat >> ${target} << 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
- for file in ${LIBVLC_HEADERS}
- do
- cat >> ${target} << EOF
-# Begin Source File${M}
-SOURCE="..\\`echo $file | sed -e 's%/%\\\\%g'`"${M}
-# End Source File${M}
-EOF
- done
- cat >> ${target} << EOF
-# Begin Group "vlc"${M}
-EOF
- for file in ${LIBVLC_PKG_HEADERS}
- do
- cat >> ${target} << EOF
-# Begin Source File${M}
-SOURCE="..\\`echo $file | sed -e 's%/%\\\\%g'`"${M}
-# End Source File${M}
-EOF
- done
- cat >> ${target} << EOF
-# End Group${M}
-# End Group${M}
-# End Target${M}
-# End Project${M}
-EOF
- done
-
- # plugins files
- for target in evc/plugins.vcp msvc/plugins.dsp
- 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}
-EOF
- done
-
- # vlc files
- for target in evc/vlc.vcp msvc/vlc.dsp
- 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}
-# Begin Source File${M}
-EOF
- if test "${target}" = "evc/vlc.vcp"
- then
- cat >> ${target} << EOF
-SOURCE="..\\evc\\vlc.c"${M}
-EOF
- else
- cat >> ${target} << EOF
-SOURCE="..\\src\\vlc.c"${M}
-EOF
- fi
- cat >> ${target} << EOF
-# End Source File${M}
-# End Group${M}
-EOF
- # Bottom of the project file - handles resource files too
- cat ${target}.out >> ${target}
- done
-
- exit 0