I need help to understand how to properly compile the bindings setting the target paths.
current situation
I'm building a rust library let's call it lib_a.
For this library I created the bindings for c++ and they are compiled as the library cpp-bindings.
To be able to compile a c++ library correctly I have to link also the library libcxxbridge1.a.
I would like to be able to have all the libraries that are needed for c++ in one single directory under the target/<PROFILE> directory.
something like:
project
|--> target
|--> <PROFILE>
[...]
|--> cxxbridge
|--> bindings-headers
[... identical to above ... ]
|--> libcxxbridge1.a (could be a link)
|--> libcpp-bindings.a (could be a link)
|--> lib_a.so
The perfect solution would be to be able to also join together the library libcxxbridge1.a and libcpp-bindings.a but that's just a plus the important part would be to be able to access to them in an easy way.
Hi all,
I need help to understand how to properly compile the bindings setting the target paths.
current situation
I'm building a rust library let's call it
lib_a
. For this library I created the bindings for c++ and they are compiled as the librarycpp-bindings
. To be able to compile a c++ library correctly I have to link also the librarylibcxxbridge1.a
.this is my
build.rs
file:Like that, when I'm building in rust I get a filesystem's structure that is similar to:
Desired situation
I would like to be able to have all the libraries that are needed for c++ in one single directory under the
target/<PROFILE>
directory. something like:The perfect solution would be to be able to also join together the library
libcxxbridge1.a
andlibcpp-bindings.a
but that's just a plus the important part would be to be able to access to them in an easy way.