forked from charlessuh/ffdshow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
yasm.targets
81 lines (81 loc) · 3.01 KB
/
yasm.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PropertyPageSchema
Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />
<AvailableItemName
Include="yasm">
<Targets>_yasm</Targets>
</AvailableItemName>
</ItemGroup>
<UsingTask
TaskName="yasm"
TaskFactory="XamlTaskFactory"
AssemblyName="Microsoft.Build.Tasks.v4.0">
<Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
</UsingTask>
<Target
Name="_yasm"
BeforeTargets="$(yasmBeforeTargets)"
AfterTargets="$(yasmAfterTargets)"
Condition="'@(yasm)' != ''"
DependsOnTargets="$(yasmDependsOn);ComputeyasmOutput"
Outputs="%(yasm.Outputs)"
Inputs="%(yasm.Identity);%(yasm.AdditionalDependencies);$(MSBuildProjectFile)">
<ItemGroup
Condition="'@(SelectedFiles)' != ''">
<yasm
Remove="@(yasm)"
Condition="'%(Identity)' != '@(SelectedFiles)'" />
</ItemGroup>
<ItemGroup>
<yasm_tlog
Include="%(yasm.Outputs)"
Condition="'%(yasm.Outputs)' != '' and '%(yasm.ExcludedFromBuild)' != 'true'">
<Source>@(yasm, '|')</Source>
</yasm_tlog>
</ItemGroup>
<Message
Importance="High"
Text="%(yasm.ExecutionDescription)" />
<WriteLinesToFile
Condition="'@(yasm_tlog)' != '' and '%(yasm_tlog.ExcludedFromBuild)' != 'true'"
File="$(IntDir)$(ProjectName).write.1.tlog"
Lines="^%(yasm_tlog.Source);@(yasm_tlog->'%(Fullpath)')" />
<yasm
Condition="'@(yasm)' != '' and '%(yasm.ExcludedFromBuild)' != 'true'"
CommandLineTemplate="%(yasm.CommandLineTemplate)"
AdditionalOptions="%(yasm.AdditionalOptions)"
Inputs="%(yasm.Identity)" />
</Target>
<PropertyGroup>
<ComputeLinkInputsTargets>
$(ComputeLinkInputsTargets);
ComputeyasmOutput;
</ComputeLinkInputsTargets>
<ComputeLibInputsTargets>
$(ComputeLibInputsTargets);
ComputeyasmOutput;
</ComputeLibInputsTargets>
</PropertyGroup>
<Target
Name="ComputeyasmOutput"
Condition="'@(yasm)' != ''">
<ItemGroup>
<yasmDirsToMake
Condition="'@(yasm)' != '' and '%(yasm.ExcludedFromBuild)' != 'true'"
Include="%(yasm.Outputs)" />
<Link
Include="%(yasmDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
<Lib
Include="%(yasmDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
<ImpLib
Include="%(yasmDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
</ItemGroup>
<MakeDir
Directories="@(yasmDirsToMake->'%(RootDir)%(Directory)')" />
</Target>
</Project>