mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-17 23:08:35 +00:00
Create switch_version.h on msvc.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@287 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
cf35a019e5
commit
94bb9e855d
5 files changed
+117
-2
No files matched your search
@@ -315,6 +315,10 @@
|
||||
RelativePath="..\..\src\include\switch_utils.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\include\switch_version.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
|
||||
@@ -27,6 +27,7 @@ quote=Chr(34)
|
||||
ScriptDir=Left(WScript.ScriptFullName,Len(WScript.ScriptFullName)-Len(WScript.ScriptName))
|
||||
|
||||
LibDestDir=Showpath(ScriptDir & "..\..\libs")
|
||||
FreeswitchDir=Showpath(ScriptDir & "..\..")
|
||||
UtilsDir=Showpath(ScriptDir & "Tools")
|
||||
GetTarGZObjects UtilsDir
|
||||
GetVCBuild
|
||||
@@ -100,6 +101,19 @@ End If
|
||||
' ******************
|
||||
|
||||
If BuildCore Then
|
||||
FSO.CopyFile FreeswitchDir & "src\include\switch_version.h.in", FreeswitchDir & "src\include\switch_version.h", true
|
||||
VersionCmd="svnversion " & FreeswitchDir & " -n"
|
||||
Set MyFile = fso.CreateTextFile(UtilsDir & "tmpVersion.Bat", True)
|
||||
MyFile.WriteLine("@" & VersionCmd)
|
||||
MyFile.Close
|
||||
Set oExec = WshShell.Exec(UtilsDir & "tmpVersion.Bat")
|
||||
Do
|
||||
strFromProc = OExec.StdOut.ReadLine()
|
||||
VERSION=strFromProc
|
||||
Loop While Not OExec.StdOut.atEndOfStream
|
||||
|
||||
FindReplaceInFile FreeswitchDir & "src\include\switch_version.h", "#define FREESWITCH_VERSION_REVISION", "#define FREESWITCH_VERSION_REVISION " & VERSION
|
||||
|
||||
If Not FSO.FolderExists(LibDestDir & "include") Then
|
||||
FSO.CreateFolder(LibDestDir & "include")
|
||||
End If
|
||||
|
||||
Reference in new issue
Block a user