mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 12:48:51 +00:00
53 lines
773 B
Meson
53 lines
773 B
Meson
libegg_sources = [
|
|
'egg-hex.c',
|
|
'egg-secure-memory.c',
|
|
'egg-testing.c',
|
|
]
|
|
|
|
libegg_deps = [
|
|
glib_deps,
|
|
]
|
|
|
|
if get_option('gcrypt')
|
|
libegg_sources += [
|
|
'egg-dh.c',
|
|
'egg-hkdf.c',
|
|
'egg-libgcrypt.c',
|
|
]
|
|
|
|
libegg_deps += gcrypt_dep
|
|
endif
|
|
|
|
libegg = static_library('egg',
|
|
libegg_sources,
|
|
dependencies: libegg_deps,
|
|
include_directories: [config_h_dir, build_dir],
|
|
)
|
|
|
|
# Tests
|
|
test_names = [
|
|
'test-hex',
|
|
'test-secmem',
|
|
]
|
|
|
|
if get_option('gcrypt')
|
|
test_names += [
|
|
'test-dh',
|
|
'test-hkdf',
|
|
]
|
|
endif
|
|
|
|
foreach _test : test_names
|
|
|
|
test_bin = executable(_test,
|
|
'@0@.c'.format(_test),
|
|
dependencies: libegg_deps,
|
|
link_with: libegg,
|
|
include_directories: config_h_dir,
|
|
)
|
|
|
|
test(_test, test_bin,
|
|
suite: 'libegg',
|
|
)
|
|
endforeach
|