GithubHelp home page GithubHelp logo

m039 / xlis Goto Github PK

View Code? Open in Web Editor NEW
11.0 4.0 2.0 9.68 MB

Simple examples of cross-language interactions

C# 75.18% C++ 12.10% CMake 2.81% Shell 2.33% Objective-C 6.07% Swift 0.87% Lua 0.62%
cppsharp swig interop pinvoke xamarin swift blackmire sharpcpp xlis

xlis's Introduction

Cross-Language Interaction Sandbox

Various experiments with programming languages and platforms.

Examples of cross-language polymorphism

First language in the name of a folder is a host language. For example, CSharp-Cpp-Interop means "I want to use C++ in a C# enviroment".

C# and C++

  • CSharp-Cpp-CppSharp
  • CSharp-Cpp-Interop
  • CSharp-Cpp-SWIG
  • Cpp-CSharp-Blackmire
  • Cpp-CSharp-SharpCpp

Swift and C++

  • ObjC-Swift-Interop

Example in multiplatform environment

  • Cpp-Cross-Platform - example of using C++ on iOS, Android, Windows and Mac with Xamarin.

Notes

  • CppLibraryProject is copy-pasted and slightly modified across the projects, to make it obvious which differences each approach has.
  • All projects were tested on mac.

xlis's People

Contributors

m039 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

xlis's Issues

Quick question / Experience feedback

Hi Dmitry,

Hope you are all well !

Context:

I wanted to ask you a feedback about your cross-compilation experience as I am also working on some projects that would require to automatically generated unsafe bindings on some C/C++ projects. The difference with your experience is that I would like to create native plugins for Unity3D and not for Xamarin, and probably to build them with CMake. ^^

Actually, I am making some experiments with a couple of CMake macros, mainly to get all librairies properties (headers files list, define the expected library type per platforms like iOS (static lib) /Android (shared lib),... but I cannot test/forecast the worthiness of my efforts for a wider scope of integration.

Some examples of C++ projects to bind on my wish list :

Question:
So, I am not sure if it would be possible to automate in a reliable way the generation of native plugins for U3D with https://github.com/mono/CppSharp from the Mono team ?

From your latest tests/experiments, would u see a way to automate such process with tools like Hunter/Polly ?

Ps #1. I saw that you were familiar with Polly in some shell scripts.
Ps #2. Please find some references in order to save u some time of research on these topics. ^^


CMake driven examples of Unity Native Plugins (manually wrapped):

**Docs - Native Plugins for Unity3D **


Cheers,
Richard

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.