Replaced use of T4 templates with PS-based templates.

TextTransform.exe is not available with Express versions of Visual Studio.
This commit is contained in:
Arnavion
2013-12-27 12:05:07 -08:00
parent 61ceaef57e
commit c7bf4b0474
10 changed files with 28 additions and 26 deletions

View File

@@ -100,7 +100,9 @@
<Command>
<![CDATA[
SET SOLUTIONDIR=$(SolutionDir)..\
$(TextTransformPath) -out hexchat.rc hexchat.rc.tt
powershell "$(SolutionDir)..\version-template.ps1" "$(SolutionDir)..\src\fe-gtk\hexchat.rc.tt" "$(SolutionDir)..\src\fe-gtk\hexchat.rc.utf8"
REM hexchat.rc needs to be in UCS-2 or Resource Compiler will complain
powershell "Get-Content -Encoding UTF8 '$(SolutionDir)..\src\fe-gtk\hexchat.rc.utf8' | Out-File '$(SolutionDir)..\src\fe-gtk\hexchat.rc'; Remove-Item '$(SolutionDir)..\src\fe-gtk\hexchat.rc.utf8'"
"$(DepsRoot)\bin\glib-compile-resources.exe" --generate-source --sourcedir $(DataDir) --target "$(ProjectDir)resources.c" "$(DataDir)hexchat.gresource.xml"
]]>
</Command>