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 3800ccf996 Added a pretty simple diagnostic system so we can provide improved diagnostics to clients. 13 years ago
build Add the new generator tests project to the master build. 13 years ago
examples Simplified the Premake build files. 13 years ago
patches This patch has been committed in Clang mainline. 13 years ago
src Added a pretty simple diagnostic system so we can provide improved diagnostics to clients. 13 years ago
tests Added a set of tests for type printing in the C++/CLI backend. 13 years ago
.gitignore Updated the .gitignore patterns. 13 years ago
Building.txt Fix doc. 13 years ago
LICENSE Add license and license headers 15 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`