Skip to content
Snippets Groups Projects
Commit 059f0810 authored by Niklas Haas's avatar Niklas Haas
Browse files

meson: don't strip subdirs from header install process

Apparently meson doesn't really support this cleanly, and also somehow
doesn't have helper functions for getting the basename of paths etc., so
we have to implement this in our own logic. Somewhat ugly but okay,
whatever.

Fixes https://github.com/haasn/libplacebo/issues/73
parent 3af08f89
No related branches found
No related tags found
No related merge requests found
Pipeline #17448 passed with stages
in 5 minutes and 45 seconds
......@@ -287,7 +287,15 @@ lib = library('placebo', sources,
# Install process
foreach h : headers
install_headers('include' / proj_name / h, subdir: proj_name)
parts = h.split('/')
path = proj_name
foreach p : parts
if p != parts[-1]
path = path / p
endif
endforeach
install_headers('include' / proj_name / h, subdir: path)
endforeach
pkg = import('pkgconfig')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment