File: meson.build

package info (click to toggle)
cryptsetup 2%3A2.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,248 kB
  • sloc: ansic: 65,604; sh: 17,628; cpp: 994; xml: 920; makefile: 495; perl: 486
file content (41 lines) | stat: -rw-r--r-- 1,082 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
if use_internal_argon2
    subdir('argon2')
endif

libcrypto_backend_dependencies = [
    crypto_backend_library,
    clock_gettime,
]
libcrypto_backend_link_with = []

libcrypto_backend_sources = files(
    'argon2_generic.c',
    'base64.c',
    'memutils.c',
    'cipher_check.c',
    'cipher_generic.c',
    'crc32.c',
    'crypto_cipher_kernel.c',
    'crypto_storage.c',
    'pbkdf_check.c',
    'utf8.c',
)

crypto_backend = get_option('crypto-backend')
libcrypto_backend_sources += files('crypto_@0@.c'.format(crypto_backend))

if use_internal_pbkdf2
    libcrypto_backend_sources += files('pbkdf2_generic.c')
endif

if use_internal_argon2 and get_option('argon-implementation') == 'internal'
    libcrypto_backend_link_with += libargon2
elif get_option('argon-implementation') == 'libargon2'
    libcrypto_backend_dependencies += libargon2_external
endif

libcrypto_backend = static_library('crypto_backend',
    libcrypto_backend_sources,
    include_directories: includes_lib,
    dependencies: libcrypto_backend_dependencies,
    link_with: libcrypto_backend_link_with)