updated python build system

Former-commit-id: bf79f74c4a
This commit is contained in:
Daniele Panozzo
2016-03-02 23:51:21 -05:00
parent 38814fe106
commit 93a6a05509
11 changed files with 50 additions and 109 deletions
+34
View File
@@ -0,0 +1,34 @@
#include "python_shared.h"
#include <sstream>
#include <string>
#include <fstream>
extern void python_export_vector(py::module &);
extern void python_export_igl(py::module &);
#ifdef PY_VIEWER
extern void python_export_igl_viewer(py::module &);
#endif
#ifdef PY_COMISO
extern void python_export_igl_comiso(py::module &);
#endif
PYTHON_PLUGIN(igl) {
py::init_threading();
py::module m("igl", "Python wrappers for libigl");
python_export_vector(m);
python_export_igl(m);
#ifdef PY_VIEWER
python_export_igl_viewer(m);
#endif
#ifdef PY_COMISO
python_export_igl_comiso(m);
#endif
return m.ptr();
}