gamemode/lib/meson.build
Christian Kellner a4b98e61bf lib: generate a pkg-config files
To ease development, create a gamemode.pc and a gamemode-auto.pc
file, that other projects can use integrate with gamemode. The
former if they want to integrate at the source level and the latter
if the automatic integration is preferred.
2018-07-02 13:53:10 +02:00

60 lines
1.0 KiB
Meson

# Main client library to message the daemon
gamemode = shared_library(
'gamemode',
sources: [
'client_impl.c',
],
dependencies: [
dep_systemd,
],
install: true,
)
libgamemode_includes = [
include_directories('.'),
]
# Small library to automatically use gamemode
gamemodeauto = 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)
# 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
],
)