Add support for flac metatag reading and playback on win32.

This commit is contained in:
Ron Pedde 2006-05-28 06:36:28 +00:00
parent 89b6af89b3
commit e7d04dbd6b
3 changed files with 14 additions and 6 deletions

View File

@ -33,9 +33,12 @@
#include <stdlib.h>
#include <string.h>
#include <netinet/in.h> /* htons and friends */
#ifndef WIN32
# include <netinet/in.h> /* htons and friends */
# include <dirent.h> /* why here? For osx 10.2, of course! */
#endif
#include <sys/stat.h>
#include <dirent.h> /* why here? For osx 10.2, of course! */
#include "restart.h"
#include "daapd.h"

View File

@ -21,7 +21,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="$(InputDir),..\src,.,.."
PreprocessorDefinitions="HAVE_CONFIG_H;ZLIB_DLL;_WINDOWS"
PreprocessorDefinitions="HAVE_CONFIG_H;ZLIB_DLL;_WINDOWS;FLAC"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
RuntimeLibrary="5"
@ -33,7 +33,7 @@
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="zdll.lib libid3tag.lib gnu_regex.lib pthreadVC2.lib wsock32.lib sqlite3.lib sqlite.lib dnssd.lib"
AdditionalDependencies="zdll.lib libid3tag.lib gnu_regex.lib pthreadVC2.lib wsock32.lib sqlite3.lib sqlite.lib dnssd.lib libFLAC.lib"
OutputFile="$(OutDir)/mt-daapd.exe"
LinkIncremental="2"
AdditionalLibraryDirectories=""
@ -74,7 +74,7 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="$(InputDir),..\src,.,.."
PreprocessorDefinitions="HAVE_CONFIG_H;ZLIB_DLL;_WINDOWS"
PreprocessorDefinitions="HAVE_CONFIG_H;ZLIB_DLL;_WINDOWS;FLAC"
RuntimeLibrary="4"
UsePrecompiledHeader="0"
WarningLevel="3"
@ -84,7 +84,7 @@
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="zdll.lib libid3tag.lib gnu_regex.lib pthreadVC2.lib wsock32.lib sqlite3.lib sqlite.lib dnssd.lib"
AdditionalDependencies="zdll.lib libid3tag.lib gnu_regex.lib pthreadVC2.lib wsock32.lib sqlite3.lib sqlite.lib dnssd.lib libFLAC.lib"
OutputFile="$(OutDir)/mt-daapd.exe"
LinkIncremental="1"
AdditionalLibraryDirectories=""
@ -188,6 +188,9 @@
<File
RelativePath="..\src\scan-aac.c">
</File>
<File
RelativePath="..\src\scan-flac.c">
</File>
<File
RelativePath="..\src\scan-mp3.c">
</File>

View File

@ -120,6 +120,7 @@ Section "MainSection" SEC01
File "${DLL_SOURCE}\avutil.dll"
File "${DLL_SOURCE}\avcodec.dll"
File "${DLL_SOURCE}\avformat.dll"
File "${DLL_SOURCE}\libFLAC.dll"
SetOutPath "$2\plugins"
File "${MTD_SOURCE}\rsp.dll"
@ -409,6 +410,7 @@ Section Uninstall
Delete "$INSTDIR\avutil.dll"
Delete "$INSTDIR\avcodec.dll"
Delete "$INSTDIR\avformat.dll"
Delete "$INSTDIR\libFLAC.dll"
Delete "$INSTDIR\plugins\rsp.dll"
Delete "$INSTDIR\plugins\w32-event.dll"
Delete "$INSTDIR\plugins\ssc-ffmpeg.dll"