diff options
author | Ralph Amissah <ralph@amissah.com> | 2020-02-07 10:52:16 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2020-03-06 15:13:53 -0500 |
commit | 503412b02356cd0dd92f0fc0900f48eab3afce24 (patch) | |
tree | 0e8ee05bcb814db5d414386c42fd9cd64804d892 /subprojects/tinyendian/meson.build | |
parent | latex outputs (various paper sizes & orientation) (diff) |
meson build
Diffstat (limited to 'subprojects/tinyendian/meson.build')
-rw-r--r-- | subprojects/tinyendian/meson.build | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/subprojects/tinyendian/meson.build b/subprojects/tinyendian/meson.build new file mode 100644 index 0000000..f666958 --- /dev/null +++ b/subprojects/tinyendian/meson.build @@ -0,0 +1,41 @@ +# -*- mode: python; -*- + +project( + 'tinyendian', + 'd', + meson_version: '>=0.41', + version: '0.2.0', + default_options: ['buildtype=release'], +) + +src_dir = include_directories('source/') +pkgc = import('pkgconfig') + +tinyendian_src = [ + 'source/tinyendian.d' +] + +install_headers(tinyendian_src, subdir: 'd/') + +tinyendian_lib = library( + meson.project_name(), + [tinyendian_src], + include_directories: [src_dir], + version: meson.project_version(), + pic: true, + install: true, +) + +pkgc.generate( + name: meson.project_name(), + libraries: tinyendian_lib, + subdirs: 'd/', + version: meson.project_version(), + 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] +) |