Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2017-11-09 03:20:39 +0300
committerGitHub <noreply@github.com>2017-11-09 03:20:39 +0300
commit162cead08753e6440d7e90ec4fb453a1a651785a (patch)
treedbb0478e51bd5b376386e6d0a38df7037fe51526 /src/BuildIntegration/Microsoft.NETCore.Native.targets
parent2bc2edc1e2b1b0e835366668b53ccfc48ece0949 (diff)
parent0566d28cd25fb5a8b708b94dd9ba7960a75e3b07 (diff)
Merge pull request #4894 from dotnet/master
Merge master to nmirror
Diffstat (limited to 'src/BuildIntegration/Microsoft.NETCore.Native.targets')
-rw-r--r--src/BuildIntegration/Microsoft.NETCore.Native.targets28
1 files changed, 18 insertions, 10 deletions
diff --git a/src/BuildIntegration/Microsoft.NETCore.Native.targets b/src/BuildIntegration/Microsoft.NETCore.Native.targets
index 6e522fe48..22dd34fb0 100644
--- a/src/BuildIntegration/Microsoft.NETCore.Native.targets
+++ b/src/BuildIntegration/Microsoft.NETCore.Native.targets
@@ -19,6 +19,7 @@ See the LICENSE file in the project root for more information.
<PropertyGroup>
<NativeIntermediateOutputPath Condition="'$(NativeIntermediateOutputPath)' == ''">$(IntermediateOutputPath)native\</NativeIntermediateOutputPath>
<NativeOutputPath Condition="'$(NativeOutputPath)' == ''">$(OutputPath)native\</NativeOutputPath>
+ <NativeCompilationDuringPublish Condition="'$(NativeCompilationDuringPublish)' == ''">true</NativeCompilationDuringPublish>
<!-- Workaround for lack of current host OS detection - https://github.com/Microsoft/msbuild/issues/539 -->
<TargetOS Condition="'$(TargetOS)' == '' and '$(OS)' == 'Unix' and Exists('/Applications')">OSX</TargetOS>
<TargetOS Condition="'$(TargetOS)' == ''">$(OS)</TargetOS>
@@ -60,20 +61,23 @@ See the LICENSE file in the project root for more information.
<SharedLibrary Condition="'$(OS)' != 'Windows_NT'">$(FrameworkLibPath)\libframework$(LibFileExt)</SharedLibrary>
</PropertyGroup>
- <ItemGroup Condition="$(BuildingFrameworkLibrary) != 'true'">
- <ManagedBinary Include="$(IntermediateOutputPath)$(TargetName)$(TargetExt)" />
- </ItemGroup>
+ <PropertyGroup Condition="'$(IlcCompileDependsOn)'=='' and '$(NativeCompilationDuringPublish)' != 'false'">
+ <IlcCompileDependsOn Condition="'$(BuildingFrameworkLibrary)' != 'true'">Compile;ComputeIlcCompileInputs</IlcCompileDependsOn>
+ <IlcCompileDependsOn Condition="'$(IlcMultiModule)' == 'true' and '$(BuildingFrameworkLibrary)' != 'true'">$(IlcCompileDependsOn);BuildFrameworkLib</IlcCompileDependsOn>
+ </PropertyGroup>
<ItemGroup>
- <IlcCompileInput Include="@(ManagedBinary)" />
- <IlcReference Include="$(IlcPath)\sdk\*.dll" />
- <IlcReference Include="$(IlcPath)\framework\*.dll" />
+ <DefaultFrameworkAssemblies Include="$(IlcPath)\sdk\*.dll" />
+ <DefaultFrameworkAssemblies Include="$(IlcPath)\framework\*.dll" />
</ItemGroup>
- <PropertyGroup Condition="'$(IlcCompileDependsOn)'==''">
- <IlcCompileDependsOn Condition="'$(BuildingFrameworkLibrary)' != 'true'">Compile</IlcCompileDependsOn>
- <IlcCompileDependsOn Condition="'$(IlcMultiModule)' == 'true' and '$(BuildingFrameworkLibrary)' != 'true'">$(IlcCompileDependsOn);BuildFrameworkLib</IlcCompileDependsOn>
- </PropertyGroup>
+ <Target Name="ComputeIlcCompileInputs">
+ <ItemGroup>
+ <ManagedBinary Condition="$(BuildingFrameworkLibrary) != 'true'" Include="$(IntermediateOutputPath)$(TargetName)$(TargetExt)" />
+ <IlcCompileInput Include="@(ManagedBinary)" />
+ <IlcReference Include="@(DefaultFrameworkAssemblies)" />
+ </ItemGroup>
+ </Target>
<!--
BuildFrameworkLib is invoked before IlcCompile in multi-module builds to
@@ -107,6 +111,7 @@ See the LICENSE file in the project root for more information.
<IlcArg Condition="$(Optimize) == 'true'" Include="-O" />
<IlcArg Condition="$(DebugSymbols) == 'true'" Include="-g" />
<IlcArg Condition="$(IlcGenerateMapFile) == 'true'" Include="--map:$(NativeIntermediateOutputPath)%(ManagedBinary.Filename).map.xml" />
+ <IlcArg Condition="$(RdXmlFile) != ''" Include="--rdxml:$(RdXmlFile)" />
</ItemGroup>
<MakeDir Directories="$(NativeIntermediateOutputPath)" />
@@ -178,4 +183,7 @@ See the LICENSE file in the project root for more information.
<Exec Command="$(CppLibCreator) @&quot;$(NativeIntermediateOutputPath)lib.rsp&quot;" Condition="'$(OS)' == 'Windows_NT'" />
<Exec Command="$(CppLibCreator) @(CustomLibArg, ' ')" Condition="'$(OS)' != 'Windows_NT'" />
</Target>
+
+ <Import Project="$(MSBuildThisFileDirectory)\Microsoft.NETCore.Native.Publish.targets" Condition="'$(NativeCompilationDuringPublish)' != 'false'" />
+
</Project>