meson: set project details

List the licenses, add minimum meson version, C standard, warning level
and default prefix.

 - licenses - non-authoritative, a decent indication
 - meson 0.60 - like mesa, systemd, kmod, available in Debian old-stable
 - gnu99 - bit of a guess work, c99 definitely chokes
 - warning_level=2 - equivalent to -Wall -Wextra
 - prefix /usr like the autotools build

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
Emil Velikov 2024-09-18 20:12:43 +01:00
parent 892ee8d998
commit 5ceedcf384

View File

@ -1,7 +1,14 @@
# SPDX-License-Identifier: GPL-2.0-only
# Copyright (c) 2024 Greg Kroah-Hartman <gregkh@linuxfoundation.org>
project('usbutils', 'c', version: '018')
project(
'usbutils',
'c',
version: '018',
license: ['GPL-2.0-only', 'GPL-2.0-or-later','GPL-2.0-or-later'],
meson_version : '>=0.60.0',
default_options : ['c_std=gnu99', 'warning_level=2', 'prefix=/usr']
)
pkg = import('pkgconfig')