Set macros for ResourceCompile

This commit is contained in:
Julio C. Rocha 2024-05-10 05:49:13 -07:00
parent d64475051c
commit d073fb8b1d
2 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
*.aps
*.binlog
*.ncb
*.opensdf
*.sdf

View File

@ -25,6 +25,15 @@
VERSION_BUILD_YEAR=$([System.DateTime]::Now.ToString(`yyyy`))
</PreprocessorDefinitions>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>
%(PreprocessorDefinitions);
GIT_REVISION=$(GitRevision);
GIT_REVISION_SHORT=$(GitRevisionShort);
VERSION_BUILD=$(GitRevisionCount);
VERSION_BUILD_YEAR=$([System.DateTime]::Now.ToString(`yyyy`))
</PreprocessorDefinitions>
</ResourceCompile>
</ItemGroup>
</Target>