mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-17 21:10:43 +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
152 lines
No EOL
6.5 KiB
XML
152 lines
No EOL
6.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<PropertyGroup>
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
|
|
<ProductVersion>8.0.30703</ProductVersion>
|
|
<SchemaVersion>2.0</SchemaVersion>
|
|
<ProjectGuid>{7BE012C6-4EBE-4555-8CC9-5AE856A92DFF}</ProjectGuid>
|
|
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
|
<TemplateGuid>{6143fdea-f3c2-4a09-aafa-6e230626515e}</TemplateGuid>
|
|
<OutputType>Exe</OutputType>
|
|
<RootNamespace>FasterRcnnSample.Forms.iOS</RootNamespace>
|
|
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
|
|
<AssemblyName>FasterRcnnSample.Forms.iOS</AssemblyName>
|
|
<MtouchEnableSGenConc>true</MtouchEnableSGenConc>
|
|
<MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler>
|
|
<ProvisioningType>automatic</ProvisioningType>
|
|
</PropertyGroup>
|
|
<PropertyGroup>
|
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
|
<MtouchExtraArgs>--nowarn:0109</MtouchExtraArgs>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<DebugType>portable</DebugType>
|
|
<Optimize>false</Optimize>
|
|
<OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
|
|
<DefineConstants>DEBUG</DefineConstants>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<MtouchArch>x86_64</MtouchArch>
|
|
<MtouchLink>None</MtouchLink>
|
|
<MtouchDebug>true</MtouchDebug>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
|
<DebugType>none</DebugType>
|
|
<Optimize>true</Optimize>
|
|
<OutputPath>bin\iPhoneSimulator\Release</OutputPath>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<MtouchLink>None</MtouchLink>
|
|
<MtouchArch>x86_64</MtouchArch>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<DebugType>portable</DebugType>
|
|
<Optimize>false</Optimize>
|
|
<OutputPath>bin\iPhone\Debug</OutputPath>
|
|
<DefineConstants>DEBUG</DefineConstants>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<MtouchArch>ARM64</MtouchArch>
|
|
<CodesignKey>iPhone Developer</CodesignKey>
|
|
<MtouchDebug>true</MtouchDebug>
|
|
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
|
<MtouchLink>None</MtouchLink>
|
|
<MtouchInterpreter>-all</MtouchInterpreter>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
|
|
<DebugType>none</DebugType>
|
|
<Optimize>true</Optimize>
|
|
<OutputPath>bin\iPhone\Release</OutputPath>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<MtouchArch>ARM64</MtouchArch>
|
|
<CodesignKey>iPhone Developer</CodesignKey>
|
|
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
|
<MtouchUseLlvm>true</MtouchUseLlvm>
|
|
<MtouchLink>Full</MtouchLink>
|
|
<MtouchExtraArgs>--nowarn:0109</MtouchExtraArgs>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<Compile Include="Main.cs" />
|
|
<Compile Include="AppDelegate.cs" />
|
|
<None Include="Entitlements.plist" />
|
|
<None Include="Info.plist" />
|
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<InterfaceDefinition Include="Resources\LaunchScreen.storyboard" />
|
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Contents.json">
|
|
<Visible>false</Visible>
|
|
</ImageAsset>
|
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon1024.png">
|
|
<Visible>false</Visible>
|
|
</ImageAsset>
|
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon180.png">
|
|
<Visible>false</Visible>
|
|
</ImageAsset>
|
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon167.png">
|
|
<Visible>false</Visible>
|
|
</ImageAsset>
|
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon152.png">
|
|
<Visible>false</Visible>
|
|
</ImageAsset>
|
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon120.png">
|
|
<Visible>false</Visible>
|
|
</ImageAsset>
|
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon87.png">
|
|
<Visible>false</Visible>
|
|
</ImageAsset>
|
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon80.png">
|
|
<Visible>false</Visible>
|
|
</ImageAsset>
|
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon76.png">
|
|
<Visible>false</Visible>
|
|
</ImageAsset>
|
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon60.png">
|
|
<Visible>false</Visible>
|
|
</ImageAsset>
|
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon58.png">
|
|
<Visible>false</Visible>
|
|
</ImageAsset>
|
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon40.png">
|
|
<Visible>false</Visible>
|
|
</ImageAsset>
|
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon29.png">
|
|
<Visible>false</Visible>
|
|
</ImageAsset>
|
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon20.png">
|
|
<Visible>false</Visible>
|
|
</ImageAsset>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Reference Include="System" />
|
|
<Reference Include="System.Xml" />
|
|
<Reference Include="System.Core" />
|
|
<Reference Include="Xamarin.iOS" />
|
|
<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>
|
|
<PackageReference Include="System.Memory" Version="4.5.4" IncludeAssets="None" />
|
|
</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\iOS\Xamarin.iOS.CSharp.targets" />
|
|
</Project> |