Tools to turn .NET libraries into native libraries that can be consumed on Android, iOS, Mac, Linux and other platforms.
Перейти к файлу
Joao Matos 22ffe670a2 [ast] Improve ManagedQualifiedName to deal correctly with synthetic fields acessors. 2017-11-23 17:01:46 +00:00
.cake Update to Cake 0.23.0. 2017-10-19 00:08:00 +01:00
binder [ast] Improve ManagedQualifiedName to deal correctly with synthetic fields acessors. 2017-11-23 17:01:46 +00:00
build [build] Pass -Wno-typedef-redefinition to compiler to reduce warnings. 2017-11-23 17:01:46 +00:00
docs Updates for latest Android Studio 2017-10-26 10:28:07 -05:00
external Update CppSharp to latest revision. 2017-11-23 17:01:46 +00:00
objcgen Fix objcgen Makefile 2017-11-15 11:51:01 -05:00
samples [objc] Add `--nowarn:` and `--warnaserror:` options to the driver (#339) 2017-05-12 18:21:24 -04:00
support [android] update latest 15-4 stable branch of Xamarin.Android 2017-11-10 15:54:56 -05:00
tests [Android] add MonoPackageManager.setContext 2017-10-30 10:24:36 -05:00
tools/diff [windows] move Cake `tools` directory to `.cake` 2017-06-29 13:26:18 -05:00
.gitignore Update .gitignore for VS and Windows 2017-10-23 10:39:02 -05:00
.gitmodules Bump Xamarin.Android.Tools 2017-06-29 16:19:23 -05:00
.travis.yml [ci] Use OpenJDK 8 from Travis. 2017-09-06 22:45:42 +01:00
Embeddinator-4000.nuspec [nuget] Added Nuget package spec. 2017-07-31 21:27:12 +01:00
Embeddinator-4000.sln Adding generic F# test suit. 2017-08-28 20:44:51 +02:00
LICENSE Pushed initial work-in-progress code for managed-to-native bindings generator. 2016-07-25 16:34:57 +01:00
README.md [docs] Update readme to reflect current status of project. 2017-09-19 14:59:41 +01:00
appveyor.yml [android] update latest 15-4 stable branch of Xamarin.Android 2017-11-10 15:54:56 -05:00
build.cake [build] Linux fixes. 2017-08-30 19:13:13 +01:00
build.ps1 [cake] Do NOT remove our custom NuGet config file... 2017-09-08 17:47:08 +01:00
build.sh [cake] Use a custom NuGet config. 2017-09-08 17:32:25 +01:00
e4000-logo.png Corrected logo spelling error (#387) 2017-06-05 19:51:15 -04:00

README.md

Embeddinator-4000 Logo

Windows macOS
windows-vs-x86 osx-clang-x86

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 and initialize/update submodules as well as solution depends on them.

Open the solution file Embeddinator-4000.sln with Visual Studio or Xamarin Studio and press F7.

Usage

To generate bindings for a managed library you invoke the Embeddinator-4000.exe command line tool.

Important: please follow the instructions in objcgen's README to use the new and improved Objective-C generator (will eventually fusion with Embeddinator-4000.exe.

If you do not pass any arguments, you will get a list of the tool options:

Embeddinator-4000.exe [options]+ ManagedAssembly.dll
Generates target language bindings for interop with managed code.

      --gen=VALUE            target generator (C, C++, Obj-C, Java)
  -p, --platform=VALUE       target platform (iOS, macOS, Android, Windows)
  -o, --out, --outdir=VALUE  output directory
  -c, --compile              compiles the generated output
  -d, --debug                enables debug mode for generated native and
                               managed code
  -t, --target=VALUE         compilation target (static, shared, app)
      --dll, --shared        compiles as a shared library
      --static               compiles as a static library
      --vs=VALUE             Visual Studio version for compilation: 2012, 2013,
                               2015, 2017, Latest (defaults to Latest)
  -v, --verbose              generates diagnostic verbose output
  -h, --help                 show this message and exit

To generate C bindings for a Xamarin.Foo.dll assembly you would call the tool like:

Embeddinator-4000.exe -gen=c -out=foo Xamarin.Foo.dll