From 4859e9c4e783604f561f951656dfcc70d953e919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <> Date: Sun, 24 Mar 2024 23:42:01 -0400 Subject: [PATCH] meson: support building with push notification support --- meson.build | 3 +++ meson.options | 1 + 2 files changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 65655d81..9639a002 100644 --- a/meson.build +++ b/meson.build @@ -67,6 +67,9 @@ if get_option('proxy_server').enabled() opendht_src += 'src/dht_proxy_server.cpp' add_project_arguments('-DOPENDHT_PROXY_SERVER', language : 'cpp') endif +if get_option('push_notifications').enabled() + add_project_arguments('-DOPENDHT_PUSH_NOTIFICATIONS', language : 'cpp') +endif if get_option('peer_discovery').enabled() opendht_src += 'src/peer_discovery.cpp' add_project_arguments('-DOPENDHT_PEER_DISCOVERY', language : 'cpp') diff --git a/meson.options b/meson.options index 5af9d34a..7719d67d 100644 --- a/meson.options +++ b/meson.options @@ -1,5 +1,6 @@ option('proxy_client', type : 'feature', value : 'disabled') option('proxy_server', type : 'feature', value : 'disabled') +option('push_notifications', type : 'feature', value : 'disabled') option('peer_discovery', type : 'feature', value : 'enabled') option('tools', type : 'feature', value : 'enabled') option('c', type : 'feature', value : 'enabled') -- GitLab