mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
meson: Set GLIB_VERSION_{MIN_REQUIRED,MAX_ALLOWED}
To help catch errors where we accidentally use the wrong symbols. Closes: #42
This commit is contained in:
@ -66,6 +66,14 @@ host_system = host_machine.system()
|
|||||||
glib_min_version = '2.56'
|
glib_min_version = '2.56'
|
||||||
libfprint_min_version = '1.92.0'
|
libfprint_min_version = '1.92.0'
|
||||||
|
|
||||||
|
glib_version_def = 'GLIB_VERSION_@0@_@1@'.format(
|
||||||
|
glib_min_version.split('.')[0], glib_min_version.split('.')[1])
|
||||||
|
common_cflags = cc.get_supported_arguments([
|
||||||
|
'-DGLIB_VERSION_MIN_REQUIRED=' + glib_version_def,
|
||||||
|
'-DGLIB_VERSION_MAX_ALLOWED=' + glib_version_def,
|
||||||
|
])
|
||||||
|
add_project_arguments(common_cflags, language: 'c')
|
||||||
|
|
||||||
fprintd_installdir = get_option('prefix') / get_option('libexecdir')
|
fprintd_installdir = get_option('prefix') / get_option('libexecdir')
|
||||||
fprintd_plugindir = get_option('prefix') / get_option('libdir') / meson.project_name() / 'modules'
|
fprintd_plugindir = get_option('prefix') / get_option('libdir') / meson.project_name() / 'modules'
|
||||||
storage_path = get_option('prefix') / get_option('localstatedir') / 'lib/fprint'
|
storage_path = get_option('prefix') / get_option('localstatedir') / 'lib/fprint'
|
||||||
|
|||||||
Reference in New Issue
Block a user