FFIG / ffig

Generate code to call C++ libraries from other languages
MIT License
29 stars 9 forks source link

Add Boost Python bindings #416

Closed jbcoe closed 6 years ago

jbcoe commented 6 years ago

What does this PR do?

Add Boost Python bindings (tested on Linux CI)

Closes

closes #370

jbcoe commented 6 years ago

run ./scripts/generate.sh to generate and build the (broken) Python bindings.

I think I need some help.

https://www.boost.org/doc/libs/1_66_0/libs/python/doc/html/article.html

jbcoe commented 6 years ago

Broken bindings fixed with help from: https://stackoverflow.com/questions/50180219/why-is-boost-python-trying-to-instantiate-an-abstract-type

Shape::is_equal is currently not generating bindings that compile so I've restricted the template to consider only properties.

I've added a build target and crude test to CMake. Library link commands are not quite there (missing boost-python). See: https://gitlab.kitware.com/cmake/cmake/issues/16391

Off to see friends and family for the long weekend.

ajbennieston commented 6 years ago

This all looks fine to me.