Debian Codegraph @

external/rx/Rx/NET/Source/Import.targets

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
4 <!-- Non-Portable Library build -->
5 <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v11.0\Microsoft.Windows.UI.Xaml.CSharp.targets" Condition=" '$(TargetFrameworkIdentifier)' == '.NETCore' " />
6 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" Condition=" '$(TargetFrameworkIdentifier)' != '.NETPortable' And ('$(BuildPlatform)' == 'DESKTOPCLR' Or '$(BuildPlatform)' == 'XNA') " />
7
8 <!-- Silverlight ONLY (i.e., not phone) -->
9 <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" Condition=" '$(TargetFrameworkIdentifier)' != '.NETPortable' And '$(BuildPlatform)' == 'SILVERLIGHT' AND !('$(BuildFlavor)' == 'SILVERLIGHTM7') " />
10
11 <!-- Windows Phone 7.1 (Silverlight for Phone) -->
12 <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" Condition=" '$(TargetFrameworkIdentifier)' != '.NETPortable' And '$(BuildFlavor)' == 'SILVERLIGHTM7' " />
13 <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" Condition=" '$(TargetFrameworkIdentifier)' != '.NETPortable' And '$(BuildFlavor)' == 'SILVERLIGHTM7' " />
14
15 <!-- Windows Phone 8 -->
16 <Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).$(TargetFrameworkVersion).Overrides.targets" Condition=" '$(TargetFrameworkIdentifier)' != '.NETPortable' And '$(BuildFlavor)' == 'WINDOWS_PHONE8' "/>
17 <Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).CSharp.targets" Condition=" '$(TargetFrameworkIdentifier)' != '.NETPortable' And '$(BuildFlavor)' == 'WINDOWS_PHONE8' "/>
18
19 <!-- Portable Library Build -->
20 <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" Condition=" '$(TargetFrameworkIdentifier)' == '.NETPortable' " />
21
22
23 <!-- If "Sign" is set and assembly should be signed, generate a .sign file-->
24 <Target Name="AfterBuild">
25
26 <WriteLinesToFile Condition=" '$(ProductSignAssembly)' == 'true' AND '$(Sign)' == 'Sign' "
27 File="$(OutDir)\$(TargetFileName).sign"
28 Overwrite="true"
29 Lines="Auto-generated file, indicates the corresponding binary file needs to be signed.">
30 </WriteLinesToFile>
31
32 <!-- Hack for Metro; for some reason the XAML build creates intermediary folders, so we flatten the hierarchy for consumption by the setup build at a later stage -->
33
34 <!-- For some reason, using a plain <ItemGroup> does not fill in the list correctly, so we must use <CreateItem> -->
35 <CreateItem Include="$(OutDir)\*.sign;$(OutDir)\*.xml" Condition=" '$(TargetFrameworkIdentifier)' == '.NETCore' ">
36 <Output TaskParameter="Include" ItemName="CanaryFiles" />
37 </CreateItem>
38
39 <Message Text="-- Canary files: @(CanaryFiles)" Importance="high"/>
40 <Move
41 SourceFiles="@(CanaryFiles)"
42 DestinationFolder="$(OutDir)\.."
43 Condition=" '$(TargetFrameworkIdentifier)' == '.NETCore' " />
44
45 <!-- For some reason, using a plain <ItemGroup> does not fill in the list correctly, so we must use <CreateItem> -->
46 <CreateItem Include="$(OutDir)\*.*" Condition=" '$(TargetFrameworkIdentifier)' == '.NETCore' ">
47 <Output TaskParameter="Include" ItemName="BuiltFilesInOutDir" />
48 </CreateItem>
49
50 <Message Text="-- Built files: @(BuiltFilesInOutDir)" Importance="high"/>
51 <Copy
52 SourceFiles="@(BuiltFilesInOutDir)"
53 DestinationFolder="$(OutDir)\.."
54 Condition=" '$(TargetFrameworkIdentifier)' == '.NETCore' " />
55 </Target>
56
57 <!-- MICROSOFT BCL ASYNC CONFIGURATION -->
58 <!-- TODO: Add acondition to only load it when required? -->
59
60 <!-- Skip validation of packages.config since we are manageing the packages manuallt -->
61 <PropertyGroup>
62 <SkipValidatePackageReferences>true</SkipValidatePackageReferences>
63 </PropertyGroup>
64 <Import Project="packages\Microsoft.Bcl.Build.1.0.4\tools\Microsoft.Bcl.Build.targets" Condition=" '$(BuildTarget)' == 'PLLITE' Or '$(BuildTarget)' == '40' " />
65
66 </Project>