mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
There is now a "DebugOpt" and "Tools" build configuration available, as discussed on the last maintainer meeting. Project files and MSBuild stuff has been somewhat cleaned up.
36 lines
1.2 KiB
XML
36 lines
1.2 KiB
XML
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<!-- MSBuild hurts and I can't find a foolproof way to detect platform. -->
|
|
<PropertyGroup>
|
|
<OS Condition="'$(OS)' == ''">Windows_NT</OS>
|
|
</PropertyGroup>
|
|
<Choose>
|
|
<When Condition="'$(OS)' != 'Unix'">
|
|
<PropertyGroup>
|
|
<ActualOS>Windows</ActualOS>
|
|
</PropertyGroup>
|
|
</When>
|
|
<!-- Folders that *probably* only exist on MacOS and not Linux. -->
|
|
<When Condition="Exists('/Volumes') And Exists('/System') And Exists('/Library')" >
|
|
<PropertyGroup>
|
|
<ActualOS>MacOS</ActualOS>
|
|
</PropertyGroup>
|
|
</When>
|
|
<When Condition="$([MSBuild]::IsOSPlatform('FreeBSD'))">
|
|
<PropertyGroup>
|
|
<ActualOS>FreeBSD</ActualOS>
|
|
</PropertyGroup>
|
|
</When>
|
|
<Otherwise>
|
|
<PropertyGroup>
|
|
<ActualOS>Linux</ActualOS>
|
|
</PropertyGroup>
|
|
</Otherwise>
|
|
</Choose>
|
|
<PropertyGroup>
|
|
<TargetOS Condition="'$(TargetOS)' == ''">$(ActualOS)</TargetOS>
|
|
<Python>python3</Python>
|
|
<Python Condition="'$(ActualOS)' == 'Windows'">py -3</Python>
|
|
<UseSystemSqlite Condition="'$(TargetOS)' == 'FreeBSD'">True</UseSystemSqlite>
|
|
</PropertyGroup>
|
|
</Project>
|