Meson: install headers in hyprland subdir

This commit is contained in:
Mihai Fufezan 2024-05-11 00:25:28 +03:00
parent 411292daf3
commit a336b9b1fb
3 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,7 @@ if not features.get('session')
endif
install_subdir('wlr',
install_dir: get_option('includedir'),
install_dir: get_option('includedir') / 'hyprland',
exclude_files: exclude_files,
)

View File

@ -22,4 +22,4 @@ ver_h = configure_file(
configuration: version_data,
)
install_headers(conf_h, ver_h, subdir: 'wlr')
install_headers(conf_h, ver_h, install_dir: get_option('includedir') / 'hyprland' / 'wlr')

View File

@ -199,10 +199,12 @@ if get_option('examples')
subdir('tinywl')
endif
pkg_install_dir = join_paths(get_option('datadir'), 'pkgconfig')
pkgconfig = import('pkgconfig')
pkgconfig.generate(
lib_wlr,
description: 'Wayland compositor library',
install_dir: pkg_install_dir,
url: 'https://gitlab.freedesktop.org/wlroots/wlroots',
variables: wlr_vars,
)