Skip to content

Commit

Permalink
meson: add missing includes
Browse files Browse the repository at this point in the history
Also make video support properly optional.

Signed-off-by: Rosen Penev <[email protected]>
(cherry picked from commit 6621332)
  • Loading branch information
neheb committed Nov 4, 2023
1 parent 140e11b commit 1609fdc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
9 changes: 7 additions & 2 deletions include/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,17 @@ headers = files(
'exiv2/xmpsidecar.hpp',
)

headers += exiv_conf
headers += cfile
if get_option('video')
headers += files('exiv2/asfvideo.hpp', 'exiv2/matroskavideo.hpp', 'exiv2/quicktimevideo.hpp', 'exiv2/riffvideo.hpp')
endif

if zlib_dep.found()
headers += files('exiv2/pngimage.hpp')
endif

headers += exiv_conf
headers += cfile

install_headers(
headers,
subdir: 'exiv2',
Expand Down
8 changes: 4 additions & 4 deletions src/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
base_lib = files(
'asfvideo.cpp',
'basicio.cpp',
'bmffimage.cpp',
'bmpimage.cpp',
Expand All @@ -17,7 +16,6 @@ base_lib = files(
'iptc.cpp',
'jp2image.cpp',
'jpgimage.cpp',
'matroskavideo.cpp',
'metadatum.cpp',
'mrwimage.cpp',
'orfimage.cpp',
Expand All @@ -27,9 +25,7 @@ base_lib = files(
'preview.cpp',
'properties.cpp',
'psdimage.cpp',
'quicktimevideo.cpp',
'rafimage.cpp',
'riffvideo.cpp',
'rw2image.cpp',
'tags.cpp',
'tgaimage.cpp',
Expand All @@ -42,6 +38,10 @@ base_lib = files(
'xmpsidecar.cpp',
)

if get_option('video')
base_lib += files('asfvideo.cpp', 'matroskavideo.cpp', 'quicktimevideo.cpp', 'riffvideo.cpp')
endif

int_lib = files(
'canonmn_int.cpp',
'casiomn_int.cpp',
Expand Down

0 comments on commit 1609fdc

Please sign in to comment.