meson: Don't try to fixup non-existing headers

Change-Id: Ia2cd1b5d80e159a73511232dc67ed7df00eba2ed
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
Jeffy Chen 2021-08-26 15:23:01 +08:00
parent 48d1e94e43
commit 95f6494b12
2 changed files with 3 additions and 2 deletions

View file

@ -7,4 +7,5 @@
HEADER="${MESON_INSTALL_DESTDIR_PREFIX:-/usr}/$1"
sed -i 's/MESA_EGL_NO_X11_HEADERS/__unix__/g' "$HEADER"
[ -f "$HEADER" ] && \
sed -i 's/MESA_EGL_NO_X11_HEADERS/__unix__/g' "$HEADER"

View file

@ -288,7 +288,7 @@ if not wrappers
meson.add_install_script('fixup_wrappers.sh', get_option('libdir'))
endif
if platform != 'x11'
if platform != 'x11' and not vendor_package
# Fixup EGL header
meson.add_install_script('fixup_nox11.sh',
get_option('includedir') / 'EGL' / 'eglplatform.h')