gamemode/daemon/meson.build
Kai Krakow 748808be7e refactor: Break proc API functions out of the main daemon source
Signed-off-by: Kai Krakow <kai@kaishome.de>
2018-10-09 00:33:46 +02:00

59 lines
1.1 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',
'gamemode-proc.c',
'daemonize.c',
'dbus_messaging.c',
'governors.c',
'daemon_config.c',
]
gamemoded_includes = libgamemode_includes
gamemoded_includes += config_h_dir
executable(
'gamemoded',
sources: daemon_sources,
dependencies: [
link_daemon_common,
dep_threads,
dep_systemd,
inih_dependency,
libdl,
],
include_directories: gamemoded_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,
)