Tools and libraries to glue C/C++ APIs to high-level languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
triton e8ce0db9be Added integration tests that generate and run wrapping code for both the CLI and C# backend. 12 years ago
build Improved the tests-related build system scripts. 12 years ago
deps Added missing unit testing dependencies. 12 years ago
examples Updated the OpenCV example. 12 years ago
include Added an include folder with the CLI interop helper includes. 12 years ago
patches This patch has been committed in Clang mainline. 13 years ago
src Added integration tests that generate and run wrapping code for both the CLI and C# backend. 12 years ago
tests Added integration tests that generate and run wrapping code for both the CLI and C# backend. 12 years ago
.gitignore Updated the .gitignore patterns. 13 years ago
Building.txt Fix doc. 13 years ago
LICENSE Update the license information. 12 years ago
Manual.md Update Manual.md 13 years ago
README Added new documentation to the tool. 13 years ago

README

This is my custom fork of Mono.Cxxi that aims to replace the GCC-XML parser
with a Clang-based one, and remove all the C++-ABI specific code for things
like object layout and name mangling from the runtime library while replacing
it with metadata generated by Clang (it already provides all the needed info).

This is a work-in-progress and is currently unusable for real work.

Directory structure
-------------------

Manual.md
Work-in-progress documentation for this tool.

src/
Mono.Cxxi
The runtime library
Bridge
Contains the needed classes to bridge the parser and the generator.
Parser
C++/CLI based wrapper around the C++ Clang libraries.
Generator
The Clang-based binding generator
GCCGenerator
The GCC-XML based binding generator (deprecated)
qt
Auto generated Qt bindings + test program

tests/
Regression tests

examples/
Hello
Small, Hello, World! example

Inlining
--------

Inline methods are mapped to a shared library name libFoo-inline.so where libFoo.so is the
original shared library we are binding to. This library should be compiled using gcc's
-fkeep-inline-functions option:

g++ `pkg-config --cflags QtCore QtGui` --shared -fPIC -o libQtGui-inline.so -fkeep-inline-functions qt-gui.cpp `pkg-config --libs QtCore QtGui`