| <Project DefaultTargets="Build" Sdk="Microsoft.NET.Sdk"> |
| <PropertyGroup> |
| <TargetFrameworks Condition="$(OS) != 'Windows_NT'">net6.0</TargetFrameworks> |
| <TargetFrameworks Condition="$(OS) == 'Windows_NT'">net6.0-windows10.0.17763.0</TargetFrameworks> |
| <Deterministic>false</Deterministic> |
| <OutputPath>..\..\output\bin\$(Configuration)</OutputPath> |
| <OutputType>Exe</OutputType> |
| <StartupObject>Antmicro.Renode.Program</StartupObject> |
| <AssemblyName>Renode</AssemblyName> |
| <RollForward>Major</RollForward> |
| <PropertiesLocation>..\..\output\properties.csproj</PropertiesLocation> |
| <LangVersion>7.2</LangVersion> |
| </PropertyGroup> |
| <PropertyGroup Condition=" $(PORTABLE) == 'true' "> |
| <RuntimeIdentifier>linux-x64</RuntimeIdentifier> |
| <PublishSingleFile>true</PublishSingleFile> |
| <UseAppHost>true</UseAppHost> |
| <IncludeNativeLibrariesInSingleFile>true</IncludeNativeLibrariesInSingleFile> |
| <IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract> |
| <IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract> |
| </PropertyGroup> |
| <Import Project="$(PropertiesLocation)" /> |
| <PropertyGroup Condition=" $(GUI_DISABLED) == 'true' "> |
| <DefineConstants>$(DefineConstants);GUI_DISABLED</DefineConstants> |
| </PropertyGroup> |
| <ItemGroup> |
| <PackageReference Include="Mono.Posix.NETStandard" Version="1.0.0" Condition=" $(OS) != 'Windows_NT'" /> |
| <PackageReference Include="IronPython.StdLib" Version="2.7.11" /> |
| <Reference Include="Sprache"> |
| <HintPath>..\..\lib\resources\libraries\Sprache.dll</HintPath> |
| </Reference> |
| <Reference Include="CookComputing.XmlRpcV2"> |
| <HintPath>..\..\lib\resources\libraries\CookComputing.XmlRpcV2.dll</HintPath> |
| </Reference> |
| </ItemGroup> |
| <ItemGroup> |
| <ProjectReference Include="..\Infrastructure\src\UI\UI_NET.csproj"/> |
| <ProjectReference Include="..\Infrastructure\src\Emulator\Main\Emulator_NET.csproj"/> |
| <ProjectReference Include="..\..\lib\AntShell\AntShell\AntShell_NET.csproj"/> |
| <ProjectReference Include="..\..\lib\Migrant\Migrant\Migrant_NET.csproj"/> |
| <ProjectReference Include="..\Infrastructure\src\Emulator\Extensions\Extensions_NET.csproj"/> |
| <ProjectReference Include="..\..\lib\options-parser\OptionsParser_NET.csproj"/> |
| <ProjectReference Include="..\..\lib\termsharp\xwt\Xwt\Xwt_NET.csproj"/> |
| <ProjectReference Include="..\..\lib\termsharp\xwt\Xwt.Gtk\Xwt.Gtk3_NET.csproj" Condition=" $(OS) != 'Windows_NT' And $(GUI_DISABLED) != 'true' "/> |
| <ProjectReference Include="..\..\lib\termsharp\xwt\Xwt.WPF\Xwt.WPF_NET.csproj" Condition=" $(OS) == 'Windows_NT' And $(GUI_DISABLED) != 'true' "/> |
| <ProjectReference Include="..\..\lib\termsharp\TermSharp_NET.csproj"/> |
| <ProjectReference Include="..\Infrastructure\src\Emulator\Cores\cores-arm_NET.csproj"/> |
| <ProjectReference Include="..\Infrastructure\src\Emulator\Cores\cores-arm-m_NET.csproj"/> |
| <ProjectReference Include="..\Infrastructure\src\Emulator\Cores\cores-i386_NET.csproj"/> |
| <ProjectReference Include="..\Infrastructure\src\Emulator\Cores\cores-ppc_NET.csproj"/> |
| <ProjectReference Include="..\Infrastructure\src\Emulator\Cores\cores-ppc64_NET.csproj"/> |
| <ProjectReference Include="..\Infrastructure\src\Emulator\Cores\cores-sparc_NET.csproj"/> |
| <ProjectReference Include="..\Infrastructure\src\Emulator\Cores\cores-riscv_NET.csproj"/> |
| <ProjectReference Include="..\Infrastructure\src\Emulator\Peripherals\Peripherals_NET.csproj"/> |
| <ProjectReference Include="..\Infrastructure\src\Plugins\SampleCommandPlugin\SampleCommandPlugin_NET.csproj"/> |
| <ProjectReference Include="..\Infrastructure\src\Plugins\TracePlugin\TracePlugin_NET.csproj"/> |
| <ProjectReference Include="..\Plugins\WiresharkPlugin\WiresharkPlugin_NET.csproj"/> |
| <ProjectReference Include="..\Plugins\VerilatorPlugin\VerilatorPlugin_NET.csproj"/> |
| <ProjectReference Include="..\Infrastructure\src\Emulator\Cores\cores-riscv64_NET.csproj"/> |
| <ProjectReference Include="..\..\lib\InpliTftpServer\libtftp\libtftp_alt_NET.csproj"/> |
| <ProjectReference Include="..\..\lib\Packet.Net\PacketDotNet\PacketDotNet_NET.csproj"/> |
| <ProjectReference Include="..\Infrastructure\src\Emulator\Cores\cores-xtensa_NET.csproj"/> |
| <ProjectReference Include="..\Infrastructure\src\Emulator\Cores\cores-arm64_NET.csproj"/> |
| </ItemGroup> |
| <ItemGroup> |
| <Compile Remove="Properties\AssemblyInfo.cs"/> |
| </ItemGroup> |
| <ItemGroup> |
| <EmbeddedResource Include="..\..\lib\resources\images\windows_setup\renode_nobg.ico"> |
| <Link>Resources\renode_nobg.ico</Link> |
| <LogicalName>renode_nobg.ico</LogicalName> |
| </EmbeddedResource> |
| <EmbeddedResource Include="..\..\lib\resources\images\Renode-logo.png"> |
| <Link>Resources\logo.png</Link> |
| <LogicalName>logo.png</LogicalName> |
| </EmbeddedResource> |
| <EmbeddedResource Include="Resources\RobotoMono-Regular.ttf"> |
| <LogicalName>RobotoMono-Regular.ttf</LogicalName> |
| </EmbeddedResource> |
| </ItemGroup> |
| <Target Name="SetSourceRevisionId" BeforeTargets="PrepareForBuild"> |
| <Exec Command="git rev-parse --short=8 HEAD" StandardOutputImportance="Low" ConsoleToMSBuild="True" IgnoreExitCode="False"> |
| <Output PropertyName="SourceRevisionId" TaskParameter="ConsoleOutput"/> |
| </Exec> |
| <PropertyGroup> |
| <AssemblyVersion>$([System.IO.File]::ReadAllText(../../tools/version).Trim()).*</AssemblyVersion> |
| <InformationalVersion>$(SourceRevisionId)-$([System.DateTime]::Now.ToString(yyyyMMddhhmm))</InformationalVersion> |
| <IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion> |
| </PropertyGroup> |
| </Target> |
| </Project> |