[gexiv2/gexiv2-0.12] build: Add check for BMFF support



commit f857043e708821ce309b7ce0c442abc1fd989738
Author: Jens Georg <mail jensge org>
Date:   Mon Apr 12 10:57:12 2021 +0200

    build: Add check for BMFF support

 meson.build | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/meson.build b/meson.build
index e3d966d..28f8ad5 100644
--- a/meson.build
+++ b/meson.build
@@ -17,6 +17,14 @@ gio = dependency('gio-2.0', version : '>= 2.46.0')
 cc = meson.get_compiler('c')
 math = cc.find_library('m', required : false)
 
+bmff_test = '''#include <exiv2/exiv2.h>
+#ifndef EXV_ENABLE_BMFF
+#error No BMFF support in exiv2
+#endif
+'''
+
+bmff_available = cc.compiles(bmff_test, name : 'BMFF support in exiv2', dependencies : [exiv2])
+
 gir = find_program('g-ir-scanner', required: false)
 
 introspection_available = gir.found() and get_option('introspection')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]