add msvc spidermonkey build.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@249 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2005-12-31 21:41:27 +00:00
parent 48a3c004a9
commit 3613ec2660
1 changed files with 37 additions and 0 deletions

View File

@ -18,6 +18,7 @@ BuildModCodecGSM=False
BuildModXMPPEvent=False BuildModXMPPEvent=False
BuildModsndfile=False BuildModsndfile=False
BuildModrawaudio=False BuildModrawaudio=False
BuildSpiderMonkey=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))
@ -70,6 +71,7 @@ If objArgs.Count >=1 Then
BuildModXMPPEvent=True BuildModXMPPEvent=True
BuildModsndfile=True BuildModsndfile=True
BuildModrawaudio=True BuildModrawaudio=True
BuildSpiderMonkey=True
End Select End Select
Else Else
BuildCore=True BuildCore=True
@ -81,6 +83,7 @@ Else
BuildModXMPPEvent=True BuildModXMPPEvent=True
BuildModsndfile=True BuildModsndfile=True
BuildModrawaudio=True BuildModrawaudio=True
BuildSpiderMonkey=True
End If End If
@ -124,6 +127,10 @@ If BuildModrawaudio Then
BuildLibs_Modrawaudio BuildDebug, BuildRelease BuildLibs_Modrawaudio BuildDebug, BuildRelease
End If End If
If BuildSpiderMonkey Then
BuildLibs_SpiderMonkey BuildDebug, BuildRelease
End If
WScript.Echo "Complete" WScript.Echo "Complete"
Sub BuildLibs_Core(BuildDebug, BuildRelease) Sub BuildLibs_Core(BuildDebug, BuildRelease)
@ -559,6 +566,36 @@ Sub BuildLibs_Modrawaudio(BuildDebug, BuildRelease)
End Sub End Sub
Sub BuildLibs_SpiderMonkey(BuildDebug, BuildRelease)
If Not FSO.FolderExists(LibDestDir & "js") Then
WgetUnZip "http://www.sofaswitch.com/mikej/js20051231.zip", LibDestDir
RenameFolder LibDestDir & "js20051231", "js"
WgetUnZip "http://www.sofaswitch.com/mikej/nspr-4.6.1.winnt5.debug.zip", LibDestDir & "js"
WgetUnZip "http://www.sofaswitch.com/mikej/nspr-4.6.1.winnt5.release.zip", LibDestDir & "js"
FSO.CreateFolder LibDestDir & "js\nspr\"
FSO.CopyFolder LibDestDir & "js\nspr-4.6.1.winnt5.debug\nspr-4.6.1\*", LibDestDir & "js\nspr\",true
End If
If FSO.FolderExists(LibDestDir & "js") Then
If BuildDebug Then
FSO.CopyFolder LibDestDir & "js\nspr-4.6.1.winnt5.debug\nspr-4.6.1\*", LibDestDir & "js\nspr\",true
If Not FSO.FileExists(LibDestDir & "js\src\Debug\js32.dll") Then
BuildViaVCBuild LibDestDir & "js\src\fdlibm\fdlibm.vcproj", "Debug"
BuildViaVCBuild LibDestDir & "js\src\js.vcproj", "Debug"
End If
End If
If BuildRelease Then
FSO.CopyFolder LibDestDir & "js\nspr-4.6.1.winnt5.release\nspr-4.6.1\*", LibDestDir & "js\nspr\",true
If Not FSO.FileExists(LibDestDir & "js\src\Release\js32.dll") Then
BuildViaVCBuild LibDestDir & "js\src\fdlibm\fdlibm.vcproj", "Release"
BuildViaVCBuild LibDestDir & "js\src\js.vcproj", "Release"
End If
End If
Else
Wscript.echo "Unable to download spidermonkey"
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 ")