gamemode/daemon/meson.build
Marc Di Luzio 759cbc3c40 Add config file parsing
Checks for a gamemode.ini in /usr/share/gamemode/ (or in the cwd for debugging)

	Currently allows for blacklisting and whitelisting clients based on rudimentary needle-haystack executable name checks

	See the example/gamemode.ini file for expected syntax

	Using the BSD licensed inih library (with additional meson.build file)
2018-03-23 16:59:15 +00:00

56 lines
993 B
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,
],
include_directories: [
config_h_dir,
],
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,
)