Kaynağa Gözat

Declared meson dependency

Aaro Saila 1 ay önce
ebeveyn
işleme
2e978b93a0
1 değiştirilmiş dosya ile 11 ekleme ve 1 silme
  1. 11 1
      meson.build

+ 11 - 1
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