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

This allows for easy requesting of gamemode and pausing for any signal Primarily useful for simple tests, but also functionally to allow enterning and exiting gamemode manually
58 lines
1.0 KiB
Meson
58 lines
1.0 KiB
Meson
# Convenience library for the duplicated logging functionality
|
|
common_sources = [
|
|
'logging.c',
|
|
'governors-query.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',
|
|
'daemon_config.c',
|
|
]
|
|
|
|
executable(
|
|
'gamemoded',
|
|
sources: daemon_sources,
|
|
dependencies: [
|
|
link_daemon_common,
|
|
dep_threads,
|
|
dep_systemd,
|
|
inih_dependency,
|
|
libdl,
|
|
],
|
|
include_directories: [
|
|
config_h_dir,
|
|
libgamemode_includes,
|
|
],
|
|
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,
|
|
install_dir: path_libexecdir,
|
|
)
|