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.
 
 
 
 
 
Tarmo Pikaro ea9b23e0e1 _wrapper suffix, add autogenerated files manually to project. 13 years ago
build Make compilable under vs2010, add build instructions, delete solutions as auto-generated, tune premake4 files. 13 years ago
examples _wrapper suffix, add autogenerated files manually to project. 13 years ago
patches This patch has been committed in Clang mainline. 13 years ago
src Add _wrapper suffix to autogenerated files, so would not conflict with normal headers/sources. 13 years ago
tests Move qt into examples directory and don't build examples by default. Fix tests build 14 years ago
.gitignore Ignore Visual Studio artifacts. 13 years ago
Building.txt Make compilable under vs2010, add build instructions, delete solutions as auto-generated, tune premake4 files. 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`