Skip to content

Files

Latest commit

f0bb391 · Feb 20, 2017

History

History

Cpp-Cross-Platform

C++ in multiplatform environment

Examples of using C++ and C# with Xamarin.

  • CppLibrary is a core library.
  • CSharpProjects
    • CppSharpSharedLibrary a wrapper for the core library using CppSharp.
    • iOSXLExample
    • AndroidXLExample
    • WindowsXLExample
    • MacXLExample
  • Precompiled
  • Toolchains is needed for cmake.
  • compile.sh compiles the core library for all platforms, and move results to the Precompiled.

Notes

  • Code from CSharp-Cpp-Interop and CSharp-Cpp-SWIG won't work on iOS, cause of AOT. On the other hand CppSharp works, but with modifications in the generated file: MonoPInvokeCallbackAttribute, Limitations.
  • A name of the library in DllImport is changed depending on a platform.