From 2e978b93a06ac013d7137376fc7745b7af69d6ef Mon Sep 17 00:00:00 2001 From: Aaro Saila Date: Thu, 13 Aug 2026 19:28:16 +0300 Subject: [PATCH] Declared meson dependency --- meson.build | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 3b4fdaa..b0ef9eb 100644 --- a/meson.build +++ b/meson.build @@ -23,7 +23,7 @@ scufcont_lib = library( 'src/DString.c', 'src/scufcont.c', include_directories: [ - 'include' + scufcont_include ], c_args: [ c_args, @@ -31,6 +31,16 @@ scufcont_lib = library( ] ) +scufcont_dep = declare_dependency( + compile_args: [ + c_args, + '-D_SCUFCONT_VERSION="' + meson.project_version() + '"', + ], + include_directories: scufcont_include, + link_with: scufcont_lib, + version: meson.project_version() +) + if get_option('SCUFCONT_BUILD_TESTS') == true subdir('tests') endif