'-DNICE_VERSION_NANO=' + version_nano,
language: 'c')
+version_conf = configuration_data()
+version_conf.set('NICE_VERSION_MAJOR', version_major)
+version_conf.set('NICE_VERSION_MINOR', version_minor)
+version_conf.set('NICE_VERSION_MICRO', version_micro)
+version_conf.set('NICE_VERSION_NANO', version_nano)
+nice_version_h = configure_file(output: 'nice-version.h',
+ install_dir: get_option('includedir') / 'nice',
+ configuration: version_conf)
+
cdata = configuration_data()
cdata.set_quoted('PACKAGE_STRING', meson.project_name())
#ifndef _NICE_H
#define _NICE_H
+#include "nice-version.h"
+
#define NICE_CHECK_VERSION(major, minor, micro) \
(NICE_VERSION_MAJOR > (major) || \
(NICE_VERSION_MAJOR == (major) && NICE_VERSION_MINOR > (minor)) || \