Meson: install headers in hyprland subdir

This commit is contained in:
Mihai Fufezan 2024-05-11 00:25:28 +03:00
parent 5c1d51c5a2
commit 41bb87866b
Signed by: fufexan
SSH key fingerprint: SHA256:SdnKmEpJrDu1+2UO1QpB/Eg4HKcdDi6n+xSRqFNJVpg
3 changed files with 4 additions and 2 deletions

View file

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

View file

@ -22,4 +22,4 @@ ver_h = configure_file(
configuration: version_data, 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') subdir('tinywl')
endif endif
pkg_install_dir = join_paths(get_option('datadir'), 'pkgconfig')
pkgconfig = import('pkgconfig') pkgconfig = import('pkgconfig')
pkgconfig.generate( pkgconfig.generate(
lib_wlr, lib_wlr,
description: 'Wayland compositor library', description: 'Wayland compositor library',
install_dir: pkg_install_dir,
url: 'https://gitlab.freedesktop.org/wlroots/wlroots', url: 'https://gitlab.freedesktop.org/wlroots/wlroots',
variables: wlr_vars, variables: wlr_vars,
) )