target/ppc: Allow virtual hypervisor on CPU without HV
[qemu/kevin.git] / crypto / meson.build
blob7cbf1a6ba728d9cedc7c0ee6a57e5c1f7ab51fea
1 crypto_ss.add(genh)
2 crypto_ss.add(files(
3   'afsplit.c',
4   'block-luks.c',
5   'block-qcow.c',
6   'block.c',
7   'cipher.c',
8   'desrfb.c',
9   'hash.c',
10   'hmac.c',
11   'ivgen-essiv.c',
12   'ivgen-plain.c',
13   'ivgen-plain64.c',
14   'ivgen.c',
15   'pbkdf.c',
16   'secret_common.c',
17   'secret.c',
18   'tlscreds.c',
19   'tlscredsanon.c',
20   'tlscredspsk.c',
21   'tlscredsx509.c',
22   'tlssession.c',
25 if nettle.found()
26   crypto_ss.add(nettle, files('hash-nettle.c', 'hmac-nettle.c', 'pbkdf-nettle.c'))
27 elif gcrypt.found()
28   crypto_ss.add(gcrypt, files('hash-gcrypt.c', 'hmac-gcrypt.c', 'pbkdf-gcrypt.c'))
29 else
30   crypto_ss.add(files('hash-glib.c', 'hmac-glib.c', 'pbkdf-stub.c'))
31 endif
32 if xts == 'private'
33   crypto_ss.add(files('xts.c'))
34 endif
36 crypto_ss.add(when: 'CONFIG_SECRET_KEYRING', if_true: files('secret_keyring.c'))
37 crypto_ss.add(when: 'CONFIG_AF_ALG', if_true: files('afalg.c', 'cipher-afalg.c', 'hash-afalg.c'))
38 crypto_ss.add(when: gnutls, if_true: files('tls-cipher-suites.c'))
40 util_ss.add(files('aes.c'))
41 util_ss.add(files('init.c'))
43 if gcrypt.found()
44   util_ss.add(gcrypt, files('random-gcrypt.c'))
45 elif gnutls.found()
46   util_ss.add(gnutls, files('random-gnutls.c'))
47 elif 'CONFIG_RNG_NONE' in config_host
48   util_ss.add(files('random-none.c'))
49 else
50   util_ss.add(files('random-platform.c'))
51 endif