mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-09 00:57:21 +02:00

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>
48 lines
809 B
Meson
48 lines
809 B
Meson
# Convenience library for the duplicated logging functionality
|
|
common_sources = [
|
|
'logging.c',
|
|
]
|
|
|
|
daemon_common = static_library(
|
|
'daemon-common',
|
|
sources: common_sources,
|
|
install: false,
|
|
)
|
|
|
|
link_daemon_common = declare_dependency(
|
|
link_with: daemon_common,
|
|
)
|
|
|
|
# Main daemon
|
|
daemon_sources = [
|
|
'main.c',
|
|
'gamemode.c',
|
|
'daemonize.c',
|
|
'dbus_messaging.c',
|
|
'governors.c',
|
|
]
|
|
|
|
executable(
|
|
'gamemoded',
|
|
sources: daemon_sources,
|
|
dependencies: [
|
|
link_daemon_common,
|
|
dep_systemd,
|
|
],
|
|
install: true,
|
|
)
|
|
|
|
# Small target util to get and set cpu governors
|
|
cpugovctl_sources = [
|
|
'cpugovctl.c',
|
|
]
|
|
|
|
cpugovctl = executable(
|
|
'cpugovctl',
|
|
sources: cpugovctl_sources,
|
|
dependencies: [
|
|
link_daemon_common,
|
|
],
|
|
install: true,
|
|
)
|