frgomes / scala-bindgen

A native binding generator for the Scala language.
BSD 3-Clause "New" or "Revised" License
35 stars 6 forks source link

Add wrapper for libclang and a small test suite #10

Closed jonas closed 7 years ago

jonas commented 7 years ago

Imports the libclang wrapper from scala-native/scala-native#642 as well as the build setup to compile it. Test bindgen against the existing test files in a separate project.

jonas commented 7 years ago

The build failure is probably caused because scala-native cannot file llvm-config.

[error] /root/scala-bindgen/bindgen/src/main/resources/clang.c:152:10: fatal error: 'clang-c/Index.h' file not found
[error] #include <clang-c/Index.h>
[error]          ^
[error] 1 error generated.
[error] Failed to compile /root/scala-bindgen/bindgen/src/main/resources/clang.c
jonas commented 7 years ago

Added a workaround which could go upstream into the docker image.