]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Create switch_version.h on msvc.
authorMichael Jerris <mike@jerris.com>
Thu, 5 Jan 2006 22:51:01 +0000 (22:51 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 5 Jan 2006 22:51:01 +0000 (22:51 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@287 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_apr.h
src/include/switch_version.h [new file with mode: 0644]
src/include/switch_version.h.in [new file with mode: 0644]
w32/vsnet/FreeSwitchCore.vcproj
w32/vsnet/GetLibs.vbs

index c8eb89174a3e5d0ae0cd849af1958611f9253c5a..f585c0d7643a9364c75e1a4b314f50f8dcedac16 100644 (file)
@@ -131,8 +131,6 @@ typedef apr_file_t switch_file_t;
 #define SWITCH_FOPEN_NOCLEANUP APR_FOPEN_NOCLEANUP                                     /**< Do not register a cleanup when the file is opened */
 #define SWITCH_FOPEN_SENDFILE_ENABLED APR_FOPEN_SENDFILE_ENABLED       /**< Advisory flag that this file should support apr_socket_sendfile operation */
 #define SWITCH_FOPEN_LARGEFILE APR_FOPEN_LAREFILE                                      /**< Platform dependent flag to enable large file support */
-
-#define SWITCH_READ APR_READ                           /**< @deprecated @see SWITCH_FOPEN_READ */
 /** @} */
 
 /**
diff --git a/src/include/switch_version.h b/src/include/switch_version.h
new file mode 100644 (file)
index 0000000..7e4fb85
--- /dev/null
@@ -0,0 +1,50 @@
+/* 
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
+ * Copyright (C) 2005/2006, Anthony Minessale II <anthmct@yahoo.com>
+ *
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
+ *
+ * The Initial Developer of the Original Code is
+ * Anthony Minessale II <anthmct@yahoo.com>
+ * Portions created by the Initial Developer are Copyright (C)
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ * 
+ * Anthony Minessale II <anthmct@yahoo.com>
+ * Michael Jerris <mike@jerris.com>
+ *
+ * switch_version.h -- Version Number Header
+ *
+ */
+
+#ifndef SWITCH_VERSION_H
+#define SWITCH_VERSION_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define FREESWITCH_VERSION_MAJOR                       1
+#define FREESWITCH_VERSION_MINOR                       0
+#define FREESWITCH_VERSION_REVISION 288M
+#define FREESWITCH_VERSION_FULL                                FREESWITCH_VERSION_MAJOR.FREESWITCH_VERSION_MINOR.FREESWITCH_VERSION_REVISION
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+\r
diff --git a/src/include/switch_version.h.in b/src/include/switch_version.h.in
new file mode 100644 (file)
index 0000000..ff7e3b4
--- /dev/null
@@ -0,0 +1,49 @@
+/* 
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
+ * Copyright (C) 2005/2006, Anthony Minessale II <anthmct@yahoo.com>
+ *
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
+ *
+ * The Initial Developer of the Original Code is
+ * Anthony Minessale II <anthmct@yahoo.com>
+ * Portions created by the Initial Developer are Copyright (C)
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ * 
+ * Anthony Minessale II <anthmct@yahoo.com>
+ * Michael Jerris <mike@jerris.com>
+ *
+ * switch_version.h -- Version Number Header
+ *
+ */
+
+#ifndef SWITCH_VERSION_H
+#define SWITCH_VERSION_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define FREESWITCH_VERSION_MAJOR                       1
+#define FREESWITCH_VERSION_MINOR                       0
+#define FREESWITCH_VERSION_REVISION
+#define FREESWITCH_VERSION_FULL                                FREESWITCH_VERSION_MAJOR.FREESWITCH_VERSION_MINOR.FREESWITCH_VERSION_REVISION
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
index 144f8979721e74b3450bb41e825eef2649d6c105..b01748eb100cb0fd7a076fb69aa443e1a5bce26e 100644 (file)
                                RelativePath="..\..\src\include\switch_utils.h"\r
                                >\r
                        </File>\r
+                       <File\r
+                               RelativePath="..\..\src\include\switch_version.h"\r
+                               >\r
+                       </File>\r
                </Filter>\r
                <Filter\r
                        Name="Resource Files"\r
index c2517392624c09ee72df1497568dc41a77c834aa..2878a0728d59da41474196b4e019f35050c459ff 100644 (file)
@@ -27,6 +27,7 @@ quote=Chr(34)
 ScriptDir=Left(WScript.ScriptFullName,Len(WScript.ScriptFullName)-Len(WScript.ScriptName))\r
 \r
 LibDestDir=Showpath(ScriptDir & "..\..\libs")\r
+FreeswitchDir=Showpath(ScriptDir & "..\..")\r
 UtilsDir=Showpath(ScriptDir & "Tools")\r
 GetTarGZObjects UtilsDir\r
 GetVCBuild\r
@@ -100,6 +101,19 @@ End If
 ' ******************\r
 \r
 If BuildCore Then\r
+       FSO.CopyFile FreeswitchDir & "src\include\switch_version.h.in", FreeswitchDir & "src\include\switch_version.h", true\r
+       VersionCmd="svnversion " & FreeswitchDir & " -n"\r
+       Set MyFile = fso.CreateTextFile(UtilsDir & "tmpVersion.Bat", True)\r
+       MyFile.WriteLine("@" & VersionCmd)\r
+       MyFile.Close\r
+       Set oExec = WshShell.Exec(UtilsDir & "tmpVersion.Bat")\r
+       Do\r
+               strFromProc = OExec.StdOut.ReadLine()\r
+               VERSION=strFromProc\r
+       Loop While Not OExec.StdOut.atEndOfStream\r
+\r
+       FindReplaceInFile FreeswitchDir & "src\include\switch_version.h", "#define FREESWITCH_VERSION_REVISION", "#define FREESWITCH_VERSION_REVISION         " & VERSION\r
+\r
        If Not FSO.FolderExists(LibDestDir & "include") Then\r
                FSO.CreateFolder(LibDestDir & "include")\r
        End If\r