aboutsummaryrefslogtreecommitdiffhomepage
path: root/subprojects/imageformats/meson.build
blob: 584e2afe8484d7127678f97088de276b2d6d6386 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
project('imageformats', 'd',
    meson_version: '>=0.46',
    license: 'BSL-1.0',
    version: '7.0.0'
)

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]
)