target/mips: Use OPC_MUL instead of OPC__MXU_MUL
[qemu/ar7.git] / crypto / meson.build
blob7f37b5d33546902208b20cf32d7e85371d3ccbf6
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 'CONFIG_NETTLE' in config_host
26   crypto_ss.add(files('hash-nettle.c', 'hmac-nettle.c', 'pbkdf-nettle.c'))
27 elif 'CONFIG_GCRYPT' in config_host
28   crypto_ss.add(files('hash-gcrypt.c', 'pbkdf-gcrypt.c'))
29   if 'CONFIG_GCRYPT_HMAC' in config_host
30     crypto_ss.add(files('hmac-gcrypt.c'))
31   else
32     crypto_ss.add(files('hmac-glib.c'))
33   endif
34 else
35   crypto_ss.add(files('hash-glib.c', 'hmac-glib.c', 'pbkdf-stub.c'))
36 endif
38 crypto_ss.add(when: 'CONFIG_SECRET_KEYRING', if_true: files('secret_keyring.c'))
39 crypto_ss.add(when: 'CONFIG_QEMU_PRIVATE_XTS', if_true: files('xts.c'))
40 crypto_ss.add(when: 'CONFIG_AF_ALG', if_true: files('afalg.c', 'cipher-afalg.c', 'hash-afalg.c'))
41 crypto_ss.add(when: 'CONFIG_GNUTLS', if_true: files('tls-cipher-suites.c'))
43 if 'CONFIG_NETTLE' in config_host
44   crypto_ss.add(nettle)
45 elif 'CONFIG_GCRYPT' in config_host
46   crypto_ss.add(gcrypt)
47 endif
49 if 'CONFIG_GNUTLS' in config_host
50   crypto_ss.add(gnutls)
51 endif
54 util_ss.add(files('aes.c'))
55 util_ss.add(files('init.c'))
57 if 'CONFIG_GCRYPT' in config_host
58   util_ss.add(files('random-gcrypt.c'))
59 elif 'CONFIG_GNUTLS' in config_host
60   util_ss.add(files('random-gnutls.c'))
61 elif 'CONFIG_RNG_NONE' in config_host
62   util_ss.add(files('random-none.c'))
63 else
64   util_ss.add(files('random-platform.c'))
65 endif
67 if 'CONFIG_GCRYPT' in config_host
68   util_ss.add(gcrypt)
69 endif
71 if 'CONFIG_GNUTLS' in config_host
72   util_ss.add(gnutls)
73 endif