aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2022-09-25 13:51:07 -0400
committerXavier Claessens <xclaesse@gmail.com>2023-09-09 21:28:22 -0400
commit10708676ade79037f2d2ceeb98500a40a977abef (patch)
treedfe1175738d365c8476df7a629324432543cbb39 /docs/markdown/snippets
parent5f46ea116c6f80edd3633c03aacd7427ef3d0cec (diff)
downloadmeson-10708676ade79037f2d2ceeb98500a40a977abef.zip
meson-10708676ade79037f2d2ceeb98500a40a977abef.tar.gz
meson-10708676ade79037f2d2ceeb98500a40a977abef.tar.bz2
gnome.mkenum_simple(): Fix include path when header is in subdir
It was generating #include with the basename of every header file. That assumes that every directory where there are headers are also included into search path when compiling the .c file. Change to use path relative to current subdir, which can be both in build or source directory. That means that we assume that when the .c file is compiled, the target has a include_directories pointing to the directory where gnome.mkenum_simple() has been called, which is generally '.' and added automatically. Also fix type annotation to only allow str and File sources, other types have never been working, it would require to iterate over custom target outputs, etc. Fixes: #7582
Diffstat (limited to 'docs/markdown/snippets')
0 files changed, 0 insertions, 0 deletions