mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-26 17:31:45 +02:00
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:

committed by
Marc Di Luzio

parent
2bbaab129b
commit
1328e07f86
@ -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
8
data/meson.build
Normal 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,
|
||||
)
|
Reference in New Issue
Block a user