meson: build samples
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
848da172da
commit
632536a55a
49
meson.build
49
meson.build
@ -355,4 +355,53 @@ executable(
|
|||||||
install: true,
|
install: true,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
samples = {
|
||||||
|
'addmoddel': [],
|
||||||
|
'conntest': curl_dep,
|
||||||
|
'convert-test': [],
|
||||||
|
'easyaccess-test': [],
|
||||||
|
'exifcomment': [],
|
||||||
|
'exifdata-test': [],
|
||||||
|
'exifdata': [],
|
||||||
|
'exifprint': [],
|
||||||
|
'exifvalue': [],
|
||||||
|
'geotag': expat_dep,
|
||||||
|
'ini-test': inih_dep,
|
||||||
|
'iotest': [],
|
||||||
|
'iptceasy': [],
|
||||||
|
'iptcprint': [],
|
||||||
|
'iptctest': [],
|
||||||
|
'key-test': [],
|
||||||
|
'largeiptc-test': [],
|
||||||
|
'mmap-test': [],
|
||||||
|
'mrwthumb': [],
|
||||||
|
'prevtest': [],
|
||||||
|
'remotetest': [],
|
||||||
|
'stringto-test': [],
|
||||||
|
'taglist': [],
|
||||||
|
'tiff-test': [],
|
||||||
|
'write-test': [],
|
||||||
|
'write2-test': [],
|
||||||
|
'xmpparse': [],
|
||||||
|
'xmpparser-test': [],
|
||||||
|
'xmpprint': [],
|
||||||
|
'xmpsample': [],
|
||||||
|
'xmpdump': [],
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach s, d : samples
|
||||||
|
executable(s, 'samples/@0@.cpp'.format(s), dependencies: [exiv2_dep, d], include_directories: exiv2inc)
|
||||||
|
endforeach
|
||||||
|
|
||||||
|
gopt = [
|
||||||
|
'getopt-test',
|
||||||
|
'metacopy',
|
||||||
|
'path-test',
|
||||||
|
]
|
||||||
|
|
||||||
|
ginc = include_directories('app')
|
||||||
|
foreach g : gopt
|
||||||
|
executable(g, 'samples/@0@.cpp'.format(g), 'app/getopt.cpp', dependencies: exiv2_dep, include_directories: [exiv2inc, ginc])
|
||||||
|
endforeach
|
||||||
|
|
||||||
subdir('unitTests')
|
subdir('unitTests')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user