1crypto_ss.add(genh) 2crypto_ss.add(files( 3 'afsplit.c', 4 'akcipher.c', 5 'block-luks.c', 6 'block-qcow.c', 7 'block.c', 8 'cipher.c', 9 'der.c', 10 'hash.c', 11 'hmac.c', 12 'ivgen-essiv.c', 13 'ivgen-plain.c', 14 'ivgen-plain64.c', 15 'ivgen.c', 16 'pbkdf.c', 17 'secret_common.c', 18 'secret.c', 19 'tlscreds.c', 20 'tlscredsanon.c', 21 'tlscredspsk.c', 22 'tlscredsx509.c', 23 'tlssession.c', 24)) 25 26if nettle.found() 27 crypto_ss.add(nettle, files('hash-nettle.c', 'hmac-nettle.c', 'pbkdf-nettle.c')) 28 if xts == 'private' 29 crypto_ss.add(files('xts.c')) 30 endif 31elif gcrypt.found() 32 crypto_ss.add(gcrypt, files('hash-gcrypt.c', 'hmac-gcrypt.c', 'pbkdf-gcrypt.c')) 33elif gnutls_crypto.found() 34 crypto_ss.add(gnutls, files('hash-gnutls.c', 'hmac-gnutls.c', 'pbkdf-gnutls.c')) 35else 36 crypto_ss.add(files('hash-glib.c', 'hmac-glib.c', 'pbkdf-stub.c')) 37endif 38 39if have_keyring 40 crypto_ss.add(files('secret_keyring.c')) 41endif 42if have_afalg 43 crypto_ss.add(if_true: files('afalg.c', 'cipher-afalg.c', 'hash-afalg.c')) 44endif 45crypto_ss.add(when: gnutls, if_true: files('tls-cipher-suites.c')) 46 47util_ss.add(files('sm4.c')) 48util_ss.add(files('aes.c')) 49util_ss.add(files('init.c')) 50if gnutls.found() 51 util_ss.add(gnutls) 52endif 53 54if gcrypt.found() 55 util_ss.add(gcrypt, files('random-gcrypt.c')) 56elif gnutls.found() 57 util_ss.add(gnutls, files('random-gnutls.c')) 58elif get_option('rng_none') 59 util_ss.add(files('random-none.c')) 60else 61 util_ss.add(files('random-platform.c')) 62endif 63 64