-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build Emgu.TF.runtime.maui.android nuget package
- Loading branch information
Showing
8 changed files
with
173 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Emgu.TF.Models/Emgu.TF.Models.Android/Resources/Resource.designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,44 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<AssemblyName>Emgu.TF.Netstandard</AssemblyName> | ||
<Platforms>AnyCPU;x64</Platforms> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TfBinaryDir>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\lib))</TfBinaryDir> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||
<OutputPath>$(TfBinaryDir)\Build\$(AssemblyName)\$(Platform)\$(Configuration)\</OutputPath> | ||
<DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile> | ||
<DefineConstants>TRACE;__NETSTANDARD_2_0__</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<AssemblyName>Emgu.TF.Netstandard</AssemblyName> | ||
<Platforms>AnyCPU;x64</Platforms> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||
<OutputPath>..\..\lib\Build\$(AssemblyName)\$(Platform)\$(Configuration)\</OutputPath> | ||
<DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile> | ||
<DefineConstants>TRACE;__NETSTANDARD_2_0__</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<OutputPath>..\..\lib\Build\$(AssemblyName)\$(Platform)\$(Configuration)\</OutputPath> | ||
<DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile> | ||
<DefineConstants>TRACE;__NETSTANDARD_2_0__</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<OutputPath>$(TfBinaryDir)\Build\$(AssemblyName)\$(Platform)\$(Configuration)\</OutputPath> | ||
<DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile> | ||
<DefineConstants>TRACE;__NETSTANDARD_2_0__</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | ||
<OutputPath>..\..\lib\Build\$(AssemblyName)\$(Platform)\$(Configuration)\</OutputPath> | ||
<DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile> | ||
<DefineConstants>TRACE;__NETSTANDARD_2_0__</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | ||
<OutputPath>$(TfBinaryDir)\Build\$(AssemblyName)\$(Platform)\$(Configuration)\</OutputPath> | ||
<DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile> | ||
<DefineConstants>TRACE;__NETSTANDARD_2_0__</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<OutputPath>..\..\lib\Build\$(AssemblyName)\$(Platform)\$(Configuration)\</OutputPath> | ||
<DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile> | ||
<DefineConstants>TRACE;__NETSTANDARD_2_0__</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<Import Project="..\..\Emgu.TF.Util\Emgu.TF.Util.Shared.projitems" Label="Shared" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<OutputPath>$(TfBinaryDir)\Build\$(AssemblyName)\$(Platform)\$(Configuration)\</OutputPath> | ||
<DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile> | ||
<DefineConstants>TRACE;__NETSTANDARD_2_0__</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<Import Project="..\Emgu.TF.Shared.projitems" Label="Shared" /> | ||
<Target Name="DeployBinary" AfterTargets="AfterBuild"> | ||
<Message Text="Copying $(OutputPath)$(AssemblyName).dll, $(OutputPath)$(AssemblyName).xml to ..\..\lib" Importance="high" /> | ||
<Copy SourceFiles="$(OutputPath)$(AssemblyName).dll" DestinationFolder="..\..\lib" ContinueOnError="true" /> | ||
<Copy SourceFiles="$(OutputPath)$(AssemblyName).xml" DestinationFolder="..\..\lib" ContinueOnError="true" /> | ||
</Target> | ||
<Import Project="..\..\Emgu.TF.Util\Emgu.TF.Util.Shared.projitems" Label="Shared" /> | ||
|
||
<Import Project="..\Emgu.TF.Shared.projitems" Label="Shared" /> | ||
|
||
<Target Name="DeployBinary" AfterTargets="AfterBuild"> | ||
<Message Text="Copying $(OutputPath)$(AssemblyName).dll, $(OutputPath)$(AssemblyName).xml to $(TfBinaryDir)" Importance="high" /> | ||
<Copy SourceFiles="$(OutputPath)$(AssemblyName).dll" DestinationFolder="$(TfBinaryDir)" ContinueOnError="true" /> | ||
<Copy SourceFiles="$(OutputPath)$(AssemblyName).xml" DestinationFolder="$(TfBinaryDir)" ContinueOnError="true" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
cmake/Emgu.TF.runtime.maui.android.Directory.Build.props.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?xml version="1.0"?> | ||
<Project> | ||
<!-- https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-by-directory?view=vs-2022 --> | ||
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" /> | ||
|
||
<PropertyGroup> | ||
<PackageId>${EMGUTF_MAUI_ANDROID_NUGET_ID}</PackageId> | ||
|
||
<title>${EMGUTF_MAUI_ANDROID_NUGET_TITLE}</title> | ||
<version>${CPACK_PACKAGE_VERSION}</version> | ||
<authors>${CPACK_PACKAGE_VENDOR}</authors> | ||
<owners>${CPACK_PACKAGE_VENDOR}</owners> | ||
<summary>Android runtime package of Emgu TF for MAUI</summary> | ||
<Description>This package contains the native Android runtime of Emgu TF for MAUI</Description> | ||
<PackageReleaseNotes>This is the ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH} release of Emgu TF. For online documentation please visit | ||
${NUGET_EMGU_URL}/wiki/files/emgutf/${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}/document/index.html | ||
</PackageReleaseNotes> | ||
|
||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild> | ||
<PackageIcon>nuget_icon.png</PackageIcon> | ||
<PackageReadmeFile>docs/README.md</PackageReadmeFile> | ||
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile> | ||
<RepositoryUrl>https://github.com/emgucv/emgutf</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance> | ||
<PackageOutputPath>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\..\platforms\nuget))</PackageOutputPath> | ||
<PackageTags>tensorflow;emgu;emgutf;ai;image;android;maui</PackageTags> | ||
<PackageProjectUrl>${NUGET_EMGU_URL}</PackageProjectUrl> | ||
<copyright>© ${CPACK_PACKAGE_VENDOR} ${CURRENT_YEAR}. All rights reserved.</copyright> | ||
|
||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\..\..\LICENSE.txt"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
<None Include="..\..\..\..\miscellaneous\nuget_icon.png"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="docs\README.md"> | ||
<Pack>True</Pack> | ||
<PackagePath>docs\</PackagePath> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup Condition="Exists('${TfBinaryDir}\android\arm64-v8a\arm64-v8a_version_string.inc')"> | ||
<None Include="${TfBinaryDir}\android\arm64-v8a\arm64-v8a_version_string.inc"> | ||
<Pack>True</Pack> | ||
<PackagePath>docs\</PackagePath> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup Condition="Exists('${TfBinaryDir}\libs\android\arm64-v8a\armeabi-v7a_version_string.inc')"> | ||
<None Include="${TfBinaryDir}\libs\android\arm64-v8a\armeabi-v7a_version_string.inc"> | ||
<Pack>True</Pack> | ||
<PackagePath>docs\</PackagePath> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup Condition="Exists('${TfBinaryDir}\libs\android\x86\x86_version_string.inc')"> | ||
<None Include="${TfBinaryDir}\libs\android\x86\x86_version_string.inc"> | ||
<Pack>True</Pack> | ||
<PackagePath>docs\</PackagePath> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup Condition="Exists('${TfBinaryDir}\libs\android\x86_64\x86_64_version_string.inc')"> | ||
<None Include="${TfBinaryDir}\libs\android\x86_64\x86_64_version_string.inc"> | ||
<Pack>True</Pack> | ||
<PackagePath>docs\</PackagePath> | ||
</None> | ||
</ItemGroup> | ||
${EMGUTF_MAUI_ANDROID_POST_PROCESS_BINARY} | ||
${EMGUTF_MAUI_ANDROID_POST_PROCESS_NUGET} | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## About this package | ||
|
||
This package is part of the ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH} release of Emgu CV. | ||
|
||
For online documentation please visit | ||
<${NUGET_EMGU_URL}/wiki/files/${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}/document/index.html> | ||
|
||
Release note can be found at | ||
<${NUGET_EMGU_URL}/wiki/index.php/Version_History#Emgu.CV-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}> | ||
|
||
## Setup | ||
|
||
Please make sure to call Emgu.CV.CvInvokeAndroid.Init() before making any other calls to Emgu CV library on Android. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters