WIP: Meson build - #30
BastiaanOlij wants to merge 3 commits into
Conversation
|
Currently stuck on hidapi.wrap is there, not sure why it can't run it, possibly because I need to install pkgconfig first? |
|
Ok, the answer was in there: This copies the hidapi.wrap into our subprojects folder and allows us to build it.. Now I need to find out how to tell it to copy the final dll into the right place |
aa79317 to
c746d68
Compare
|
Ok, it now works though you need to copy all the files in place and I'm not sure I like the -0 suffix the openhmd and godot_openhmd dlls get. I get why, though its weird hidapi doesn't get the suffix. I'll be improving the demo a little more and then I will likely merge this. |
|
The -0 suffix on built dlls comes from having a version: library_version line in the meson library() declaration - it's to allow parallel installation of versions with different ABI. Could be avoided with a platform check in the relevant meson builds, like: library_kwargs = {} |
|
For copying the build artifacts into the uninstalled directories for use, one can use a meson custom_target() that runs a script, and you can assign a ninja target name to it with alias_target(). So you can tell people to do ninja prepare or something which will copy the artifacts. However, if you need to copy from multiple builddirs, it's probably best to have a wrapper script that calls meson multiple times for each target platform in separate builddirs and then consolidates it into one. |
Working together with @thaytan to move over to using meson to build so we can automatically pull in the latest openhmd or direct to specific branches of this.