Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / gssdp / standalone-tools.patch
blob6491afbe86781f4899cfe74e22fdf7c46eb439c7
1 diff --git a/libgssdp/gssdp-client-private.h b/libgssdp/gssdp-client-private.h
2 index ac31247..241c054 100644
3 --- a/libgssdp/gssdp-client-private.h
4 +++ b/libgssdp/gssdp-client-private.h
5 @@ -10,7 +10,11 @@
6 #ifndef GSSDP_CLIENT_PRIVATE_H
7 #define GSSDP_CLIENT_PRIVATE_H
9 +#ifdef GSSDP_TOOLS
10 +#include <libgssdp/gssdp-client.h>
11 +#else
12 #include "gssdp-client.h"
13 +#endif
15 G_BEGIN_DECLS
17 diff --git a/tools/meson.build b/tools/meson.build
18 index 40eb8e3..5db545b 100644
19 --- a/tools/meson.build
20 +++ b/tools/meson.build
21 @@ -1,3 +1,10 @@
22 +project('gssdp-tools', 'c', version: '@version@')
23 +gnome = import('gnome')
25 +gssdp = dependency('gssdp-1.6')
26 +gtk = dependency('gtk4', version : '>= 4')
27 +libsoup = dependency('libsoup-3.0', version : '>= 2.99.0')
29 resource = gnome.compile_resources(
30 'org.gupnp.GSSDP.DeviceSniffer',
31 'gssdp-device-sniffer.gresource.xml',
32 @@ -12,7 +19,9 @@ sniffer = executable(
33 'main-window.h',
34 resource
36 - dependencies : [gssdp, gtk],
37 + dependencies : [gssdp, gtk, libsoup],
38 + c_args: ['-DGSSDP_TOOLS'],
39 + include_directories : [include_directories('..')],
40 install: true,
41 export_dynamic : true,
42 gui_app : true