forked from Mirrors/freeswitch
Update GetLibs.vbs for PortAudio
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@97 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
64e29f7b16
commit
50606c2a4c
|
@ -9,8 +9,9 @@ Dim vcver, DevEnv, VCBuild
|
||||||
BuildRelease=False
|
BuildRelease=False
|
||||||
BuildDebug=False
|
BuildDebug=False
|
||||||
BuildCore=False
|
BuildCore=False
|
||||||
BuildModExosip=false
|
BuildModExosip=False
|
||||||
BuildModIaxChan=false
|
BuildModIaxChan=False
|
||||||
|
BuildModPortAudio=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))
|
||||||
|
|
||||||
|
@ -40,15 +41,19 @@ If objArgs.Count >=1 Then
|
||||||
BuildModExosip=True
|
BuildModExosip=True
|
||||||
Case "Mod_IaxChan"
|
Case "Mod_IaxChan"
|
||||||
BuildModIaxChan=True
|
BuildModIaxChan=True
|
||||||
|
Case "Mod_PortAudio"
|
||||||
|
BuildModPortAudio=True
|
||||||
Case Else
|
Case Else
|
||||||
BuildCore=True
|
BuildCore=True
|
||||||
BuildModExosip=True
|
BuildModExosip=True
|
||||||
BuildModIaxChan=True
|
BuildModIaxChan=True
|
||||||
|
BuildModPortAudio=True
|
||||||
End Select
|
End Select
|
||||||
Else
|
Else
|
||||||
BuildCore=True
|
BuildCore=True
|
||||||
BuildModExosip=True
|
BuildModExosip=True
|
||||||
BuildModIaxChan=True
|
BuildModIaxChan=True
|
||||||
|
BuildModPortAudio=True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
@ -64,6 +69,10 @@ If BuildModIaxChan Then
|
||||||
BuildLibs_ModIaxChan BuildDebug, BuildRelease
|
BuildLibs_ModIaxChan BuildDebug, BuildRelease
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If BuildModPortAudio Then
|
||||||
|
BuildLibs_ModPortAudio BuildDebug, BuildRelease
|
||||||
|
End If
|
||||||
|
|
||||||
WScript.Echo "Complete"
|
WScript.Echo "Complete"
|
||||||
|
|
||||||
Sub BuildLibs_Core(BuildDebug, BuildRelease)
|
Sub BuildLibs_Core(BuildDebug, BuildRelease)
|
||||||
|
@ -248,6 +257,28 @@ Sub BuildLibs_ModIaxChan(BuildDebug, BuildRelease)
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Sub BuildLibs_ModPortAudio(BuildDebug, BuildRelease)
|
||||||
|
If Not FSO.FolderExists(LibDestDir & "PortAudio") Then
|
||||||
|
WgetUnZip "http://www.sofaswitch.org/mikej/portaudio_v18_1.zip", LibDestDir
|
||||||
|
RenameFolder LibDestDir & "portaudio_v18_1", "PortAudio"
|
||||||
|
End If
|
||||||
|
If FSO.FolderExists(LibDestDir & "PortAudio") Then
|
||||||
|
If BuildDebug Then
|
||||||
|
If Not FSO.FileExists(LibDestDir & "PortAudio\Lib\PAStaticWMMED.lib") Then
|
||||||
|
BuildViaVCBuild LibDestDir & "PortAudio\winvc\PAStaticWMME\PAStaticWMME.vcproj", "Debug"
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
If BuildRelease Then
|
||||||
|
If Not FSO.FileExists(LibDestDir & "PortAudio\Lib\PAStaticWMME.lib") Then
|
||||||
|
BuildViaVCBuild LibDestDir & "PortAudio\winvc\PAStaticWMME\PAStaticWMME.vcproj", "Release"
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
Wscript.echo "Unable to download PortAudio"
|
||||||
|
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…
Reference in New Issue