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

Microsoft.NETCore.Native.Windows.props « BuildIntegration « src - github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: edf33355c06d18abd0c9c3f0b0ec294281efc794 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="utf-8"?>
<!--
***********************************************************************************************
Microsoft.NETCore.Native.Windows.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 Windows-specific steps in the build process 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>
    <CppCompiler>cl</CppCompiler>
    <CppLinker>link</CppLinker>
  </PropertyGroup>

  <ItemGroup>
    <CppCompilerAndLinkerArg Include="/I$(IlcPath)\inc" />
    <CppCompilerAndLinkerArg Condition="'$(Configuration)' == 'Debug'" Include="/Od" />
    <CppCompilerAndLinkerArg Condition="'$(Configuration)' != 'Debug'" Include="/O2" />
    <CppCompilerAndLinkerArg Include="/c /nologo /W3 /GS /DCPPCODEGEN /EHs /Zi /bigobj" />
    <CppCompilerAndLinkerArg Condition="'$(UseDebugCrt)' == 'true'" Include="/MTd" />
    <CppCompilerAndLinkerArg Condition="'$(UseDebugCrt)' != 'true'" Include="/MT" />
    <CppCompilerAndLinkerArg Include="$(AdditionalCppCompilerFlags)" />
  </ItemGroup>

  <ItemGroup>
    <NativeLibrary Condition="$(NativeCodeGen) == ''" Include="$(IlcPath)\sdk\bootstrapper.lib" />
    <NativeLibrary Condition="$(NativeCodeGen) == ''" Include="$(IlcPath)\sdk\Runtime.lib" />
    <NativeLibrary Condition="$(NativeCodeGen) == 'cpp'" Include="$(IlcPath)\sdk\bootstrappercpp.lib" />
    <NativeLibrary Condition="$(NativeCodeGen) == 'cpp'" Include="$(IlcPath)\sdk\PortableRuntime.lib" />
  </ItemGroup>

  <ItemGroup>
    <AdditionalNativeLibrary Include="kernel32.lib" />
    <AdditionalNativeLibrary Include="user32.lib" />
    <AdditionalNativeLibrary Include="gdi32.lib" />
    <AdditionalNativeLibrary Include="winspool.lib" />
    <AdditionalNativeLibrary Include="comdlg32.lib" />
    <AdditionalNativeLibrary Include="advapi32.lib" />
    <AdditionalNativeLibrary Include="shell32.lib" />
    <AdditionalNativeLibrary Include="ole32.lib" />
    <AdditionalNativeLibrary Include="oleaut32.lib" />
    <AdditionalNativeLibrary Include="uuid.lib" />
    <AdditionalNativeLibrary Include="bcrypt.lib" />
  </ItemGroup>

  <ItemGroup>
    <LinkerArg Include="@(NativeLibrary)" />
    <LinkerArg Include="@(AdditionalNativeLibrary)" />
    <LinkerArg Include="/NOLOGO /DEBUG /MANIFEST:NO" />
    <!-- The runtime is not compatible with jump stubs inserted by incremental linking. -->
    <LinkerArg Include="/INCREMENTAL:NO" />
  </ItemGroup>

  <ItemGroup>
    <!-- TODO <LinkerArg Include="/MACHINE:X64" /> -->
  </ItemGroup>
 
  <ItemGroup Condition="'$(Configuration)' != 'Debug'">
    <LinkerArg Include="/OPT:REF" />
    <LinkerArg Include="/OPT:ICF" />
  </ItemGroup>

</Project>