diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/common.vcxproj | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/common/common.vcxproj b/src/common/common.vcxproj index bc2605dd..13610cee 100644 --- a/src/common/common.vcxproj +++ b/src/common/common.vcxproj @@ -14,7 +14,6 @@ </ProjectConfiguration> </ItemGroup> <ItemGroup> - <ClInclude Include="..\..\config-win32.h" /> <ClInclude Include="cfgfiles.h" /> <ClInclude Include="chanopt.h" /> <ClInclude Include="ctcp.h" /> @@ -75,6 +74,10 @@ <ClCompile Include="util.c" /> <ClCompile Include="hexchat.c" /> </ItemGroup> + <ItemGroup> + <None Include="..\..\config-win32.h.tt" /> + <ClInclude Include="..\..\config-win32.h" /> + </ItemGroup> <PropertyGroup Label="Globals"> <ProjectGuid>{87554B59-006C-4D94-9714-897B27067BA3}</ProjectGuid> <Keyword>Win32Proj</Keyword> @@ -151,4 +154,15 @@ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"> </ImportGroup> + <ItemDefinitionGroup> + <PreBuildEvent> + <Command> + <![CDATA[ +SET SOLUTIONDIR=$(SolutionDir)..\ +"%PROGRAMFILES%\Common Files\microsoft shared\TextTemplating\12.0\TextTransform.exe" -out "%SOLUTIONDIR%config-win32.h" "%SOLUTIONDIR%config-win32.h.tt" +"%PROGRAMFILES%\Common Files\microsoft shared\TextTemplating\12.0\TextTransform.exe" -out "%SOLUTIONDIR%win32\version.txt" "%SOLUTIONDIR%win32\version.txt.tt" + ]]> + </Command> + </PreBuildEvent> + </ItemDefinitionGroup> </Project> \ No newline at end of file |