lix/lix/lix-doc/meson.build
eldritch horrors b0d7a81613 fix tooling after include reorganization
clangd broke because it can't look through symlinks. compile_commands
manipulation does not fix it, clangd configuration does not fix it, a
vfs overlay does not fix it, and while a combination of those can fix
it with a bind mount in place that's just too cursed to even consider

clangd bug: https://github.com/llvm/llvm-project/issues/116877

Change-Id: I8e3e8489548eb3a7aa65ac9d12a5ec8abf814aec
2024-11-19 22:55:32 +00:00

29 lines
783 B
Meson

# FIXME: remove hack once we get rid of meson 1.4
rnix_name = 'rnix-0.11-rs'
rowan_name = 'rowan-0.15-rs'
if meson.version().version_compare('< 1.5')
rnix_name = 'rnix-rs'
rowan_name = 'rowan-rs'
endif
rnix = dependency(rnix_name)
rowan = dependency(rowan_name)
lix_doc = static_library(
'lix_doc',
sources : files('src/lib.rs'),
rust_abi : 'c',
dependencies : [
rowan,
rnix,
],
# If an installed static library depends on this target, then Meson will force
# that to link with `-Wl,--whole-archive`, unless we also install this target.
# `-Wl,--whole-archive` can cause some Problems when linking multiple nested
# static libraries, so let's just install the damn thing.
install : true,
)
liblix_doc = declare_dependency(
link_with : lix_doc,
)