summaryrefslogtreecommitdiffstats
path: root/bin/tools/meson.build
blob: b44aa445931de2d43b9b2eaa7a7168d3ccf09298 (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
41
cc = meson.get_compiler('c')
libm = cc.find_library('m')

tiff_dep = dependency('libtiff-4', required: false)

config = configuration_data()
config.set('HAVE_LIBTIFF', tiff_dep.found())
configure_file(
    output: 'config.h',
    configuration: config
)

grab_deps = deps + [libm]

if tiff_dep.found()
    grab_deps += tiff_dep
endif

executable('uca-info',
    sources: ['info.c'],
    include_directories: include_dir,
    dependencies: deps,
    link_with: lib,
    install: true
)

executable('uca-grab',
    sources: ['grab.c', 'common.c'],
    include_directories: include_dir,
    dependencies: grab_deps,
    link_with: lib,
    install: true
)

executable('uca-benchmark',
    sources: ['benchmark.c', 'common.c'],
    include_directories: include_dir,
    dependencies: deps,
    link_with: lib,
    install: true
)