diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2020-05-12 17:11:53 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2020-05-21 11:51:58 -0400 |
commit | 6a5c473653f03aee818d835b53ca30b62a3be6c7 (patch) | |
tree | dfec2ef22a834f5c2a7003a4884bb7c7a8288609 /subprojects/imageformats.meson.build | |
parent | doc abstraction, code & org whitespace, cosmetic (diff) |
meson using subproject directory, not dub directly
- will not work until meson.build files in
- d2sqlite3
- imageformats
(request adding upstream)
- dyaml and its dependency tinyendian already
provide their meson.build
(should probably revert to meson dub until
resolved)
- based on 1468425 meson build (no issue now with
imagefomats using 7.0.2)
Diffstat (limited to 'subprojects/imageformats.meson.build')
-rw-r--r-- | subprojects/imageformats.meson.build | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/subprojects/imageformats.meson.build b/subprojects/imageformats.meson.build new file mode 100644 index 0000000..7c05434 --- /dev/null +++ b/subprojects/imageformats.meson.build @@ -0,0 +1,40 @@ +project('imageformats', 'd', + meson_version: '>=0.46', + license: 'BSL-1.0', + version: '7.0.2' +) + +project_soversion = '0' + +src_dir = include_directories('.') +pkgc = import('pkgconfig') + +imageformats_src = [ + 'imageformats/bmp.d', + 'imageformats/jpeg.d', + 'imageformats/package.d', + 'imageformats/png.d', + 'imageformats/tga.d' +] +install_subdir('imageformats/', install_dir: 'include/d/imageformats-d/') + +imageformats_lib = library('imageformats-d', + [imageformats_src], + include_directories: [src_dir], + install: true, + version: meson.project_version(), + soversion: project_soversion +) + +pkgc.generate(name: 'imageformats-d', + libraries: imageformats_lib, + subdirs: 'd/imageformats-d/', + version: meson.project_version(), + description: 'Decoders for PNG, TGA, BMP, JPEG and encoders for PNG, TGA, BMP.' +) + +# for use by others which embed this as subproject +imageformats_dep = declare_dependency( + link_with: [imageformats_lib], + include_directories: [src_dir] +) |