summary refs log tree commit diff stats
path: root/src/common/common.vcxproj
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2013-12-27 12:05:07 -0800
committerArnavion <arnavion@gmail.com>2013-12-27 12:05:07 -0800
commitc7bf4b0474c613f81e3724043386373d7bc7d2a3 (patch)
tree82a47c7c7306a736f0d6ec8afbd17ac0eb45f68e /src/common/common.vcxproj
parent61ceaef57e19f7b19669bca4f7972123d2e6b119 (diff)
Replaced use of T4 templates with PS-based templates.
TextTransform.exe is not available with Express versions of Visual Studio.
Diffstat (limited to 'src/common/common.vcxproj')
-rw-r--r--src/common/common.vcxproj6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/common.vcxproj b/src/common/common.vcxproj
index 39c50222..720faae7 100644
--- a/src/common/common.vcxproj
+++ b/src/common/common.vcxproj
@@ -159,8 +159,10 @@
       <Command>

       <![CDATA[

 SET SOLUTIONDIR=$(SolutionDir)..\

-$(TextTransformPath) -out "%SOLUTIONDIR%config-win32.h" "%SOLUTIONDIR%config-win32.h.tt"

-$(TextTransformPath) -out "%SOLUTIONDIR%win32\version.txt" "%SOLUTIONDIR%win32\version.txt.tt"

+powershell "$(SolutionDir)..\version-template.ps1" "$(SolutionDir)..\config-win32.h.tt" "$(SolutionDir)..\config-win32.h"

+powershell "$(SolutionDir)..\version-template.ps1" "$(SolutionDir)..\win32\version.txt.tt" "$(SolutionDir)..\win32\version.txt.tmp"

+REM version.txt must be in UTF-8 without trailing newline

+powershell "[string] $content = Get-Content '$(SolutionDir)..\win32\version.txt.tmp' -Encoding UTF8; [System.IO.File]::WriteAllText('$(SolutionDir)..\win32\version.txt', $content); Remove-Item '$(SolutionDir)..\win32\version.txt.tmp';"

       ]]>

       </Command>

     </PreBuildEvent>