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 d56050803d Extract the TranslationUnit class into its own file. 12 years ago
build Added some helper build functions for tests and examples. 12 years ago
deps Added missing unit testing dependencies. 12 years ago
examples Added preliminary OpenCV example. 12 years ago
patches This patch has been committed in Clang mainline. 13 years ago
src Extract the TranslationUnit class into its own file. 12 years ago
tests Update the passes test source file. 12 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`