diff options
author | Jaime Marquínez Ferrándiz <jregistros+github@fastmail.net> | 2024-03-31 21:52:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-31 15:52:03 -0400 |
commit | bbd5715ff8fc2a8a33f1f9ad5f2a8933f1fb5158 (patch) | |
tree | a33c9a16eabf1170693db91d4704b4f4d20475d6 /meson.build | |
parent | dd06ba252e662b6f7525e6a88fef3d55326c20c3 (diff) | |
download | lite-xl-plugin-manager-bbd5715ff8fc2a8a33f1f9ad5f2a8933f1fb5158.tar.gz lite-xl-plugin-manager-bbd5715ff8fc2a8a33f1f9ad5f2a8933f1fb5158.zip |
Fix dependency on mbedtls (#104)
Since version 2.28.8 a .pc file for each library is provided and we must search them individually.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 39e83dc..e6e294e 100644 --- a/meson.build +++ b/meson.build @@ -12,7 +12,13 @@ libgit2_dep = dependency('libgit2') libzip_dep = dependency('libzip') lua_dep = dependency('lua') -if not mbedtls_dep.found() +if mbedtls_dep.found() + mbedtls_dep = [ + mbedtls_dep, + dependency('mbedx509', version: '<3', required: true), + dependency('mbedcrypto', version: '<3', required: true), + ] +else # Using has_headers to distinguish between mbedtls2 and mbedtls3 _mbedtls_dep = cc.find_library('mbedtls', has_headers: 'mbedtls/net.h', required: false) if _mbedtls_dep.found() |