From 611ecbd06aa6e8a30f58ffc3aaf1b846e3bc4e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <> Date: Sat, 6 Apr 2024 19:16:49 -0400 Subject: [PATCH] meson: add ability to build static or shared --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 9f490e27..04da0871 100644 --- a/meson.build +++ b/meson.build @@ -75,7 +75,7 @@ if get_option('peer_discovery').enabled() opendht_src += 'src/peer_discovery.cpp' add_project_arguments('-DOPENDHT_PEER_DISCOVERY', language : 'cpp') endif -opendht = shared_library('opendht', +opendht = library('opendht', opendht_src, include_directories : opendht_inc, dependencies : deps, @@ -85,7 +85,7 @@ opendht = shared_library('opendht', readline = meson.get_compiler('c').find_library('readline', required: get_option('tools')) if get_option('c').enabled() - opendht_c = shared_library('opendht-c', + opendht_c = library('opendht-c', ['c/opendht.cpp', 'c/opendht_c.h'], include_directories : opendht_interface_inc, link_with : opendht,