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
47
daemon/meson.build
Normal file
47
daemon/meson.build
Normal file
@ -0,0 +1,47 @@
|
||||
# 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,
|
||||
)
|
Reference in New Issue
Block a user