1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-05 19:42:04 +02:00
deltachat-core/libs/netpgp/meson.build
Floris Bruynooghe 8d59e5b701 Make libbz2 a proper dependency
This makes sure that at meson/configure time the build will fail
with an error saying the library can't be found.  This is much
better then a mysterious link error right at the end of the
compilation.
2018-01-02 14:47:31 +01:00

41 lines
796 B
Meson

project('netpgp', 'c')
# pkg-config dependencies
zlib = dependency('zlib')
openssl = dependency('openssl')
pthreads = dependency('threads')
# Dependencies without pkg-config, just try linking against them
compiler = meson.get_compiler('c')
bzip2 = compiler.find_library('bz2')
src = [
'src/compress.c',
'src/create.c',
'src/crypto.c',
'src/keyring.c',
'src/misc.c',
'src/openssl_crypto.c',
'src/packet-parse.c',
'src/packet-show.c',
'src/reader.c',
'src/signature.c',
'src/symmetric.c',
'src/validate.c',
'src/writer.c',
]
inc = include_directories('include')
lib = library(
'netpgp', src,
dependencies: [zlib, bzip2, openssl, pthreads],
include_directories: inc,
install: true,
)
dep = declare_dependency(
include_directories: inc,
link_with: lib,
)