meson: Use more meson's project_name()
Not that libfprint is long to write, but in case we'll ever change the basename, we do it once.
This commit is contained in:
parent
c806993cb9
commit
c57defda92
4 changed files with 10 additions and 8 deletions
|
@ -24,7 +24,7 @@ glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
|
||||||
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
|
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
|
||||||
docpath = join_paths(get_option('datadir'), 'gtk-doc', 'html')
|
docpath = join_paths(get_option('datadir'), 'gtk-doc', 'html')
|
||||||
|
|
||||||
gnome.gtkdoc('libfprint',
|
gnome.gtkdoc(meson.project_name(),
|
||||||
main_xml: 'libfprint-docs.xml',
|
main_xml: 'libfprint-docs.xml',
|
||||||
src_dir: join_paths(meson.source_root(), 'libfprint'),
|
src_dir: join_paths(meson.source_root(), 'libfprint'),
|
||||||
dependencies: libfprint_dep,
|
dependencies: libfprint_dep,
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
ent_conf = configuration_data()
|
ent_conf = configuration_data()
|
||||||
ent_conf.set('PACKAGE', 'libfprint')
|
ent_conf.set('PACKAGE', meson.project_name())
|
||||||
ent_conf.set('PACKAGE_BUGREPORT', 'https://gitlab.freedesktop.org/libfprint/libfprint/issues')
|
ent_conf.set('PACKAGE_BUGREPORT', 'https://gitlab.freedesktop.org/libfprint/libfprint/issues')
|
||||||
ent_conf.set('PACKAGE_NAME', 'libfprint')
|
ent_conf.set('PACKAGE_NAME', meson.project_name())
|
||||||
ent_conf.set('PACKAGE_STRING', 'libfprint')
|
ent_conf.set('PACKAGE_STRING', meson.project_name())
|
||||||
ent_conf.set('PACKAGE_TARNAME', 'libfprint-' + meson.project_version())
|
ent_conf.set('PACKAGE_TARNAME', 'libfprint-' + meson.project_version())
|
||||||
ent_conf.set('PACKAGE_URL', 'https://fprint.freedesktop.org/')
|
ent_conf.set('PACKAGE_URL', 'https://fprint.freedesktop.org/')
|
||||||
ent_conf.set('PACKAGE_VERSION', meson.project_version())
|
ent_conf.set('PACKAGE_VERSION', meson.project_version())
|
||||||
|
|
|
@ -251,7 +251,9 @@ libfprint_dep = declare_dependency(link_with: libfprint,
|
||||||
gusb_dep,
|
gusb_dep,
|
||||||
])
|
])
|
||||||
|
|
||||||
install_headers(['fprint.h'] + libfprint_public_headers, subdir: 'libfprint')
|
install_headers(['fprint.h'] + libfprint_public_headers,
|
||||||
|
subdir: meson.project_name()
|
||||||
|
)
|
||||||
|
|
||||||
libfprint_private_dep = declare_dependency(
|
libfprint_private_dep = declare_dependency(
|
||||||
include_directories: include_directories('.'),
|
include_directories: include_directories('.'),
|
||||||
|
|
|
@ -203,10 +203,10 @@ subdir('tests')
|
||||||
|
|
||||||
pkgconfig = import('pkgconfig')
|
pkgconfig = import('pkgconfig')
|
||||||
pkgconfig.generate(
|
pkgconfig.generate(
|
||||||
name: 'libfprint',
|
name: meson.project_name(),
|
||||||
description: 'Generic C API for fingerprint reader access',
|
description: 'Generic C API for fingerprint reader access',
|
||||||
version: meson.project_version(),
|
version: meson.project_version(),
|
||||||
libraries: libfprint,
|
libraries: libfprint,
|
||||||
subdirs: 'libfprint',
|
subdirs: meson.project_name(),
|
||||||
filebase: 'libfprint2',
|
filebase: meson.project_name() + '2',
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue