add command line build to script for msvc in preparation for adding continuous integration building for windows. Usage example: cscript GetLibs.vbs Build Release
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@808 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
c8771e5c0e
commit
0fe17aff72
|
@ -13,6 +13,7 @@ Dim vcver, DevEnv, VCBuild
|
||||||
BuildRelease=False
|
BuildRelease=False
|
||||||
BuildDebug=False
|
BuildDebug=False
|
||||||
BuildCore=False
|
BuildCore=False
|
||||||
|
AutoBuild=False
|
||||||
BuildVersion=False
|
BuildVersion=False
|
||||||
BuildModExosip=False
|
BuildModExosip=False
|
||||||
BuildModIaxChan=False
|
BuildModIaxChan=False
|
||||||
|
@ -60,6 +61,8 @@ End If
|
||||||
|
|
||||||
If objArgs.Count >=1 Then
|
If objArgs.Count >=1 Then
|
||||||
Select Case objArgs(0)
|
Select Case objArgs(0)
|
||||||
|
Case "Build"
|
||||||
|
AutoBuild=True
|
||||||
Case "Core"
|
Case "Core"
|
||||||
BuildCore=True
|
BuildCore=True
|
||||||
Case "Version"
|
Case "Version"
|
||||||
|
@ -125,6 +128,15 @@ If BuildVersion Then
|
||||||
CreateSwitchVersion
|
CreateSwitchVersion
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If AutoBuild Then
|
||||||
|
If BuildDebug Then
|
||||||
|
BuildViaVCBuild ScriptDir & "Freeswitch.sln", "DEBUG|WIN32"
|
||||||
|
End If
|
||||||
|
If BuildRelease Then
|
||||||
|
BuildViaVCBuild ScriptDir & "Freeswitch.sln", "RELEASE|WIN32"
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
If BuildCore Then
|
If BuildCore Then
|
||||||
CreateSwitchVersion
|
CreateSwitchVersion
|
||||||
|
|
||||||
|
@ -807,7 +819,7 @@ End Sub
|
||||||
|
|
||||||
Sub BuildViaVCBuild(ProjectFile, BuildType)
|
Sub BuildViaVCBuild(ProjectFile, BuildType)
|
||||||
Wscript.echo "Building : " & ProjectFile & " Config type: " & BuildType
|
Wscript.echo "Building : " & ProjectFile & " Config type: " & BuildType
|
||||||
BuildCmd=quote & VCBuild & quote & " /nologo /nocolor " & quote & ProjectFile & quote & " " & BuildType
|
BuildCmd=quote & VCBuild & quote & " /nologo /nocolor " & quote & ProjectFile & quote & " " & quote & BuildType & quote
|
||||||
Set MyFile = fso.CreateTextFile(UtilsDir & "tmpBuild.Bat", True)
|
Set MyFile = fso.CreateTextFile(UtilsDir & "tmpBuild.Bat", True)
|
||||||
MyFile.WriteLine("@" & BuildCmd)
|
MyFile.WriteLine("@" & BuildCmd)
|
||||||
MyFile.Close
|
MyFile.Close
|
||||||
|
|
Loading…
Reference in New Issue