-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmgfx.targets.xml
More file actions
28 lines (28 loc) · 1.36 KB
/
mgfx.targets.xml
File metadata and controls
28 lines (28 loc) · 1.36 KB
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<MGFXPath Condition="$(MGFXPath) == ''">Dependencies\Utils\2MGFX</MGFXPath>
</PropertyGroup>
<ItemGroup>
<AvailableItemName Include="MGFXCompile" />
</ItemGroup>
<Target Name="BuildMGFX" BeforeTargets="BeforeBuild" Inputs="%(MGFXCompile.Identity)" Outputs="@(MGFXCompile->'%(RelativeDir)%(Filename).mgfx')">
<Exec Command="$(MGFXPath) %(MGFXCompile.Identity) %(MGFXCompile.RelativeDir)%(MGFXCompile.Filename).mgfx /Profile:DirectX_11"/>
</Target>
<Target Name="ReBuildMGFX" BeforeTargets="BeforeRebuild" Outputs="%(MGFXCompile.TargetDir)%(MGFXCompile.Filename).mgfx)">
<Exec Condition="%(MGFXCompile.Identity)!=''" Command="$(MGFXPath) %(MGFXCompile.Identity) %(MGFXCompile.RelativeDir)%(MGFXCompile.Filename).mgfx /Profile:DirectX_11"/>
</Target>
<Target Name="BuildMGFXContent">
<ItemGroup>
<Content Condition="%(MGFXCompile.Identity)!=''" Include="%(MGFXCompile.RelativeDir)%(MGFXCompile.Filename).mgfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Target>
<PropertyGroup>
<AssignTargetPathsDependsOn>
BuildMGFXContent;
$(AssignTargetPathsDependsOn);
</AssignTargetPathsDependsOn>
</PropertyGroup>
</Project>