forked from LavaGang/MelonLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
65 lines (57 loc) · 2.99 KB
/
Copy pathDirectory.Build.props
File metadata and controls
65 lines (57 loc) · 2.99 KB
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
<Project>
<PropertyGroup>
<Version>0.7.1</Version>
<Il2CppInteropVersion>1.5.0-ci.625</Il2CppInteropVersion>
<Authors>Lava Gang</Authors>
<Company>discord.gg/2Wn3N2P</Company>
<Copyright>Copyright (c) 2022 Lava Gang</Copyright>
<LangVersion>Latest</LangVersion>
<IsPackable>false</IsPackable>
<Configurations>Debug;Release</Configurations>
<Platforms>x86;x64</Platforms>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">
<RuntimeIdentifiers>linux-x64</RuntimeIdentifiers>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<PlatformTarget>x64</PlatformTarget>
<DefineConstants>$(DefineConstants);LINUX</DefineConstants>
<LibPrefix>lib</LibPrefix>
<LibExt>.a</LibExt>
</PropertyGroup>
<PropertyGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">
<!-- TODO: split x64 and arm64 -->
<RuntimeIdentifiers>osx-x64</RuntimeIdentifiers>
<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
<PlatformTarget>x64</PlatformTarget>
<DefineConstants>$(DefineConstants);OSX</DefineConstants>
<LibPrefix>lib</LibPrefix>
<LibExt>.a</LibExt>
</PropertyGroup>
<PropertyGroup Condition="'$([MSBuild]::IsOSUnixLike())' == 'false'">
<RuntimeIdentifiers>win-x64;win-x86</RuntimeIdentifiers>
<RuntimeIdentifier>win-$(Platform)</RuntimeIdentifier>
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
<LibExt>.lib</LibExt>
</PropertyGroup>
<PropertyGroup Condition="'$(RuntimeIdentifier.EndsWith(`-x64`))' == 'true'">
<DefineConstants>$(DefineConstants);X64</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<MLOutDir>$(SolutionDir)/Output/$(Configuration)/$(RuntimeIdentifier)</MLOutDir>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net35'">
<ProjectReference Include="$(SolutionDir)/PortablePdbToMdb/PortablePdbToMdb.csproj"
ReferenceOutputAssembly="false"
SkipGetTargetFrameworkProperties="true"
GlobalPropertiesToRemove="TargetFramework" />
</ItemGroup>
<UsingTask TaskName="PortablePdbToMdb"
Condition="'$(TargetFramework)' == 'net35'"
AssemblyFile="$(SolutionDir)/PortablePdbToMdb/bin/PortablePdbToMdb.dll"
TaskFactory="TaskHostFactory" />
<Target Name="SymbolsConvert" Condition="'$(TargetFramework)' == 'net35'" AfterTargets="AfterBuild">
<PortablePdbToMdb AssemblyPath="$(TargetPath)" />
</Target>
</Project>