Split meson up to be more modular

This also explicitly constructs reusable library components to make it
easier to extend the project over time. Notably we make less assumptions
about the host system and use pkgconfig where appropriate to give us
system details, such as the systemd system unit directory for packaging.
This can be overriden with the meson option.

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
Ikey Doherty
2018-01-15 12:11:46 +00:00
committed by Marc Di Luzio
parent 2bbaab129b
commit 1328e07f86
8 changed files with 145 additions and 49 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
# Allow cpugovctl to control the governors
chmod +4555 ${MESON_INSTALL_PREFIX}/bin/cpugovctl
PREFIX=${MESON_INSTALL_PREFIX:-/usr}
chmod +4555 ${DESTDIR}${PREFIX}/bin/cpugovctl

8
data/meson.build Normal file
View File

@ -0,0 +1,8 @@
# Install the service file
install_data('gamemoded.service', install_dir: path_systemd_unit_dir)
# Give cpugovctl the permissions it needs
meson.add_install_script(
'cpugovctl_perms.sh',
dependencies: cpugovctl,
)