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

Microsoft.NETCore.Native.Unix.props « BuildIntegration « src - github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b82b5f8e9ddfb543186ff43523eb5ea82a7b34d3 (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<!--
***********************************************************************************************
Microsoft.NETCore.Native.Unix.props

WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
          created a backup copy.  Incorrect changes to this file will make it
          impossible to load or build your projects from the command-line or the IDE.

This file defines the steps in the build process specific for native AOT compilation.

Licensed to the .NET Foundation under one or more agreements.
The .NET Foundation licenses this file to you under the MIT license.
See the LICENSE file in the project root for more information.
***********************************************************************************************
-->
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <CppCompilerAndLinker Condition="'$(CppCompilerAndLinker)' == '' and '$(TargetOS)' == 'OSX'">clang</CppCompilerAndLinker>
    <CppCompilerAndLinker Condition="'$(CppCompilerAndLinker)' == ''">clang-3.9</CppCompilerAndLinker>
    <CppCompiler>$(CppCompilerAndLinker)</CppCompiler>
    <CppLinker>$(CppCompilerAndLinker)</CppLinker>
  </PropertyGroup>

  <ItemGroup>
    <CppCompilerAndLinkerArg Include="-I $(IlcPath)/inc" />
    <CppCompilerAndLinkerArg Condition="'$(Configuration)' == 'Debug'" Include="-O0" />
    <CppCompilerAndLinkerArg Condition="'$(Configuration)' != 'Debug'" Include="-O2" />
    <CppCompilerAndLinkerArg Include="-c -Wno-invalid-offsetof" />
    <CppCompilerAndLinkerArg Include="$(AdditionalCppCompilerFlags)" />
  </ItemGroup>

  <ItemGroup>
    <NativeLibrary Condition="$(NativeCodeGen) == ''" Include="$(IlcPath)/sdk/libbootstrapper.a" />
    <NativeLibrary Condition="$(NativeCodeGen) == ''" Include="$(IlcPath)/sdk/libRuntime.a" />
    <NativeLibrary Condition="$(NativeCodeGen) == 'cpp'" Include="$(IlcPath)/sdk/libbootstrappercpp.a" />
    <NativeLibrary Condition="$(NativeCodeGen) == 'cpp'" Include="$(IlcPath)/sdk/libPortableRuntime.a" />
  </ItemGroup>

  <ItemGroup>
    <AdditionalNativeLibrary Include="$(IlcPath)/sdk/libSystem.Private.CoreLib.Native.a" />
    <AdditionalNativeLibrary Include="$(IlcPath)/framework/System.Native.a" />
  </ItemGroup>

  <ItemGroup>
    <LinkerArg Include="@(NativeLibrary)" />
    <LinkerArg Include="@(AdditionalNativeLibrary)" />
    <LinkerArg Include="-g" />
    <LinkerArg Include="-pthread" />
    <LinkerArg Include="-lstdc++" />
    <LinkerArg Include="-ldl" />
    <LinkerArg Include="-lm" />
    <LinkerArg Include="-lrt" Condition="'$(TargetOS)' != 'OSX'" />
  </ItemGroup>
</Project>