34 lines
1.3 KiB
XML
34 lines
1.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>Exe</OutputType>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">
|
|
<DefineConstants>$(DefineConstants);OS_WINDOWS</DefineConstants>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">
|
|
<DefineConstants>$(DefineConstants);OS_LINUX</DefineConstants>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))">
|
|
<DefineConstants>$(DefineConstants);OS_MAC</DefineConstants>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<DefineConstants>$(DefineConstants);JoyCon</DefineConstants>
|
|
<DefineConstants>$(DefineConstants);Wiimote</DefineConstants>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="JoyCon.NET" Version="1.0.1" Condition="$(DefineConstants.Contains(JoyCon))" />
|
|
<PackageReference Include="WiimoteLib.NetCore" Version="1.0.0" Condition="$(DefineConstants.Contains(Wiimote))" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\Win32Api\Win32Api.csproj" Condition="$([MSBuild]::IsOSPlatform('Windows'))"/>
|
|
</ItemGroup>
|
|
|
|
</Project>
|