Fix ResPack target not actually building the intended resource files.

Originally committed to SVN as r5176.
This commit is contained in:
Niels Martin Hansen 2011-01-11 21:36:13 +00:00
parent f1121898b9
commit 5d6730919d
2 changed files with 7 additions and 3 deletions

View File

@ -48,7 +48,7 @@
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile> </ClCompile>
<ResPack> <ResPack>
<OutputDir>$(SrcDir)</OutputDir> <OutputDir>$(MSBuildThisFileDirectory)..\..\..\src\libresrc\</OutputDir>
</ResPack> </ResPack>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<PropertyGroup Label="UserMacros" /> <PropertyGroup Label="UserMacros" />

View File

@ -45,10 +45,14 @@
Inputs="@(ResPack)" Inputs="@(ResPack)"
Outputs="%(ResPack.OutputDir)%(ResPack.OutputName);%(ResPack.OutputDir)%(Respack.OutputHeader')" Outputs="%(ResPack.OutputDir)%(ResPack.OutputName);%(ResPack.OutputDir)%(Respack.OutputHeader')"
> >
<Error
Condition="!Exists('$(ResPackExe)')"
Text="The respack.exe program was not found, make sure it has been built and is at this location: $(ResPackExe)"
/>
<Exec <Exec
Command='$(ResPackExe) "@(ResPack)" "%(ResPack.OutputName)" "%(ResPack.OutputHeader)"' Command="$(ResPackExe) &quot;@(ResPack -> '%(FullPath)')&quot; &quot;%(ResPack.OutputDir)%(ResPack.OutputName)&quot; &quot;%(ResPack.OutputDir)%(ResPack.OutputHeader)&quot;"
Outputs="%(ResPack.OutputName);%(ResPack.OutputHeader)" Outputs="%(ResPack.OutputName);%(ResPack.OutputHeader)"
WorkingDirectory="%(ResPack.OutputDir)" WorkingDirectory="@(ResPack -> '%(RootDir)%(Directory)')"
/> />
</Target> </Target>