Add Meson build file

This commit is contained in:
Matthias Klumpp 2017-03-20 20:55:40 +01:00 committed by Petar Kirov
parent 85ca6ae76c
commit db1ba4a965

27
meson.build Normal file
View file

@ -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.'
)