gamemode/lib/meson.build
Christian Kellner 6f7df91b60 lib: support the new pidfd based APIs
Try to make API requests using the new pidfd based APIs. If getting
the pidfds fails or if the remote (daemon) does not support the new
pidfd based D-Bus API, transparently fall back to the old API.
2019-10-21 16:20:22 +02:00

72 lines
1.4 KiB
Meson

# Libtool like versioning (current.revision.age) for the libraries
# See https://www.sourceware.org/autobook/autobook/autobook_61.html#Library-Versioning
lt_current = '0'
lt_revision = '0'
lt_age = '0'
lt_version = '@0@.@1@.@2@'.format(lt_current, lt_age, lt_revision)
# Main client library to message the daemon
gamemode = shared_library(
'gamemode',
sources: [
'client_impl.c',
],
dependencies: [
link_lib_common,
dep_dbus,
],
install: true,
soversion: lt_current,
version: lt_version,
)
libgamemode_includes = [
include_directories('.'),
]
# Small library to automatically use gamemode
gamemodeauto = shared_library(
'gamemodeauto',
sources: [
'client_loader.c',
],
dependencies: [
libdl,
],
install: true,
soversion: lt_current,
version: lt_version,
)
# Install the gamemode_client header
gamemode_headers = [
'gamemode_client.h',
]
install_headers(gamemode_headers)
# Generate a pkg-config files
pkg = import('pkgconfig')
desc = 'GameMode temporarily applies game specific optimisations to the host OS.'
pkg.generate(
name: 'gamemode',
description: desc,
filebase: 'gamemode',
version: meson.project_version(),
libraries: [
libdl
],
)
pkg.generate(
name: 'gamemode',
description: desc,
filebase: 'gamemode-auto',
libraries: gamemodeauto,
version: meson.project_version(),
libraries_private: [
libdl
],
)