diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2021-09-10 00:10:46 +0200 |
---|---|---|
committer | Iñigo Martínez <inigomartinez@gmail.com> | 2021-09-13 11:05:44 +0200 |
commit | 1c9ca122087a6ae805258c38ef632c510de55267 (patch) | |
tree | d0a74bf6f50564d2a8820c428a14733b752a98aa | |
parent | 44b309f202a0abfad19300f0681faa64ea3124a1 (diff) |
build: Create a variable for the project name
A new variable called `qmi_name` has been created to avoid the call
to a function inside the meson object.
-rw-r--r-- | docs/reference/libqmi-glib/xml/meson.build | 10 | ||||
-rw-r--r-- | meson.build | 3 |
2 files changed, 7 insertions, 6 deletions
diff --git a/docs/reference/libqmi-glib/xml/meson.build b/docs/reference/libqmi-glib/xml/meson.build index 51b4475..16df64c 100644 --- a/docs/reference/libqmi-glib/xml/meson.build +++ b/docs/reference/libqmi-glib/xml/meson.build @@ -2,11 +2,11 @@ # Copyright (C) 2019 - 2021 Iñigo Martinez <inigomartinez@gmail.com> ent_conf = { - 'PACKAGE': meson.project_name(), - 'PACKAGE_BUGREPORT': meson.project_name() + '-devel@lists.freedesktop.org', - 'PACKAGE_NAME': meson.project_name(), - 'PACKAGE_STRING': '@0@ @1@'.format(meson.project_name(), qmi_version), - 'PACKAGE_TARNAME': meson.project_name(), + 'PACKAGE': qmi_name, + 'PACKAGE_BUGREPORT': qmi_name + '-devel@lists.freedesktop.org', + 'PACKAGE_NAME': qmi_name, + 'PACKAGE_STRING': '@0@ @1@'.format(qmi_name, qmi_version), + 'PACKAGE_TARNAME': qmi_name, 'PACKAGE_URL': '', 'PACKAGE_VERSION': qmi_version, } diff --git a/meson.build b/meson.build index a83eab7..7615589 100644 --- a/meson.build +++ b/meson.build @@ -13,6 +13,7 @@ project( meson_version: '>= 0.53.0', ) +qmi_name = meson.project_name() qmi_version = meson.project_version() version_array = qmi_version.split('.') qmi_major_version = version_array[0].to_int() @@ -26,7 +27,7 @@ qmi_includedir = get_option('includedir') qmi_libexecdir = get_option('libexecdir') qmi_mandir = get_option('mandir') -qmi_glib_include_subdir = meson.project_name() + '-glib' +qmi_glib_include_subdir = qmi_name + '-glib' qmi_glib_pkgincludedir = qmi_includedir / qmi_glib_include_subdir # libtool versioning for libqmi-glib (-version-info c:r:a) |