mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +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>
35 lines
566 B
Meson
35 lines
566 B
Meson
# Main client library to message the daemon
|
|
shared_library(
|
|
'gamemode',
|
|
sources: [
|
|
'client_impl.c',
|
|
],
|
|
dependencies: [
|
|
dep_systemd,
|
|
],
|
|
install: true,
|
|
)
|
|
|
|
libgamemode_includes = [
|
|
include_directories('.'),
|
|
]
|
|
|
|
# Small library to automatically use gamemode
|
|
shared_library(
|
|
'gamemodeauto',
|
|
sources: [
|
|
'client_loader.c',
|
|
],
|
|
dependencies: [
|
|
libdl,
|
|
],
|
|
install: true,
|
|
)
|
|
|
|
# Install the gamemode_client header
|
|
gamemode_headers = [
|
|
'gamemode_client.h',
|
|
]
|
|
|
|
install_headers(gamemode_headers)
|