mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
Add Xamarin support to the ORT nuget packages. - Update C# code to support Xamarin builds for iOS and Android - refactor some things to split out common code - include iOS and Android ORT native shared library in native nuget package
118 lines
No EOL
5.5 KiB
XML
118 lines
No EOL
5.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<PropertyGroup>
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
<ProjectGuid>{1EBA64F4-EDCD-432F-83CB-C55FDA6CC051}</ProjectGuid>
|
|
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
|
<TemplateGuid>{c9e5eea5-ca05-42a1-839b-61506e0a37df}</TemplateGuid>
|
|
<OutputType>Library</OutputType>
|
|
<RootNamespace>FasterRcnnSample.Forms.Droid</RootNamespace>
|
|
<AssemblyName>FasterRcnnSample.Forms.Android</AssemblyName>
|
|
<Deterministic>True</Deterministic>
|
|
<AndroidApplication>True</AndroidApplication>
|
|
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
|
|
<AndroidResgenClass>Resource</AndroidResgenClass>
|
|
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
|
|
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
|
|
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
|
|
<TargetFrameworkVersion>v11.0</TargetFrameworkVersion>
|
|
<AndroidEnableSGenConcurrent>true</AndroidEnableSGenConcurrent>
|
|
<AndroidUseAapt2>true</AndroidUseAapt2>
|
|
<AndroidHttpClientHandlerType>Xamarin.Android.Net.AndroidClientHandler</AndroidHttpClientHandlerType>
|
|
<NuGetPackageImportStamp>
|
|
</NuGetPackageImportStamp>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<DebugType>portable</DebugType>
|
|
<Optimize>false</Optimize>
|
|
<OutputPath>bin\Debug</OutputPath>
|
|
<DefineConstants>DEBUG;</DefineConstants>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<AndroidLinkMode>None</AndroidLinkMode>
|
|
<MandroidI18n />
|
|
<BundleAssemblies>false</BundleAssemblies>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<DebugType>portable</DebugType>
|
|
<Optimize>true</Optimize>
|
|
<OutputPath>bin\Release</OutputPath>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<AndroidManagedSymbols>true</AndroidManagedSymbols>
|
|
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
|
|
<AndroidLinkMode>Full</AndroidLinkMode>
|
|
<BundleAssemblies>true</BundleAssemblies>
|
|
<AotAssemblies>true</AotAssemblies>
|
|
<AndroidEnableProfiledAot>true</AndroidEnableProfiledAot>
|
|
<EnableLLVM>true</EnableLLVM>
|
|
<AndroidLinkTool>r8</AndroidLinkTool>
|
|
<AndroidSupportedAbis>arm64-v8a;armeabi-v7a;x86</AndroidSupportedAbis>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<Reference Include="Mono.Android" />
|
|
<Reference Include="System" />
|
|
<Reference Include="System.Core" />
|
|
<Reference Include="System.Xml.Linq" />
|
|
<Reference Include="System.Xml" />
|
|
<Reference Include="System.Numerics" />
|
|
<Reference Include="System.Numerics.Vectors" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="Xamarin.Forms" Version="5.0.0.2125" />
|
|
<PackageReference Include="Xamarin.Essentials" Version="1.7.0" />
|
|
<PackageReference Include="Microsoft.ML.OnnxRuntime">
|
|
<!-- TODO: Update to use official package once Xamarin support is added to it -->
|
|
<Version>1.10.0-dev</Version>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Compile Include="MainActivity.cs" />
|
|
<Compile Include="Resources\Resource.designer.cs" />
|
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Include="Resources\AboutResources.txt" />
|
|
<None Include="Assets\AboutAssets.txt" />
|
|
<None Include="Properties\AndroidManifest.xml" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<AndroidResource Include="Resources\values\styles.xml" />
|
|
<AndroidResource Include="Resources\values\colors.xml" />
|
|
<AndroidResource Include="Resources\mipmap-anydpi-v26\icon.xml" />
|
|
<AndroidResource Include="Resources\mipmap-anydpi-v26\icon_round.xml" />
|
|
<AndroidResource Include="Resources\mipmap-hdpi\icon.png" />
|
|
<AndroidResource Include="Resources\mipmap-hdpi\launcher_foreground.png" />
|
|
<AndroidResource Include="Resources\mipmap-mdpi\icon.png" />
|
|
<AndroidResource Include="Resources\mipmap-mdpi\launcher_foreground.png" />
|
|
<AndroidResource Include="Resources\mipmap-xhdpi\icon.png" />
|
|
<AndroidResource Include="Resources\mipmap-xhdpi\launcher_foreground.png" />
|
|
<AndroidResource Include="Resources\mipmap-xxhdpi\icon.png" />
|
|
<AndroidResource Include="Resources\mipmap-xxhdpi\launcher_foreground.png" />
|
|
<AndroidResource Include="Resources\mipmap-xxxhdpi\icon.png" />
|
|
<AndroidResource Include="Resources\mipmap-xxxhdpi\launcher_foreground.png" />
|
|
<AndroidResource Include="Resources\xml\file_paths.xml">
|
|
<SubType>
|
|
</SubType>
|
|
<Generator>
|
|
</Generator>
|
|
</AndroidResource>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Folder Include="Resources\drawable\" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\FasterRcnnSample.Forms\FasterRcnnSample.Forms.csproj">
|
|
<Project>{51D1A8FB-ADFF-43DE-8215-DB5E86DA4870}</Project>
|
|
<Name>FasterRcnnSample.Forms</Name>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\FasterRcnnSample\FasterRcnnSample.csproj">
|
|
<Project>{A15403C6-B715-4FF4-AAE5-702A0E1A284D}</Project>
|
|
<Name>FasterRcnnSample</Name>
|
|
</ProjectReference>
|
|
</ItemGroup>
|
|
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
|
|
</Project> |