diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2022-04-13 10:14:45 -0500 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2022-04-13 13:13:48 -0500 |
| commit | 4c3640ad5ef05b5be44df2aee2a23baa40471422 (patch) | |
| tree | b9aab6744e812298db3f4a98bc389ec5f212e80d /src/burn/engine/engine.vcxproj | |
| parent | 3704a5547766581b15690b6535d03568afcfc2a0 (diff) | |
| download | wix-4c3640ad5ef05b5be44df2aee2a23baa40471422.tar.gz wix-4c3640ad5ef05b5be44df2aee2a23baa40471422.tar.bz2 wix-4c3640ad5ef05b5be44df2aee2a23baa40471422.zip | |
Write EngineVersion, ProtocolVersion, and Win64 to the Burn manifest.
Diffstat (limited to 'src/burn/engine/engine.vcxproj')
| -rw-r--r-- | src/burn/engine/engine.vcxproj | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/src/burn/engine/engine.vcxproj b/src/burn/engine/engine.vcxproj index 5c4860f1..b5cfcb45 100644 --- a/src/burn/engine/engine.vcxproj +++ b/src/burn/engine/engine.vcxproj | |||
| @@ -35,13 +35,14 @@ | |||
| 35 | <TargetName>engine</TargetName> | 35 | <TargetName>engine</TargetName> |
| 36 | <CharacterSet>Unicode</CharacterSet> | 36 | <CharacterSet>Unicode</CharacterSet> |
| 37 | <Description>Native component of WixToolset.Burn</Description> | 37 | <Description>Native component of WixToolset.Burn</Description> |
| 38 | <CustomBuildBeforeTargets>ClCompile</CustomBuildBeforeTargets> | ||
| 38 | </PropertyGroup> | 39 | </PropertyGroup> |
| 39 | 40 | ||
| 40 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | 41 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
| 41 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | 42 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
| 42 | 43 | ||
| 43 | <PropertyGroup> | 44 | <PropertyGroup> |
| 44 | <ProjectAdditionalIncludeDirectories>..\..\api\burn\WixToolset.BootstrapperCore.Native\inc;$(ProjectAdditionalIncludeDirectories)</ProjectAdditionalIncludeDirectories> | 45 | <ProjectAdditionalIncludeDirectories>..\..\api\burn\WixToolset.BootstrapperCore.Native\inc;$(BurnGeneratedHeaderDirectory);$(ProjectAdditionalIncludeDirectories)</ProjectAdditionalIncludeDirectories> |
| 45 | </PropertyGroup> | 46 | </PropertyGroup> |
| 46 | 47 | ||
| 47 | <ImportGroup Label="ExtensionSettings"> | 48 | <ImportGroup Label="ExtensionSettings"> |
| @@ -144,14 +145,15 @@ | |||
| 144 | <ClInclude Include="variant.h" /> | 145 | <ClInclude Include="variant.h" /> |
| 145 | </ItemGroup> | 146 | </ItemGroup> |
| 146 | 147 | ||
| 147 | <ItemGroup> | 148 | <ItemDefinitionGroup> |
| 148 | <CustomBuild Include="engine.mc"> | 149 | <CustomBuildStep> |
| 149 | <Message>Compiling message file...</Message> | 150 | <Message>Compiling message file...</Message> |
| 150 | <Command>mc.exe -h "$(IntDir)." -r "$(IntDir)." -A -c -z engine.messages "$(InputDir)engine.mc" | 151 | <Command>mc.exe -h "$(IntDir)." -r "$(IntDir)." -A -c -z engine.messages "$(InputDir)engine.mc" |
| 151 | rc.exe -fo "$(OutDir)engine.res" "$(IntDir)engine.messages.rc"</Command> | 152 | rc.exe -fo "$(OutDir)engine.res" "$(IntDir)engine.messages.rc"</Command> |
| 153 | <Inputs>$(InputDir)engine.mc</Inputs> | ||
| 152 | <Outputs>$(IntDir)engine.messages.h;$(IntDir)engine.messages.rc</Outputs> | 154 | <Outputs>$(IntDir)engine.messages.h;$(IntDir)engine.messages.rc</Outputs> |
| 153 | </CustomBuild> | 155 | </CustomBuildStep> |
| 154 | </ItemGroup> | 156 | </ItemDefinitionGroup> |
| 155 | 157 | ||
| 156 | <Target Name="SetWixVersion" DependsOnTargets="__SetPropertiesFromGit" BeforeTargets="ClCompile"> | 158 | <Target Name="SetWixVersion" DependsOnTargets="__SetPropertiesFromGit" BeforeTargets="ClCompile"> |
| 157 | <PropertyGroup> | 159 | <PropertyGroup> |
| @@ -160,14 +162,26 @@ rc.exe -fo "$(OutDir)engine.res" "$(IntDir)engine.messages.rc"</Command> | |||
| 160 | <rup>$(GitBaseVersionPatch)</rup> | 162 | <rup>$(GitBaseVersionPatch)</rup> |
| 161 | <rpr>$(GitCommits)</rpr> | 163 | <rpr>$(GitCommits)</rpr> |
| 162 | <szVerMajorMinorBuild>$(rmj).$(rmm).$(rup).$(rpr)</szVerMajorMinorBuild> | 164 | <szVerMajorMinorBuild>$(rmj).$(rmm).$(rup).$(rpr)</szVerMajorMinorBuild> |
| 163 | <wixver>rmj=$(rmj);rmm=$(rmm);rup=$(rup);rpr=$(rpr);szVerMajorMinorBuild="$(szVerMajorMinorBuild)"</wixver> | ||
| 164 | </PropertyGroup> | 165 | </PropertyGroup> |
| 165 | 166 | ||
| 166 | <ItemGroup> | 167 | <ItemGroup> |
| 167 | <ClCompile> | 168 | <BurnVersionLines Include=" |
| 168 | <PreprocessorDefinitions>$(wixver);%(PreprocessorDefinitions)</PreprocessorDefinitions> | 169 | // <auto-generated/> |
| 169 | </ClCompile> | 170 | #ifndef _VERSION_FILE_H_ |
| 171 | #define _VERSION_FILE_H_ | ||
| 172 | |||
| 173 | #define szVerMajorMinorBuild "$(szVerMajorMinorBuild)" | ||
| 174 | #define wzVerMajorMinorBuild L"$(szVerMajorMinorBuild)" | ||
| 175 | #define rmj $(rmj) | ||
| 176 | #define rmm $(rmm) | ||
| 177 | #define rup $(rup) | ||
| 178 | #define rpr $(rpr) | ||
| 179 | |||
| 180 | #endif | ||
| 181 | "/> | ||
| 170 | </ItemGroup> | 182 | </ItemGroup> |
| 183 | |||
| 184 | <WriteLinesToFile Overwrite="true" File="$(BurnGeneratedHeaderDirectory)engine.version.h" Lines="@(BurnVersionLines)" /> | ||
| 171 | </Target> | 185 | </Target> |
| 172 | 186 | ||
| 173 | <ItemGroup> | 187 | <ItemGroup> |
