Skip to content

Commit 1609fdc

Browse files
committed
meson: add missing includes
Also make video support properly optional. Signed-off-by: Rosen Penev <[email protected]> (cherry picked from commit 6621332)
1 parent 140e11b commit 1609fdc

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

include/meson.build

+7-2
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,17 @@ headers = files(
4343
'exiv2/xmpsidecar.hpp',
4444
)
4545

46-
headers += exiv_conf
47-
headers += cfile
46+
if get_option('video')
47+
headers += files('exiv2/asfvideo.hpp', 'exiv2/matroskavideo.hpp', 'exiv2/quicktimevideo.hpp', 'exiv2/riffvideo.hpp')
48+
endif
49+
4850
if zlib_dep.found()
4951
headers += files('exiv2/pngimage.hpp')
5052
endif
5153

54+
headers += exiv_conf
55+
headers += cfile
56+
5257
install_headers(
5358
headers,
5459
subdir: 'exiv2',

src/meson.build

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
base_lib = files(
2-
'asfvideo.cpp',
32
'basicio.cpp',
43
'bmffimage.cpp',
54
'bmpimage.cpp',
@@ -17,7 +16,6 @@ base_lib = files(
1716
'iptc.cpp',
1817
'jp2image.cpp',
1918
'jpgimage.cpp',
20-
'matroskavideo.cpp',
2119
'metadatum.cpp',
2220
'mrwimage.cpp',
2321
'orfimage.cpp',
@@ -27,9 +25,7 @@ base_lib = files(
2725
'preview.cpp',
2826
'properties.cpp',
2927
'psdimage.cpp',
30-
'quicktimevideo.cpp',
3128
'rafimage.cpp',
32-
'riffvideo.cpp',
3329
'rw2image.cpp',
3430
'tags.cpp',
3531
'tgaimage.cpp',
@@ -42,6 +38,10 @@ base_lib = files(
4238
'xmpsidecar.cpp',
4339
)
4440

41+
if get_option('video')
42+
base_lib += files('asfvideo.cpp', 'matroskavideo.cpp', 'quicktimevideo.cpp', 'riffvideo.cpp')
43+
endif
44+
4545
int_lib = files(
4646
'canonmn_int.cpp',
4747
'casiomn_int.cpp',

0 commit comments

Comments
 (0)