mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 08:29:45 +00:00
add libresample to mod_rawaudio in msvc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@229 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
7a5aa1186a
commit
b7ef260197
@ -25,6 +25,7 @@
|
|||||||
>
|
>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPreBuildEventTool"
|
Name="VCPreBuildEventTool"
|
||||||
|
CommandLine="cscript /nologo $(InputDir)..\..\..\w32\vsnet\getlibs.vbs Mod_rawaudio Debug"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCustomBuildTool"
|
Name="VCCustomBuildTool"
|
||||||
@ -62,9 +63,10 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="libresampled.lib"
|
||||||
OutputFile="..\..\..\w32\vsnet\$(OutDir)/mod/mod_rawaudio.dll"
|
OutputFile="..\..\..\w32\vsnet\$(OutDir)/mod/mod_rawaudio.dll"
|
||||||
LinkIncremental="2"
|
LinkIncremental="2"
|
||||||
AdditionalLibraryDirectories="$(InputDir)..\..\libs\apr\Debug"
|
AdditionalLibraryDirectories=""$(InputDir)..\..\..\libs\libresample\win""
|
||||||
GenerateDebugInformation="true"
|
GenerateDebugInformation="true"
|
||||||
ProgramDatabaseFile="$(OutDir)/mod_rawaudio.pdb"
|
ProgramDatabaseFile="$(OutDir)/mod_rawaudio.pdb"
|
||||||
SubSystem="2"
|
SubSystem="2"
|
||||||
@ -106,6 +108,7 @@
|
|||||||
>
|
>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPreBuildEventTool"
|
Name="VCPreBuildEventTool"
|
||||||
|
CommandLine="cscript /nologo $(InputDir)..\..\..\w32\vsnet\getlibs.vbs Mod_rawaudio Release"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCustomBuildTool"
|
Name="VCCustomBuildTool"
|
||||||
@ -140,9 +143,10 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="libresample.lib"
|
||||||
OutputFile="..\..\..\w32\vsnet\$(OutDir)/mod/mod_rawaudio.dll"
|
OutputFile="..\..\..\w32\vsnet\$(OutDir)/mod/mod_rawaudio.dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
AdditionalLibraryDirectories=""$(InputDir)..\..\libs\apr\Release""
|
AdditionalLibraryDirectories=""$(InputDir)..\..\..\libs\libresample\win""
|
||||||
GenerateDebugInformation="true"
|
GenerateDebugInformation="true"
|
||||||
SubSystem="2"
|
SubSystem="2"
|
||||||
OptimizeReferences="2"
|
OptimizeReferences="2"
|
||||||
|
@ -17,6 +17,7 @@ BuildModCodecG729=False
|
|||||||
BuildModCodecGSM=False
|
BuildModCodecGSM=False
|
||||||
BuildModXMPPEvent=False
|
BuildModXMPPEvent=False
|
||||||
BuildModsndfile=False
|
BuildModsndfile=False
|
||||||
|
BuildModrawaudio=False
|
||||||
quote=Chr(34)
|
quote=Chr(34)
|
||||||
ScriptDir=Left(WScript.ScriptFullName,Len(WScript.ScriptFullName)-Len(WScript.ScriptName))
|
ScriptDir=Left(WScript.ScriptFullName,Len(WScript.ScriptFullName)-Len(WScript.ScriptName))
|
||||||
|
|
||||||
@ -57,6 +58,8 @@ If objArgs.Count >=1 Then
|
|||||||
BuildModXMPPEvent=True
|
BuildModXMPPEvent=True
|
||||||
Case "Mod_sndfile"
|
Case "Mod_sndfile"
|
||||||
BuildModsndfile=True
|
BuildModsndfile=True
|
||||||
|
Case "Mod_rawaudio"
|
||||||
|
BuildModrawaudio=True
|
||||||
Case Else
|
Case Else
|
||||||
BuildCore=True
|
BuildCore=True
|
||||||
BuildModExosip=True
|
BuildModExosip=True
|
||||||
@ -66,6 +69,7 @@ If objArgs.Count >=1 Then
|
|||||||
BuildModCodecG729=True
|
BuildModCodecG729=True
|
||||||
BuildModXMPPEvent=True
|
BuildModXMPPEvent=True
|
||||||
BuildModsndfile=True
|
BuildModsndfile=True
|
||||||
|
BuildModrawaudio=True
|
||||||
End Select
|
End Select
|
||||||
Else
|
Else
|
||||||
BuildCore=True
|
BuildCore=True
|
||||||
@ -76,6 +80,7 @@ Else
|
|||||||
BuildModCodecG729=True
|
BuildModCodecG729=True
|
||||||
BuildModXMPPEvent=True
|
BuildModXMPPEvent=True
|
||||||
BuildModsndfile=True
|
BuildModsndfile=True
|
||||||
|
BuildModrawaudio=True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
@ -115,6 +120,10 @@ If BuildModsndfile Then
|
|||||||
BuildLibs_Modsndfile BuildDebug, BuildRelease
|
BuildLibs_Modsndfile BuildDebug, BuildRelease
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If BuildModrawaudio Then
|
||||||
|
BuildLibs_Modrawaudio BuildDebug, BuildRelease
|
||||||
|
End If
|
||||||
|
|
||||||
WScript.Echo "Complete"
|
WScript.Echo "Complete"
|
||||||
|
|
||||||
Sub BuildLibs_Core(BuildDebug, BuildRelease)
|
Sub BuildLibs_Core(BuildDebug, BuildRelease)
|
||||||
@ -528,6 +537,29 @@ Sub BuildLibs_Modsndfile(BuildDebug, BuildRelease)
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Sub BuildLibs_Modrawaudio(BuildDebug, BuildRelease)
|
||||||
|
If Not FSO.FolderExists(LibDestDir & "libresample") Then
|
||||||
|
WgetUnZip "http://www.sofaswitch.com/mikej/libresample-0.1.3.zip", LibDestDir
|
||||||
|
RenameFolder LibDestDir & "libresample-0.1.3", "libresample"
|
||||||
|
End If
|
||||||
|
If FSO.FolderExists(LibDestDir & "libresample") Then
|
||||||
|
If BuildDebug Then
|
||||||
|
If Not FSO.FileExists(LibDestDir & "libresample\win\libresampled.lib") Then
|
||||||
|
BuildViaVCBuild LibDestDir & "libresample\win\libresample.vcproj", "Debug"
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
If BuildRelease Then
|
||||||
|
If Not FSO.FileExists(LibDestDir & "libresample\win\libresample.lib") Then
|
||||||
|
BuildViaVCBuild LibDestDir & "libresample\win\libresample.vcproj", "Release"
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
Wscript.echo "Unable to download libresample"
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
Sub UpgradeViaDevEnv(ProjectFile)
|
Sub UpgradeViaDevEnv(ProjectFile)
|
||||||
Set oExec = WshShell.Exec(quote & DevEnv & quote & " " & quote & ProjectFile & quote & " /Upgrade ")
|
Set oExec = WshShell.Exec(quote & DevEnv & quote & " " & quote & ProjectFile & quote & " /Upgrade ")
|
||||||
Do While oExec.Status <> 1
|
Do While oExec.Status <> 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user