Add meson option for encryption

This commit is contained in:
Jacob 2023-12-27 00:16:20 +01:00
parent a1730d4820
commit b2cc0c2847
2 changed files with 7 additions and 1 deletions

View file

@ -10,7 +10,6 @@ project_source_files = [
project_dependencies = [
dependency('nlohmann_json', fallback : 'nlohmann_json'),
dependency('openssl', fallback : 'openssl'),
dependency('olm', fallback : 'olm'),
dependency('boost'),
]
@ -18,6 +17,12 @@ project_build_args = [
'-DLEET_VERSION=' + meson.project_version(),
]
if get_option('encryption')
project_dependencies += [ dependency('olm', fallback : 'olm') ]
else
project_build_args += [ '-DLEET_NO_ENCRYPTION=1' ]
endif
install_headers('include/libleet.hpp', subdir : 'libleet')
install_headers('include/net/Request.hpp', subdir : 'libleet/net')
install_headers('include/crypto/olm.hpp', subdir : 'libleet/olm')

1
meson_options.txt Normal file
View file

@ -0,0 +1 @@
option('encryption', type : 'boolean', value : true, description : 'Enable support for end to end encryption')