add meson support
[protos/libecoli.git] / meson.build
diff --git a/meson.build b/meson.build
new file mode 100644 (file)
index 0000000..dee9cb6
--- /dev/null
@@ -0,0 +1,27 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2018, Olivier MATZ <zer0@droids-corp.org>
+
+project('libecoli',
+       'c',
+       version : '0.1',
+       license : 'BSD-3-clause')
+
+# if debug
+add_global_arguments('-Wall', language : 'c')
+add_global_arguments('-Werror', language : 'c')
+add_global_arguments('-W', language : 'c')
+add_global_arguments('-Wextra', language : 'c')
+
+edit_dep = dependency('libedit', method: 'pkg-config')
+yaml_dep = dependency('yaml-0.1', method: 'pkg-config')
+
+subdir('src')
+subdir('test')
+subdir('examples')
+
+pkg_mod = import('pkgconfig')
+pkg_mod.generate(libraries : libecoli,
+       version: '0.1',
+       name : 'libecoli',
+       filebase : 'libecoli',
+       description : 'Extensible command line library.')