summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/fe-gtk.vcxproj11
-rw-r--r--src/fe-gtk/hexchat.rc.tt (renamed from src/fe-gtk/hexchat.rc)5
2 files changed, 12 insertions, 4 deletions
diff --git a/src/fe-gtk/fe-gtk.vcxproj b/src/fe-gtk/fe-gtk.vcxproj
index 73526766..7cc40da8 100644
--- a/src/fe-gtk/fe-gtk.vcxproj
+++ b/src/fe-gtk/fe-gtk.vcxproj
@@ -97,8 +97,14 @@
   </ItemDefinitionGroup>

   <ItemDefinitionGroup>

     <PreBuildEvent>

-      <Command>$(DepsRoot)\bin\glib-compile-resources.exe --generate-source --sourcedir $(DataDir) --target "$(ProjectDir)resources.c" "$(DataDir)hexchat.gresource.xml"</Command>

-      <Message>Build gresource file</Message>

+      <Command>

+      <![CDATA[

+SET SOLUTIONDIR=$(SolutionDir)..\

+"%PROGRAMFILES%\Common Files\microsoft shared\TextTemplating\12.0\TextTransform.exe" -out hexchat.rc hexchat.rc.tt

+$(DepsRoot)\bin\glib-compile-resources.exe --generate-source --sourcedir $(DataDir) --target "$(ProjectDir)resources.c" "$(DataDir)hexchat.gresource.xml"

+      ]]>

+      </Command>

+      <Message>Build hexchat.rc and gresource file</Message>

     </PreBuildEvent>

   </ItemDefinitionGroup>

   <ItemGroup>

@@ -166,6 +172,7 @@
     <Manifest Include="hexchat.exe.manifest" />

   </ItemGroup>

   <ItemGroup>

+    <None Include="hexchat.rc.tt" />

     <ResourceCompile Include="hexchat.rc" />

   </ItemGroup>

   <ItemGroup>

diff --git a/src/fe-gtk/hexchat.rc b/src/fe-gtk/hexchat.rc.tt
index 789aa26e..87507340 100644
--- a/src/fe-gtk/hexchat.rc
+++ b/src/fe-gtk/hexchat.rc.tt
@@ -1,6 +1,7 @@
-#include <winver.h>

+<#@ include file="..\..\version.include.tt" #>#include <winver.h>

 #include "../../config-win32.h"

-#include "../../resource.h"

+

+#define COMMA_VERSION <#= string.Join(",", versionParts) #>,0

 

 XC_ICON ICON "../../data/icons/hexchat.ico"