From 38bdbdb0f5356c07f077f238c4e27703e3ff4c1b Mon Sep 17 00:00:00 2001 From: Ching Pei Yang <59727193+horriblename@users.noreply.github.com> Date: Wed, 26 Apr 2023 23:59:16 +0200 Subject: Plugin header overhaul (#2087) * meson: install headers * Meson/CMake: add pkg-config file for headers * makefile: install headers and pkgconfig * CMake: move protocols to cmake Co-authored-by: Ching Pei Yang --------- Co-authored-by: Mihai Fufezan Co-authored-by: vaxerski <43317083+vaxerski@users.noreply.github.com> --- meson.build | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index ce371ec3..7d2cdc35 100644 --- a/meson.build +++ b/meson.build @@ -75,9 +75,25 @@ if get_option('buildtype') == 'debug' add_project_arguments('-DHYPRLAND_DEBUG', language: 'cpp') endif +globber = run_command('find', 'src', '-name', '*.h*', check: true) +headers = globber.stdout().strip().split('\n') +foreach file : headers + install_headers(file, subdir: 'hyprland', preserve_path: true) +endforeach + subdir('protocols') subdir('src') subdir('hyprctl') subdir('assets') subdir('example') subdir('docs') + +pkg_install_dir = join_paths(get_option('datadir'), 'pkgconfig') + +import('pkgconfig').generate( + name: 'Hyprland', + filebase: 'hyprland', + url: 'https://github.com/hyprwm/Hyprland', + description: 'Hyprland header files', + install_dir: pkg_install_dir, +) -- cgit v1.2.3