tinyendian/meson.build

36 lines
877 B
Meson
Raw Normal View History

2018-03-04 20:58:47 +00:00
project('tinyendian', 'd',
meson_version: '>=0.40',
version: '0.1.2'
)
2017-03-20 19:55:40 +00:00
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,
2018-03-04 20:58:47 +00:00
version: meson.project_version(),
2017-03-20 19:55:40 +00:00
soversion: project_soversion,
pic: true
)
pkgc.generate(name: 'tinyendian',
libraries: tinyendian_lib,
subdirs: 'd/',
2018-03-04 20:58:47 +00:00
version: meson.project_version(),
2017-03-20 19:55:40 +00:00
description: 'Lightweight endianness library for D.'
)
# Make Tinyendian easy to use as subproject
tinyendian_dep = declare_dependency(
link_with: tinyendian_lib,
include_directories: [src_dir]
)