forked from Matway/mpl-vs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmpl.targets
executable file
·31 lines (31 loc) · 1.03 KB
/
mpl.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml"/>
</ItemGroup>
<PropertyGroup>
<CleanDependsOn>
$(CleanDependsOn);
MPLClean
</CleanDependsOn>
</PropertyGroup>
<Target Name="MPLAll"
Condition="'@(MPL)'!=''"
AfterTargets="CustomBuild"
BeforeTargets="LLVMCompile"
Inputs="@(MPL)"
Outputs="%(MPL.CompilerOutput)">
<Message Importance="high"
Text="Compiling MPL, %(MPL.CompilerOutput)..."/>
<Exec Command="%(MPL.CompilerPath) -o %(MPL.CompilerOutput) %(MPL.CompilerOptions) @(MPL, ' ')"/>
<ItemGroup>
<LLVM Include="%(MPL.CompilerOutput)"/>
</ItemGroup>
</Target>
<Target Name="MPLClean">
<Delete Files="%(MPL.CompilerOutput)"/>
</Target>
<ItemGroup Condition="'@(MPL)'!=''">
<ProjectTools Include="LLVM"/>
</ItemGroup>
</Project>