forked from mia/Aegisub
d3a4bed994
Simplifies the build system a little by cutting down on the number of helpers that need to be built.
27 lines
1.1 KiB
XML
27 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<PropertyGroup>
|
|
<MiniLuaCommand>$(AegisubBinaryDir)luajit-minilua$(AegisubPlatformSuffix)</MiniLuaCommand>
|
|
<ResPackCommand>$(AegisubSourceBase)tools\respack.lua</ResPackCommand>
|
|
</PropertyGroup>
|
|
|
|
<Target
|
|
Name="ResPackGenerate"
|
|
BeforeTargets="ClCompile"
|
|
Inputs="@(ResPack)"
|
|
Outputs="%(ResPack.OutputDir)%(ResPack.OutputName).cpp;%(ResPack.OutputDir)%(ResPack.OutputName).h"
|
|
>
|
|
<Exec
|
|
Command="$(MiniLuaCommand) $(ResPackCommand) "@(ResPack -> '%(FullPath)')" "%(ResPack.OutputDir)%(ResPack.OutputName).cpp" "%(ResPack.OutputDir)%(ResPack.OutputName).h""
|
|
WorkingDirectory="@(ResPack -> '%(RootDir)%(Directory)')"
|
|
/>
|
|
</Target>
|
|
|
|
<Target
|
|
Name="ResPackClean"
|
|
BeforeTargets="Clean"
|
|
DependsOnTargets="PrepareForBuild"
|
|
>
|
|
<Delete Files="%(ResPack.OutputDir)%(ResPack.OutputName).cpp;%(ResPack.OutputDir)%(ResPack.OutputName).h" />
|
|
</Target>
|
|
</Project>
|