In Meson, is it possible to get a string absolute path from an object created by a call to include_directories
?
My use case:
include_dirs = include_directories('include')
lib = library(
'mylib',
source_files,
include_directories: include_dirs
)
run_target('analyze',
command: ['static_analysis',
source_files,
'-I', include_dirs.to_abs_path(),
]
)
include_dirs.to_abs_path()
does not exist, but I wonder if something similar is possible. Alternatively, files()
exists(as used for source_files
here); is there a directories()
?