fix: Make pc files not include -Ilibx52/ in CFLAGS

Modern libraries do not handhold the user into just calling the header,
instead they namespace it, e.g. libevdev/libevdev.h. Because we already
install our headers under the libx52/ directory, having the pkg-config
files specify `-Ilibx52/` is a legacy from the old days, and should no
longer be used.

This commit also adds pkg-config files for x52dcomm and vkm, installing
them in their proper locations.
pull/66/head
nirenjan 2026-04-03 22:42:37 -07:00
parent 7bdaea442e
commit 9c47e78fc5
5 changed files with 7 additions and 5 deletions

View File

@ -15,6 +15,12 @@ lib_libx52dcomm = library('x52dcomm', libx52dcomm_sources,
install: true, install: true,
include_directories: includes) include_directories: includes)
pkgconfig.generate(lib_libx52dcomm,
name: 'x52dcomm',
description: 'Client library for communicating with the x52d X52 daemon.',
version: libx52dcomm_version,
)
x52d_sources = [ x52d_sources = [
'x52d_main.c', 'x52d_main.c',
'x52d_config_parser.c', 'x52d_config_parser.c',

View File

@ -20,7 +20,6 @@ install_headers('libx52.h', subdir: meson.project_name())
pkgconfig.generate(lib_libx52, pkgconfig.generate(lib_libx52,
name: 'libx52', name: 'libx52',
description: 'Linux/Unix library to control Saitek X52/X52Pro joystick extended functionality.', description: 'Linux/Unix library to control Saitek X52/X52Pro joystick extended functionality.',
subdirs: meson.project_name(),
version: libx52_version) version: libx52_version)
# Unit tests for libx52 # Unit tests for libx52

View File

@ -19,7 +19,6 @@ install_headers('libx52io.h', subdir: meson.project_name())
pkgconfig.generate(lib_libx52io, pkgconfig.generate(lib_libx52io,
name: 'libx52io', name: 'libx52io',
description: 'Linux/Unix library to read and parse X52 input', description: 'Linux/Unix library to read and parse X52 input',
subdirs: meson.project_name(),
version: libx52io_version, version: libx52io_version,
) )

View File

@ -20,7 +20,6 @@ install_headers('libx52util.h', subdir: meson.project_name())
pkgconfig.generate(lib_libx52util, pkgconfig.generate(lib_libx52util,
name: 'libx52util', name: 'libx52util',
description: 'Extra utility functions to manage X52 extended functionality', description: 'Extra utility functions to manage X52 extended functionality',
subdirs: meson.project_name(),
version: libx52util_version, version: libx52util_version,
) )

View File

@ -56,6 +56,5 @@ endif
install_headers('vkm.h', subdir: 'vkm') install_headers('vkm.h', subdir: 'vkm')
pkgconfig.generate(lib_vkm, pkgconfig.generate(lib_vkm,
name: 'vkm', name: 'vkm',
description: 'Linux/Unix library to control Saitek X52/X52Pro joystick extended functionality.', description: 'Virtual keyboard/mouse interface library for injecting events into the host OS.',
subdirs: meson.project_name(),
version: vkm_version) version: vkm_version)