Modernize Meson file
This commit is contained in:
parent
611bd13f97
commit
36dbe8064a
10
meson.build
10
meson.build
|
@ -1,6 +1,8 @@
|
||||||
project('tinyendian', 'd', meson_version: '>=0.40.0')
|
project('tinyendian', 'd',
|
||||||
|
meson_version: '>=0.40',
|
||||||
|
version: '0.1.2'
|
||||||
|
)
|
||||||
|
|
||||||
project_version = '0.1.2'
|
|
||||||
project_soversion = '0'
|
project_soversion = '0'
|
||||||
|
|
||||||
src_dir = include_directories('source/')
|
src_dir = include_directories('source/')
|
||||||
|
@ -15,14 +17,14 @@ tinyendian_lib = static_library('tinyendian',
|
||||||
[tinyendian_src],
|
[tinyendian_src],
|
||||||
include_directories: [src_dir],
|
include_directories: [src_dir],
|
||||||
install: true,
|
install: true,
|
||||||
version: project_version,
|
version: meson.project_version(),
|
||||||
soversion: project_soversion,
|
soversion: project_soversion,
|
||||||
pic: true
|
pic: true
|
||||||
)
|
)
|
||||||
pkgc.generate(name: 'tinyendian',
|
pkgc.generate(name: 'tinyendian',
|
||||||
libraries: tinyendian_lib,
|
libraries: tinyendian_lib,
|
||||||
subdirs: 'd/',
|
subdirs: 'd/',
|
||||||
version: project_version,
|
version: meson.project_version(),
|
||||||
description: 'Lightweight endianness library for D.'
|
description: 'Lightweight endianness library for D.'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue