Meson: Add datadir and datarootdir variables to libglvnd.pc.

Add the missing datadir and datarootdir variables to the libglvnd.pc file that
Meson generates.
This commit is contained in:
Kyle Brenneman 2020-01-10 12:08:50 -07:00
parent 42a25c1ed7
commit 45e2a061e8

View file

@ -205,5 +205,12 @@ pkg.generate(
name : 'libglvnd',
description : 'Vendor-neutral OpenGL dispatch library vendor interface',
version : meson.project_version(),
variables : [
# Drivers can use these to know where to install the JSON files to tell
# libglvnd to load them. Meson doesn't have a separate datarootdir option,
# so juse use datadir for both of these.
'datarootdir=${prefix}/' + get_option('datadir'),
'datadir=${prefix}/' + get_option('datadir'),
]
)