diff options
Diffstat (limited to 'src/fe-gtk')
-rw-r--r-- | src/fe-gtk/fe-gtk.vcxproj | 4 | ||||
-rw-r--r-- | src/fe-gtk/hexchat.rc.tt | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/fe-gtk/fe-gtk.vcxproj b/src/fe-gtk/fe-gtk.vcxproj index f7341904..6b6301b2 100644 --- a/src/fe-gtk/fe-gtk.vcxproj +++ b/src/fe-gtk/fe-gtk.vcxproj @@ -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> diff --git a/src/fe-gtk/hexchat.rc.tt b/src/fe-gtk/hexchat.rc.tt index 87507340..2b384c49 100644 --- a/src/fe-gtk/hexchat.rc.tt +++ b/src/fe-gtk/hexchat.rc.tt @@ -1,7 +1,7 @@ -<#@ include file="..\..\version.include.tt" #>#include <winver.h> +#include <winver.h> #include "../../config-win32.h" -#define COMMA_VERSION <#= string.Join(",", versionParts) #>,0 +#define COMMA_VERSION <#= [string]::Join(',', $versionParts) #>,0 XC_ICON ICON "../../data/icons/hexchat.ico" |