New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use shared_library in custom_target command #4892
Comments
You should pass it using custom_target('foo.dll.debug',
build_by_default: true,
command: [python3, extractDebugScript, '@INPUT@'],
input: foo_lib,
output: 'libfoo.so.debug'
) |
@QuLogic Your suggestion didn't work for me. The only thing that worked was something like
|
This is a special case of #1848. I also found this via trying to build a .typelib for a shared library (issue #5968). As mentioned in #2296, #1848 or #5968, the documented example of using a built file as But then there's still an impedance mismatch:
Then I would expect to do something like this: umockdev_lib = shared_library(...)
custom_target('UMockdev-1.0 typelib',
command: [g_ir_compiler, '--output', '@OUTPUT@', '-l', 'libumockdev.so.0', '@INPUT@'],
input: umockdev_lib[3],
output: 'UMockdev-1.0.typelib',
install: true,
install_dir: get_option('libdir') / 'girepository-1.0') But that doesn't work:
I also tried to put the indexing into the command line:
but that doesn't work either:
i. e. you only see the built .so, not the auxiliary outputs (.gir, .h and so on). So I think this amounts to a design decision: Does meson want to chain builds with file objects or file names? In the former case, please provide proper output objects, in the latter case, re-enable Thanks! |
Any particular reason why you are building typelibs by hand rather than using the builtins in the Gnome module? |
@jpakkane : The Compiling Vala applications and libraries documentation says to use But also, (1) I need to post-process the .gir as Vala does not support explicit annotations (I need a |
Example
Error
Workaround
It is necessary to use
foo_lib.full_path()
instead. This is different than what work forexecutable
.Also,
foo_lib
should be added todepends
ofcustom_target
.The text was updated successfully, but these errors were encountered: