[Tizen] Add BuildTools 2.1.0-rc1-02804-05
[platform/upstream/coreclr.git] / Tools / Microsoft.VisualBasic.Core.targets
1 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2   <Target
3           Name="CoreCompile"
4           Inputs="$(MSBuildAllProjects);
5                 @(Compile);
6                 @(_CoreCompileResourceInputs);
7                 $(ApplicationIcon);
8                 $(AssemblyOriginatorKeyFile);
9                 @(ReferencePath);
10                 @(CompiledLicenseFile);
11                 @(LinkResource);
12                 @(EmbeddedDocumentation);
13                 $(Win32Resource);
14                 $(Win32Manifest);
15                 @(CustomAdditionalCompileInputs);
16                 $(ResolvedCodeAnalysisRuleSet)"
17           Outputs="@(DocFileItem);
18                  @(IntermediateAssembly);
19                  @(_DebugSymbolsIntermediatePath);
20                  $(NonExistentFile);
21                  @(CustomAdditionalCompileOutputs)"
22           Returns="@(VbcCommandLineArgs)"
23           DependsOnTargets="$(CoreCompileDependsOn)"
24     >
25     <PropertyGroup>
26       <_NoWarnings Condition=" '$(WarningLevel)' == '0' ">true</_NoWarnings>
27       <_NoWarnings Condition=" '$(WarningLevel)' == '1' ">false</_NoWarnings>
28     </PropertyGroup>
29
30     <PropertyGroup>
31       <!-- If we are targeting winmdobj we want to specifically the pdbFile property since we do not want it to collide with the output of winmdexp-->
32       <PdbFile Condition="'$(PdbFile)' == '' and '$(OutputType)' == 'winmdobj' and '$(DebugSymbols)' == 'true'">$(IntermediateOutputPath)$(TargetName).compile.pdb</PdbFile>
33     </PropertyGroup>
34
35     <ItemGroup Condition="'$(TargetingClr2Framework)'=='true'">
36       <ReferencePath>
37         <EmbedInteropTypes/>
38       </ReferencePath>
39     </ItemGroup>
40
41     <!-- Prefer32Bit was introduced in .NET 4.5. Set it to false if we are targeting 4.0 -->
42     <PropertyGroup Condition="('$(TargetFrameworkVersion)' == 'v4.0')">
43       <Prefer32Bit>false</Prefer32Bit>
44     </PropertyGroup>
45
46     <ItemGroup Condition="('$(AdditionalFileItemNames)' != '')">
47       <AdditionalFileItems Include="$(AdditionalFileItemNames)" />
48       <AdditionalFiles Include="@(%(AdditionalFileItems.Identity))" />
49     </ItemGroup>
50
51     <PropertyGroup Condition="'$(UseSharedCompilation)' == ''">
52       <UseSharedCompilation>true</UseSharedCompilation>
53     </PropertyGroup>
54
55     <!-- Condition is to filter out the _CoreCompileResourceInputs so that it doesn't pass in culture resources to the compiler -->
56     <Vbc  Condition=" '%(_CoreCompileResourceInputs.WithCulture)' != 'true' "
57           AdditionalLibPaths="$(AdditionalLibPaths)"
58           AddModules="@(AddModules)"
59           AdditionalFiles="@(AdditionalFiles)"
60           Analyzers="@(Analyzer)"
61           BaseAddress="$(BaseAddress)"
62           CodeAnalysisRuleSet="$(ResolvedCodeAnalysisRuleSet)"
63           CodePage="$(CodePage)"
64           DebugType="$(DebugType)"
65           DefineConstants="$(FinalDefineConstants)"
66           DelaySign="$(DelaySign)"
67           DisabledWarnings="$(NoWarn)"
68           DocumentationFile="@(DocFileItem)"
69           EmitDebugInformation="$(DebugSymbols)"
70           EnvironmentVariables="$(VbcEnvironment)"
71           ErrorLog="$(ErrorLog)"
72           ErrorReport="$(ErrorReport)"
73           Features="$(Features)"
74           FileAlignment="$(FileAlignment)"
75           GenerateDocumentation="$(GenerateDocumentation)"
76           HighEntropyVA="$(HighEntropyVA)"
77           Imports="@(Import)"
78           KeyContainer="$(KeyContainerName)"
79           KeyFile="$(KeyOriginatorFile)"
80           LangVersion="$(LangVersion)"
81           LinkResources="@(LinkResource)"
82           MainEntryPoint="$(StartupObject)"
83           ModuleAssemblyName="$(ModuleAssemblyName)"
84           NoConfig="true"
85           NoStandardLib="$(NoCompilerStandardLib)"
86           NoVBRuntimeReference="$(NoVBRuntimeReference)"
87           NoWarnings="$(_NoWarnings)"
88           NoWin32Manifest="$(NoWin32Manifest)"
89           Optimize="$(Optimize)"
90           Deterministic="$(Deterministic)"
91           PublicSign="$(PublicSign)"
92           OptionCompare="$(OptionCompare)"
93           OptionExplicit="$(OptionExplicit)"
94           OptionInfer="$(OptionInfer)"
95           OptionStrict="$(OptionStrict)"
96           OptionStrictType="$(OptionStrictType)"
97           OutputAssembly="@(IntermediateAssembly)"
98           OverrideToolHost="$(OverrideToolHost)"
99           PdbFile="$(PdbFile)"
100           Platform="$(PlatformTarget)"
101           Prefer32Bit="$(Prefer32Bit)"
102           PreferredUILang="$(PreferredUILang)"
103           ProvideCommandLineArgs="$(ProvideCommandLineArgs)"
104           References="@(ReferencePath)"
105           RemoveIntegerChecks="$(RemoveIntegerChecks)"
106           ReportAnalyzer="$(ReportAnalyzer)"
107           Resources="@(_CoreCompileResourceInputs);@(CompiledLicenseFile)"
108           ResponseFiles="$(CompilerResponseFile)"
109           RootNamespace="$(RootNamespace)"
110           SdkPath="$(FrameworkPathOverride)"
111           SkipCompilerExecution="$(SkipCompilerExecution)"
112           Sources="@(Compile)"
113           SubsystemVersion="$(SubsystemVersion)"
114           TargetCompactFramework="$(TargetCompactFramework)"
115           TargetType="$(OutputType)"
116           ToolExe="$(VbcToolExe)"
117           ToolPath="$(VbcToolPath)"
118           TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
119           UseHostCompilerIfAvailable="$(UseHostCompilerIfAvailable)"
120           UseSharedCompilation="$(UseSharedCompilation)"
121           Utf8Output="$(Utf8Output)"
122           VBRuntimePath="$(VBRuntimePath)"
123           Verbosity="$(VbcVerbosity)"
124           VsSessionGuid="$(VsSessionGuid)"
125           WarningsAsErrors="$(WarningsAsErrors)"
126           WarningsNotAsErrors="$(WarningsNotAsErrors)"
127           Win32Icon="$(ApplicationIcon)"
128           Win32Manifest="$(Win32Manifest)"
129           Win32Resource="$(Win32Resource)"
130           VBRuntime="$(VBRuntime)"
131           PathMap="$(PathMap)"
132           >
133       <Output TaskParameter="CommandLineArgs" ItemName="VbcCommandLineArgs" />
134     </Vbc>
135     <ItemGroup>
136       <_CoreCompileResourceInputs Remove="@(_CoreCompileResourceInputs)" />
137     </ItemGroup>
138
139     <CallTarget Targets="$(TargetsTriggeredByCompilation)" Condition="'$(TargetsTriggeredByCompilation)' != ''"/>
140   </Target>
141 </Project>