From 3613ec26601aa0308310b26a9cbf421f82254b3b Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sat, 31 Dec 2005 21:41:27 +0000 Subject: [PATCH] add msvc spidermonkey build. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@249 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- w32/vsnet/GetLibs.vbs | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/w32/vsnet/GetLibs.vbs b/w32/vsnet/GetLibs.vbs index b54d944a07..06e28afb48 100644 --- a/w32/vsnet/GetLibs.vbs +++ b/w32/vsnet/GetLibs.vbs @@ -18,6 +18,7 @@ BuildModCodecGSM=False BuildModXMPPEvent=False BuildModsndfile=False BuildModrawaudio=False +BuildSpiderMonkey=False quote=Chr(34) ScriptDir=Left(WScript.ScriptFullName,Len(WScript.ScriptFullName)-Len(WScript.ScriptName)) @@ -70,6 +71,7 @@ If objArgs.Count >=1 Then BuildModXMPPEvent=True BuildModsndfile=True BuildModrawaudio=True + BuildSpiderMonkey=True End Select Else BuildCore=True @@ -81,6 +83,7 @@ Else BuildModXMPPEvent=True BuildModsndfile=True BuildModrawaudio=True + BuildSpiderMonkey=True End If @@ -124,6 +127,10 @@ If BuildModrawaudio Then BuildLibs_Modrawaudio BuildDebug, BuildRelease End If +If BuildSpiderMonkey Then + BuildLibs_SpiderMonkey BuildDebug, BuildRelease +End If + WScript.Echo "Complete" Sub BuildLibs_Core(BuildDebug, BuildRelease) @@ -559,6 +566,36 @@ Sub BuildLibs_Modrawaudio(BuildDebug, BuildRelease) 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) Set oExec = WshShell.Exec(quote & DevEnv & quote & " " & quote & ProjectFile & quote & " /Upgrade ")