Tools to turn .NET libraries into native libraries that can be consumed on Android, iOS, Mac, Linux and other platforms.
Перейти к файлу
Alexander Köplinger e06fe7e7ae Rename master branch to main 2021-03-09 11:27:18 +01:00
.cake [build] changes to fix the CI 2018-12-21 18:01:16 -05:00
binder VS 2019 Refresh (#739) 2019-09-09 16:23:22 -05:00
build VS 2019 Refresh (#739) 2019-09-09 16:23:22 -05:00
docs Remove release notes which will move to official site (#652) 2018-05-01 10:36:24 -05:00
external VS 2019 Refresh (#739) 2019-09-09 16:23:22 -05:00
objcgen Rename master branch to main 2021-03-09 11:27:18 +01:00
samples [objc] Add `--nowarn:` and `--warnaserror:` options to the driver (#339) 2017-05-12 18:21:24 -04:00
support VS 2019 Refresh (#739) 2019-09-09 16:23:22 -05:00
tests [build] changes to fix the CI 2018-12-21 18:01:16 -05:00
tools/diff Add technical documents and improve readme (#646) 2018-04-10 14:43:08 -05:00
.gitattributes [windows] .gitattributes for proper line endings settings (#667) 2018-05-04 17:06:07 -05:00
.gitignore [build] remove anything related to AppVeyor (#666) 2018-05-01 15:49:24 -05:00
.gitmodules Bump Xamarin.Android.Tools 2017-06-29 16:19:23 -05:00
CODE-OF-CONDUCT.md Link Code of Conduct (#771) 2020-04-08 08:30:09 +02:00
CODEOWNERS CODEOWNERS for all *.cake files (#639) 2018-03-27 15:24:09 -05:00
Contributing.md Add technical documents and improve readme (#646) 2018-04-10 14:43:08 -05:00
Embeddinator-4000.nuspec Rename master branch to main 2021-03-09 11:27:18 +01:00
Embeddinator-4000.sln [objc] Fix issue blocking all F# libraries (#632) 2018-03-27 10:20:41 -05:00
ISSUE_TEMPLATE.md Add issue template (#623) 2018-03-19 09:29:16 -05:00
LICENSE Pushed initial work-in-progress code for managed-to-native bindings generator. 2016-07-25 16:34:57 +01:00
ProjectStructure.md Add technical documents and improve readme (#646) 2018-04-10 14:43:08 -05:00
README.md Rename master branch to main 2021-03-09 11:27:18 +01:00
Usage.md Add technical documents and improve readme (#646) 2018-04-10 14:43:08 -05:00
azure-pipelines.yml Rename master branch to main 2021-03-09 11:27:18 +01:00
build.cake VS 2019 Refresh (#739) 2019-09-09 16:23:22 -05:00
build.ps1 VS 2019 Refresh (#739) 2019-09-09 16:23:22 -05:00
build.sh VS 2019 Refresh (#739) 2019-09-09 16:23:22 -05:00
e4000-logo.png Logo - Fixed kerning between A and T 2017-11-29 11:04:49 -08:00

README.md

Embeddinator-4000 Logo

Embeddinator-4000 is a tool to turn existing .NET libraries into libraries that can be consumed by other languages.

It is a tool that takes a .NET assembly and generates the necessary glue to surface the .NET API as a native API. The goal is to surface .NET libraries to all ecosystems where Mono/Xamarin run, and for each platform we provide an interface that is native to that platform as well as the tools needed to turn a .NET library into something that can be consumed on that platform.

Presently there is support for .NET to C, Objective-C (across the various Apple platforms) and Java (Android and regular Java), across Windows, Linux and macOS platforms.

Getting Started

Check out our documentation to get started.

Community

Feel free to join us at our #managed-interop Gitter discussion channel.

Building

  • Clone this repository
  • Initialize/update submodules: git submodule update --recursive --init
  • Open the solution file Embeddinator-4000.sln with Visual Studio or Visual Studio For Mac
  • Build

If you prefer to build from the command line Cake or Make can be used to build instead of Visual Studio For Mac.

Cake

The Android/C portions of the project can also be built with Cake using the build.ps1 / build.sh scripts.

On OS X, you can setup your environment for Android by running a shell script:

./build.sh -t Generate-Android -v diagnostic

On Windows, in Powershell:

.\build.ps1 -t Generate-Android -v diagnostic

This will download a master build of Xamarin.Android and extract it into /external/Xamarin.Android.

Embeddinator-4000.exe will be compiled to build/lib/Release. The Cake script will also run Embeddinator against a test assembly, so you can be sure your system is setup properly.

Makefile

The Objective-C portions of the project can be built with make in objcgen.

Nuget Generation

To generate the nuget one can use either (they both invoke the same build process):

  • make nuget in objcgen
  • Cake :./build.sh -t Create-Package

Usage

The getting started documentation walks through basic usage of the Embeddinator.

More details on platform specific invocations can be found here.

Development

The contributing guide covers a number of areas to consider when contributing to Embeddinator-4000.

A number of internal documentation files exist describing the project and internal structure of Embeddinator: