blob: aa0d5447f0b3e4d4fd8a9956e65ed9431c3d05ac (
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
|
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)\.., dir.props))\dir.props" />
<!-- coalesce RIDs into the correct build output directory -->
<PropertyGroup>
<OSGroupPath Condition="$(OSGroup.StartsWith('windows', StringComparison.OrdinalIgnoreCase))">Windows_NT</OSGroupPath>
<OSGroupPath Condition="$(OSGroup.StartsWith('debian'))">Linux</OSGroupPath>
<OSGroupPath Condition="$(OSGroup.StartsWith('fedora'))">Linux</OSGroupPath>
<OSGroupPath Condition="$(OSGroup.StartsWith('osx'))">OSX</OSGroupPath>
<OSGroupPath Condition="$(OSGroup.StartsWith('rhel'))">Linux</OSGroupPath>
<OSGroupPath Condition="$(OSGroup.StartsWith('ubuntu'))">Linux</OSGroupPath>
<OSGroupPath Condition="$(OSGroup.StartsWith('opensuse'))">Linux</OSGroupPath>
</PropertyGroup>
<!-- Determine extensions of binary and symbol files on this OS. -->
<PropertyGroup>
<LibraryFileExtension Condition="'$(OSGroupPath)'=='Linux'">.so</LibraryFileExtension>
<LibraryFileExtension Condition="'$(OSGroupPath)'=='OSX'">.dylib</LibraryFileExtension>
<SymbolFileExtension>.pdb</SymbolFileExtension>
<SymbolFileExtension Condition="'$(OSGroupPath)'=='Linux'">.dbg</SymbolFileExtension>
<SymbolFileExtension Condition="'$(OSGroupPath)'=='OSX'">.dwarf</SymbolFileExtension>
</PropertyGroup>
<PropertyGroup>
<!-- common properties that point to output of native build. Can be overriden in case of
a coordinating build that produces all packages from OS-specific native builds -->
<BuildNativePath Condition="'$(BuildNativePath)' == ''">$(BinDir)$(OSGroupPath).$(PackagePlatform).$(ConfigurationGroup)\Native\</BuildNativePath>
<WinNativePath Condition="'$(WinNativePath)' == ''">$(BuildNativePath)</WinNativePath>
<RHELNativePath Condition="'$(RHELNativePath)' == ''">$(BuildNativePath)</RHELNativePath>
<DebianNativePath Condition="'$(DebianNativePath)' == ''">$(BuildNativePath)</DebianNativePath>
<Fedora23NativePath Condition="'$(Fedora23NativePath)' == ''">$(BuildNativePath)</Fedora23NativePath>
<Fedora24NativePath Condition="'$(Fedora24NativePath)' == ''">$(BuildNativePath)</Fedora24NativePath>
<OSXNativePath Condition="'$(OSXNativePath)' == ''">$(BuildNativePath)</OSXNativePath>
<OpenSuse132NativePath Condition="'$(OpenSuse132NativePath)' == ''">$(BuildNativePath)</OpenSuse132NativePath>
<OpenSuse421NativePath Condition="'$(OpenSuse421NativePath)' == ''">$(BuildNativePath)</OpenSuse421NativePath>
<Ubuntu1404NativePath Condition="'$(Ubuntu1404NativePath)' == ''">$(BuildNativePath)</Ubuntu1404NativePath>
<Ubuntu1604NativePath Condition="'$(Ubuntu1604NativePath)' == ''">$(BuildNativePath)</Ubuntu1604NativePath>
<Ubuntu1610NativePath Condition="'$(Ubuntu1610NativePath)' == ''">$(BuildNativePath)</Ubuntu1610NativePath>
<SkipPackageFileCheck>true</SkipPackageFileCheck>
</PropertyGroup>
<!-- Add path globs specific to native binaries to exclude unnecessary files from packages. -->
<ItemGroup Condition="'$(OSGroupPath)'=='Linux' OR '$(OSGroupPath)'=='OSX'">
<AdditionalLibPackageExcludes Include="%2A%2A\%2A$(SymbolFileExtension)" />
<AdditionalSymbolPackageExcludes Include="%2A%2A\%2A.a;%2A%2A\%2A$(LibraryFileExtension)" />
</ItemGroup>
</Project>
|