Skip to content
Snippets Groups Projects
Commit 4b489fb7 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

build/meson: make tools an option

parent 7fcaf19c
No related branches found
No related tags found
No related merge requests found
......@@ -71,5 +71,9 @@ opendht = shared_library('opendht',
dependencies : deps,
cpp_args : ['-DOPENHT_BUILD', '-Dopendht_EXPORTS'])
readline = meson.get_compiler('c').find_library('readline')
dhtnode = executable('dhtnode', 'tools/dhtnode.cpp', link_with : opendht, dependencies : [readline, msgpack])
readline = meson.get_compiler('c').find_library('readline', required: get_option('tools'))
if get_option('tools').enabled()
dhtnode = executable('dhtnode', 'tools/dhtnode.cpp',
link_with : opendht,
dependencies : [readline, msgpack])
endif
option('proxy_client', type : 'feature', value : 'disabled')
option('proxy_server', type : 'feature', value : 'disabled')
option('peer_discovery', type : 'feature', value : 'enabled')
option('tools', type : 'feature', value : 'enabled')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment