mirror of https://github.com/odrling/Aegisub
Fix ResPack target not actually building the intended resource files.
Originally committed to SVN as r5176.
This commit is contained in:
parent
f1121898b9
commit
5d6730919d
|
@ -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" />
|
||||||
|
|
|
@ -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) "@(ResPack -> '%(FullPath)')" "%(ResPack.OutputDir)%(ResPack.OutputName)" "%(ResPack.OutputDir)%(ResPack.OutputHeader)""
|
||||||
Outputs="%(ResPack.OutputName);%(ResPack.OutputHeader)"
|
Outputs="%(ResPack.OutputName);%(ResPack.OutputHeader)"
|
||||||
WorkingDirectory="%(ResPack.OutputDir)"
|
WorkingDirectory="@(ResPack -> '%(RootDir)%(Directory)')"
|
||||||
/>
|
/>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue