mirror of https://github.com/odrling/Aegisub
28 lines
1.1 KiB
XML
28 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="12.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>
|