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

naming.props « native « eng - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b50c0c131cda5ef433628e4438d328b675cb398b (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
<Project>
  <PropertyGroup>
    <StaticLibPrefix>lib</StaticLibPrefix>
    <ExeSuffix Condition="'$(HostOS)' == 'windows'">.exe</ExeSuffix>
  </PropertyGroup>

  <!-- Add path globs specific to native binaries to exclude unnecessary files from packages. -->
  <Choose>
    <When Condition="$(PackageRID.StartsWith('win'))">
      <PropertyGroup>
        <LibSuffix>.dll</LibSuffix>
        <StaticLibSuffix>.lib</StaticLibSuffix>
        <SymbolsSuffix>.pdb</SymbolsSuffix>
      </PropertyGroup>
    </When>
    <When Condition="$(PackageRID.StartsWith('osx')) or $(PackageRID.StartsWith('maccatalyst')) or $(PackageRID.StartsWith('ios')) or $(PackageRID.StartsWith('tvos'))">
      <PropertyGroup>
        <LibPrefix>lib</LibPrefix>
        <LibSuffix>.dylib</LibSuffix>
        <StaticLibSuffix>.a</StaticLibSuffix>
        <SymbolsSuffix>.dwarf</SymbolsSuffix>
      </PropertyGroup>
    </When>
    <Otherwise>
      <PropertyGroup>
        <LibPrefix>lib</LibPrefix>
        <LibSuffix>.so</LibSuffix>
        <StaticLibSuffix>.a</StaticLibSuffix>
        <SymbolsSuffix>.dbg</SymbolsSuffix>
      </PropertyGroup>
    </Otherwise>
  </Choose>

  <ItemGroup>
    <AdditionalLibPackageExcludes Condition="'$(SymbolsSuffix)' != ''" Include="%2A%2A\%2A$(SymbolsSuffix)" />
    <AdditionalSymbolPackageExcludes Condition="'$(LibSuffix)' != ''" Include="%2A%2A\%2A.a;%2A%2A\%2A$(LibSuffix)" />
  </ItemGroup>

</Project>