Set macros in target
This commit is contained in:
parent
f0cb7298e6
commit
4d30e1c178
|
@ -15,6 +15,17 @@
|
|||
<Message Importance="High" Text="git rev: [$(GitRevision)]" />
|
||||
<Message Importance="High" Text="git rev short: [$(GitRevisionShort)]" />
|
||||
<Message Importance="High" Text="git rev count: [$(GitRevisionCount)]" />
|
||||
<ItemGroup>
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>
|
||||
%(PreprocessorDefinitions);
|
||||
GIT_REVISION=$(GitRevision);
|
||||
GIT_REVISION_SHORT=$(GitRevisionShort);
|
||||
VERSION_BUILD=1234;
|
||||
VERSION_BUILD_YEAR=$([System.DateTime]::Now.ToString(`yyyy`))
|
||||
</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -31,18 +31,6 @@
|
|||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
|
||||
<ItemDefinitionGroup Condition="'$(NeedsVersioning)'=='true'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>
|
||||
%(PreprocessorDefinitions);
|
||||
GIT_REVISION=$(GitRevision);
|
||||
GIT_REVISION_SHORT=$(GitRevisionShort);
|
||||
VERSION_BUILD=$(GitRevisionCount);
|
||||
VERSION_BUILD_YEAR=$([System.DateTime]::Now.ToString(`yyyy`))
|
||||
</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
|
||||
<PropertyGroup Label="UserMacros">
|
||||
<ROOT>$(SolutionDir)</ROOT>
|
||||
<SRC>$(ROOT)Source\</SRC>
|
||||
|
|
Loading…
Reference in New Issue