Add meson option for encryption
This commit is contained in:
parent
a1730d4820
commit
b2cc0c2847
|
@ -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
1
meson_options.txt
Normal file
|
@ -0,0 +1 @@
|
|||
option('encryption', type : 'boolean', value : true, description : 'Enable support for end to end encryption')
|
Loading…
Reference in a new issue