[NUI][XamlBuild] Change XamlCTask & XamlGTask to NUIXamlCTask & NUIXamlGTask.
[platform/core/csapi/tizenfx.git] / pkg / Tizen.NET.API9 / xamlbuild / Tizen.NUI.XamlBuild.targets
1 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2         <UsingTask TaskName="Tizen.NUI.Xaml.Build.Tasks.NUIXamlGTask" AssemblyFile="$(MSBuildThisFileDirectory)Tizen.NUI.XamlBuild.dll" />
3         <UsingTask TaskName="Tizen.NUI.Xaml.Build.Tasks.NUIXamlCTask" AssemblyFile="$(MSBuildThisFileDirectory)Tizen.NUI.XamlBuild.dll" />
4
5         <!-- XamlG -->
6         <Target Name="UpdateDesignTimeXaml" DependsOnTargets="XamlG"/>
7
8         <PropertyGroup>
9                 <CoreCompileDependsOn>
10                         XamlG;
11                         $(CoreCompileDependsOn);
12                 </CoreCompileDependsOn>
13         </PropertyGroup>
14
15         <Target Name="_FindXamlGFiles" DependsOnTargets="PrepareResourceNames">
16                 <ItemGroup>
17                         <_XamlGInputs Include="@(EmbeddedResource)" Condition="'%(Extension)' == '.xaml' AND '$(DefaultLanguageSourceExtension)' == '.cs' AND '%(TargetPath)' != ''" />
18                         <_XamlGOutputs Include="@(_XamlGInputs->'$(IntermediateOutputPath)%(TargetPath).g.cs')" />
19                 </ItemGroup>
20         </Target>
21
22         <Target Name="XamlG" BeforeTargets="BeforeCompile" DependsOnTargets="_FindXamlGFiles; PrepareResourceNames; AfterResolveReferences" Inputs="@(_XamlGInputs)" Outputs="@(_XamlGOutputs)">
23                 <NUIXamlGTask
24                         XamlFiles="@(_XamlGInputs)"
25                         OutputFiles="@(_XamlGOutputs)"
26                         Language="$(Language)"
27                         AssemblyName="$(AssemblyName)"
28                         ReferencePath="@(ReferencePath)"
29                         XamlOptimization="$(XamlOptimization)"
30                         AddXamlCompilationAttribute="True" />
31                 <ItemGroup>
32                         <FileWrites Include="@(_XamlGOutputs)" />
33                         <Compile Include="@(_XamlGOutputs)" />
34                 </ItemGroup>
35         </Target>
36
37         <!-- XamlC -->
38         <PropertyGroup>
39                 <CompileDependsOn>
40                         $(CompileDependsOn);
41                         XamlC;
42                 </CompileDependsOn>
43         </PropertyGroup>
44
45         <Target Name="XamlC" AfterTargets="AfterCompile" Inputs="$(IntermediateOutputPath)$(TargetFileName)" Outputs="$(IntermediateOutputPath)XamlC.stamp" >
46                 <NUIXamlCTask
47                         Assembly = "$(IntermediateOutputPath)$(TargetFileName)"
48                         ReferencePath = "@(ReferencePath)"
49                         OptimizeIL = "true"
50                         DebugSymbols = "$(DebugSymbols)"
51                         DebugType = "$(DebugType)"
52                         NeedDebug = "$(NeedDebug)"
53                         UseInjection = "$(NeedInjection)"
54                         XamlOptimization="$(XamlOptimization)"
55                         KeepXamlResources = "$(XFKeepXamlResources)" />
56                 <Touch Files="$(IntermediateOutputPath)XamlC.stamp" AlwaysCreate="True" />
57                 <ItemGroup>
58                         <FileWrites Include="$(IntermediateOutputPath)XamlC.stamp" />
59                 </ItemGroup>
60         </Target>
61 </Project>