forked from MoSync/MoSync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MoSyncRules.targets
81 lines (81 loc) · 3.41 KB
/
MoSyncRules.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="MoSync_resource">
<Targets>_MoSync_resource</Targets>
</AvailableItemName>
</ItemGroup>
<UsingTask
TaskName="MoSync_resource"
TaskFactory="XamlTaskFactory"
AssemblyName="Microsoft.Build.Tasks.v4.0">
<Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
</UsingTask>
<Target
Name="_MoSync_resource"
BeforeTargets="$(MoSync_resourceBeforeTargets)"
AfterTargets="$(MoSync_resourceAfterTargets)"
Condition="'@(MoSync_resource)' != ''"
DependsOnTargets="$(MoSync_resourceDependsOn);ComputeMoSync_resourceOutput"
Outputs="@(MoSync_resource->Metadata('Outputs')->Distinct())"
Inputs="@(MoSync_resource);%(MoSync_resource.AdditionalDependencies);$(MSBuildProjectFile)">
<ItemGroup
Condition="'@(SelectedFiles)' != ''">
<MoSync_resource
Remove="@(MoSync_resource)"
Condition="'%(Identity)' != '@(SelectedFiles)'" />
</ItemGroup>
<ItemGroup>
<MoSync_resource_tlog
Include="%(MoSync_resource.Outputs)"
Condition="'%(MoSync_resource.Outputs)' != '' and '%(MoSync_resource.ExcludedFromBuild)' != 'true'">
<Source>@(MoSync_resource, '|')</Source>
</MoSync_resource_tlog>
</ItemGroup>
<Message
Importance="High"
Text="%(MoSync_resource.ExecutionDescription)" />
<WriteLinesToFile
Condition="'@(MoSync_resource_tlog)' != '' and '%(MoSync_resource_tlog.ExcludedFromBuild)' != 'true'"
File="$(IntDir)$(ProjectName).write.1.tlog"
Lines="^%(MoSync_resource_tlog.Source);@(MoSync_resource_tlog->'%(Fullpath)')" />
<MoSync_resource
Condition="'@(MoSync_resource)' != '' and '%(MoSync_resource.ExcludedFromBuild)' != 'true'"
CommandLineTemplate="%(MoSync_resource.CommandLineTemplate)"
AdditionalOptions="%(MoSync_resource.AdditionalOptions)"
Inputs="@(MoSync_resource)" />
</Target>
<PropertyGroup>
<ComputeLinkInputsTargets>
$(ComputeLinkInputsTargets);
ComputeMoSync_resourceOutput;
</ComputeLinkInputsTargets>
<ComputeLibInputsTargets>
$(ComputeLibInputsTargets);
ComputeMoSync_resourceOutput;
</ComputeLibInputsTargets>
</PropertyGroup>
<Target
Name="ComputeMoSync_resourceOutput"
Condition="'@(MoSync_resource)' != ''">
<ItemGroup>
<MoSync_resourceDirsToMake
Condition="'@(MoSync_resource)' != '' and '%(MoSync_resource.ExcludedFromBuild)' != 'true'"
Include="%(MoSync_resource.Outputs)" />
<Link
Include="%(MoSync_resourceDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
<Lib
Include="%(MoSync_resourceDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
<ImpLib
Include="%(MoSync_resourceDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
</ItemGroup>
<MakeDir
Directories="@(MoSync_resourceDirsToMake->'%(RootDir)%(Directory)')" />
</Target>
</Project>