meson: Add sha1 library options

v2: Set the define for xha1.c programatically, rather than using loads
of conditionals.
This commit is contained in:
Jon Turney
2019-10-26 17:12:26 +01:00
committed by Adam Jackson
parent 417e4553f1
commit 622eea366a
3 changed files with 92 additions and 4 deletions

View File

@@ -229,7 +229,7 @@ conf_data.set('XV', build_xv)
conf_data.set('XvExtension', build_xv)
conf_data.set('XvMCExtension', build_xvmc)
conf_data.set('HAVE_SHA1_IN_LIBNETTLE', '1') # XXX
conf_data.set('HAVE_SHA1_IN_' + sha1.to_upper(), '1', description: 'Use @0@ SHA1 functions'.format(sha1))
conf_data.set('HAVE_APM', build_apm or build_acpi)
conf_data.set('HAVE_ACPI', build_acpi)