diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2021-09-10 00:10:46 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-09-13 12:54:08 +0200 |
commit | bc5f5e974cd859cf8edaa0deabe637c0bf659541 (patch) | |
tree | 4eb176d5bb8e3e7c92eebef7fad9fc6670b7ab9d /meson.build | |
parent | 7900ced5d6d14cf9522c570c1d5e561bfedd1f74 (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.
(cherry picked from commit 1c9ca122087a6ae805258c38ef632c510de55267)
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 2b9820d..766bb6e 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) |