mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-23 05:15:58 +01:00
include: Install headers in an isolated include-dir
This commit is contained in:
parent
ff13849624
commit
892f7a5db0
2 changed files with 15 additions and 7 deletions
|
@ -1 +1,2 @@
|
||||||
configure_file(output: 'config.h', install_dir: 'include/wlr', configuration: conf_data)
|
header_install_dir = 'include/@0@/wlr'.format(meson.project_name())
|
||||||
|
configure_file(output: 'config.h', install_dir: header_install_dir, configuration: conf_data)
|
||||||
|
|
19
meson.build
19
meson.build
|
@ -1,6 +1,7 @@
|
||||||
project(
|
project(
|
||||||
'wlroots',
|
'wlroots',
|
||||||
'c',
|
'c',
|
||||||
|
version: '0.0.1',
|
||||||
license: 'MIT',
|
license: 'MIT',
|
||||||
meson_version: '>=0.43.0',
|
meson_version: '>=0.43.0',
|
||||||
default_options: [
|
default_options: [
|
||||||
|
@ -80,16 +81,21 @@ if elogind.found() and get_option('enable_elogind')
|
||||||
conf_data.set('WLR_HAS_ELOGIND', true)
|
conf_data.set('WLR_HAS_ELOGIND', true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
exclude_files = []
|
exclude_headers = []
|
||||||
wlr_parts = []
|
wlr_parts = []
|
||||||
if get_option('enable_xwayland')
|
if get_option('enable_xwayland')
|
||||||
subdir('xwayland')
|
subdir('xwayland')
|
||||||
wlr_parts += [lib_wlr_xwayland]
|
wlr_parts += [lib_wlr_xwayland]
|
||||||
conf_data.set('WLR_HAS_XWAYLAND', true)
|
conf_data.set('WLR_HAS_XWAYLAND', true)
|
||||||
|
exclude_headers += 'xwayland.h'
|
||||||
|
exclude_headers += 'xwm.h'
|
||||||
else
|
else
|
||||||
exclude_files += ['xwayland.h', 'xwm.h']
|
exclude_headers += 'xwayland.h'
|
||||||
|
exclude_headers += 'xwm.h'
|
||||||
endif
|
endif
|
||||||
install_subdir('include/wlr', install_dir: 'include', exclude_files: exclude_files)
|
exclude_headers += 'meson.build'
|
||||||
|
header_install_dir = 'include/@0@'.format(meson.project_name())
|
||||||
|
install_subdir('include/wlr', install_dir: header_install_dir, exclude_files: exclude_headers)
|
||||||
|
|
||||||
|
|
||||||
subdir('include')
|
subdir('include')
|
||||||
|
@ -150,8 +156,9 @@ subdir('examples')
|
||||||
pkgconfig = import('pkgconfig')
|
pkgconfig = import('pkgconfig')
|
||||||
pkgconfig.generate(
|
pkgconfig.generate(
|
||||||
libraries: lib_wlr,
|
libraries: lib_wlr,
|
||||||
version: '0.0.1',
|
subdirs: '@0@'.format(meson.project_name()),
|
||||||
filebase: 'wlroots',
|
version: meson.project_version(),
|
||||||
name: 'wlroots',
|
filebase: meson.project_name(),
|
||||||
|
name: meson.project_name(),
|
||||||
description: 'Wayland compositor library',
|
description: 'Wayland compositor library',
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue