From db1ba4a965bfc1805430f53113d86d0ddc56f991 Mon Sep 17 00:00:00 2001 From: Matthias Klumpp Date: Mon, 20 Mar 2017 20:55:40 +0100 Subject: [PATCH] Add Meson build file --- meson.build | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 meson.build diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..104b4f2 --- /dev/null +++ b/meson.build @@ -0,0 +1,27 @@ +project('tinyendian', 'd', meson_version: '>=0.40.0') + +project_version = '0.1.2' +project_soversion = '0' + +src_dir = include_directories('source/') +pkgc = import('pkgconfig') + +tinyendian_src = [ + 'source/tinyendian.d' +] +install_headers(tinyendian_src, subdir: 'd/') + +tinyendian_lib = static_library('tinyendian', + [tinyendian_src], + include_directories: [src_dir], + install: true, + version: project_version, + soversion: project_soversion, + pic: true +) +pkgc.generate(name: 'tinyendian', + libraries: tinyendian_lib, + subdirs: 'd/', + version: project_version, + description: 'Lightweight endianness library for D.' +)