summaryrefslogtreecommitdiffstats
path: root/lib/crypto_backend/argon2/meson.build
blob: bb685160b6e99bbd80d64b19ee6ef00090993ff1 (plain)
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
libargon2_sources = files(
    'blake2/blake2b.c',
    'argon2.c',
    'core.c',
    'encoding.c',
    'thread.c',
)

if use_internal_sse_argon2
    libargon2_sources += files(
        'opt.c',
    )
else
    libargon2_sources += files(
        'ref.c',
    )
endif

libargon2 = static_library('argon2',
    libargon2_sources,
    override_options : ['c_std=c89', 'optimization=3'],
    build_by_default : false,
    include_directories: include_directories(
        'blake2',
    ),
    dependencies : [
        threads,
    ])