diff options
-rw-r--r-- | src/anytun.vcproj | 16 | ||||
-rw-r--r-- | src/win32/make_version_h.bat | 22 |
2 files changed, 38 insertions, 0 deletions
diff --git a/src/anytun.vcproj b/src/anytun.vcproj index 2624304..337c9f7 100644 --- a/src/anytun.vcproj +++ b/src/anytun.vcproj @@ -28,6 +28,7 @@ >
<Tool
Name="VCPreBuildEventTool"
+ CommandLine="win32/make_version_h.bat"
/>
<Tool
Name="VCCustomBuildTool"
@@ -103,6 +104,7 @@ >
<Tool
Name="VCPreBuildEventTool"
+ CommandLine="win32/make_version_h.bat"
/>
<Tool
Name="VCCustomBuildTool"
@@ -175,6 +177,7 @@ >
<Tool
Name="VCPreBuildEventTool"
+ CommandLine="win32/make_version_h.bat"
/>
<Tool
Name="VCCustomBuildTool"
@@ -252,6 +255,7 @@ >
<Tool
Name="VCPreBuildEventTool"
+ CommandLine="win32/make_version_h.bat"
/>
<Tool
Name="VCCustomBuildTool"
@@ -325,6 +329,7 @@ >
<Tool
Name="VCPreBuildEventTool"
+ CommandLine="win32/make_version_h.bat"
/>
<Tool
Name="VCCustomBuildTool"
@@ -400,6 +405,7 @@ >
<Tool
Name="VCPreBuildEventTool"
+ CommandLine="win32/make_version_h.bat"
/>
<Tool
Name="VCCustomBuildTool"
@@ -472,6 +478,7 @@ >
<Tool
Name="VCPreBuildEventTool"
+ CommandLine="win32/make_version_h.bat"
/>
<Tool
Name="VCCustomBuildTool"
@@ -549,6 +556,7 @@ >
<Tool
Name="VCPreBuildEventTool"
+ CommandLine="win32/make_version_h.bat"
/>
<Tool
Name="VCCustomBuildTool"
@@ -622,6 +630,7 @@ >
<Tool
Name="VCPreBuildEventTool"
+ CommandLine="win32/make_version_h.bat"
/>
<Tool
Name="VCCustomBuildTool"
@@ -698,6 +707,7 @@ >
<Tool
Name="VCPreBuildEventTool"
+ CommandLine="win32/make_version_h.bat"
/>
<Tool
Name="VCCustomBuildTool"
@@ -771,6 +781,7 @@ >
<Tool
Name="VCPreBuildEventTool"
+ CommandLine="win32/make_version_h.bat"
/>
<Tool
Name="VCCustomBuildTool"
@@ -849,6 +860,7 @@ >
<Tool
Name="VCPreBuildEventTool"
+ CommandLine="win32/make_version_h.bat"
/>
<Tool
Name="VCCustomBuildTool"
@@ -923,6 +935,7 @@ >
<Tool
Name="VCPreBuildEventTool"
+ CommandLine="win32/make_version_h.bat"
/>
<Tool
Name="VCCustomBuildTool"
@@ -999,6 +1012,7 @@ >
<Tool
Name="VCPreBuildEventTool"
+ CommandLine="win32/make_version_h.bat"
/>
<Tool
Name="VCCustomBuildTool"
@@ -1072,6 +1086,7 @@ >
<Tool
Name="VCPreBuildEventTool"
+ CommandLine="win32/make_version_h.bat"
/>
<Tool
Name="VCCustomBuildTool"
@@ -1150,6 +1165,7 @@ >
<Tool
Name="VCPreBuildEventTool"
+ CommandLine="win32/make_version_h.bat"
/>
<Tool
Name="VCCustomBuildTool"
diff --git a/src/win32/make_version_h.bat b/src/win32/make_version_h.bat new file mode 100644 index 0000000..9506455 --- /dev/null +++ b/src/win32/make_version_h.bat @@ -0,0 +1,22 @@ +@echo off
+
+setlocal
+set /p VERSION=<..\version
+set OUTPUT_FILE=version.h
+
+echo /* > %OUTPUT_FILE%
+echo * anytun version info >> %OUTPUT_FILE%
+echo * >> %OUTPUT_FILE%
+echo * this file was created automatically >> %OUTPUT_FILE%
+echo * do not edit this file directly >> %OUTPUT_FILE%
+echo * use win32/make_version_h.bat instead >> %OUTPUT_FILE%
+echo */ >> %OUTPUT_FILE%
+echo. >> %OUTPUT_FILE%
+echo #ifndef ANYTUN_version_h_INCLUDED >> %OUTPUT_FILE%
+echo #define ANYTUN_version_h_INCLUDED >> %OUTPUT_FILE%
+echo. >> %OUTPUT_FILE%
+echo #define VERSION_STRING_0 " version %VERSION%" >> %OUTPUT_FILE%
+echo #define VERSION_STRING_1 "built on %COMPUTERNAME%, %DATE% %TIME%" >> %OUTPUT_FILE%
+echo. >> %OUTPUT_FILE%
+echo #endif >> %OUTPUT_FILE%
+
|