From 2e6edfc1ef58003fba2bc771dc7f82e6421566c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Mart=C3=ADnez?= Date: Fri, 10 Sep 2021 15:02:37 +0200 Subject: build: Create a variable for the project name A new variable called `mbim_name` has been created to avoid the call to a function inside the meson object. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 1391c94..ea2c828 100644 --- a/meson.build +++ b/meson.build @@ -13,6 +13,7 @@ project( meson_version: '>= 0.53.0', ) +mbim_name = meson.project_name() mbim_version = meson.project_version() version_array = mbim_version.split('.') mbim_major_version = version_array[0].to_int() @@ -26,7 +27,7 @@ mbim_includedir = get_option('includedir') mbim_libexecdir = get_option('libexecdir') mbim_mandir = get_option('mandir') -mbim_glib_include_subdir = meson.project_name() + '-glib' +mbim_glib_include_subdir = mbim_name + '-glib' mbim_glib_pkgincludedir = join_paths(mbim_includedir, mbim_glib_include_subdir) # libtool versioning for libmbim-glib (-version-info c:r:a) -- cgit v1.2.1