2012-11-12 16:20:27 -08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2015-01-17 18:03:42 -08:00
|
|
|
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2015-01-18 12:52:27 -08:00
|
|
|
|
|
|
|
<ItemDefinitionGroup>
|
|
|
|
<InstallHeader>
|
|
|
|
<Destination></Destination>
|
|
|
|
</InstallHeader>
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
2012-11-12 16:20:27 -08:00
|
|
|
<Target
|
2015-01-18 12:52:27 -08:00
|
|
|
Name="ComputeHeaderOutputs"
|
2012-11-12 16:20:27 -08:00
|
|
|
Inputs="@(InstallHeader)"
|
2018-05-22 11:37:55 -07:00
|
|
|
Outputs="@(InstallHeader->'%(HeaderRoot)\%(RelativeDir)')"
|
2015-01-18 12:52:27 -08:00
|
|
|
BeforeTargets="InstallHeaders"
|
2012-11-12 16:20:27 -08:00
|
|
|
>
|
2015-01-18 12:52:27 -08:00
|
|
|
<CalculateOutputDir
|
|
|
|
Items="@(InstallHeader)"
|
|
|
|
SourceDir="%(HeaderRoot)"
|
|
|
|
DestinationDir="$(AegisubSourceBase)include"
|
|
|
|
>
|
|
|
|
<Output ItemName="_InstallHeader" TaskParameter="Outputs" />
|
|
|
|
</CalculateOutputDir>
|
2014-05-09 15:27:26 -07:00
|
|
|
</Target>
|
2015-01-18 12:52:27 -08:00
|
|
|
|
2014-05-09 15:27:26 -07:00
|
|
|
<Target
|
2015-01-18 12:52:27 -08:00
|
|
|
Name="InstallHeaders"
|
2014-05-13 08:05:39 -07:00
|
|
|
BeforeTargets="ClCompile"
|
2015-01-18 12:52:27 -08:00
|
|
|
Inputs="@(_InstallHeader)"
|
|
|
|
Outputs="@(_InstallHeader->'%(OutputDir)%(Destination)%(Filename)%(Extension)')"
|
2014-05-09 15:27:26 -07:00
|
|
|
>
|
2015-01-18 12:52:27 -08:00
|
|
|
<Error
|
|
|
|
Condition="'%(_InstallHeader.OutputDir)' == ''"
|
|
|
|
Text="OutputDir for _InstallHeader item is blank, problem during ComputeHeaderOutputs target?"
|
|
|
|
/>
|
2014-05-09 15:27:26 -07:00
|
|
|
<Copy
|
2015-01-18 12:52:27 -08:00
|
|
|
SourceFiles="@(_InstallHeader)"
|
|
|
|
DestinationFiles="@(_InstallHeader->'%(OutputDir)%(Destination)%(Filename)%(Extension)')"
|
2012-11-12 16:20:27 -08:00
|
|
|
SkipUnchangedFiles="true"
|
|
|
|
/>
|
|
|
|
</Target>
|
2015-01-18 12:52:27 -08:00
|
|
|
|
2012-11-12 16:20:27 -08:00
|
|
|
</Project>
|