aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libnice-gst/skip_libnice.patch
blob: 19e917740d8335ec2dcac7912c3274471bb8c9f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/meson.build b/meson.build
index badce49..5641673 100644
--- a/meson.build
+++ b/meson.build
@@ -283,7 +283,10 @@ libm = cc.find_library('m', required: false)
 
 nice_incs = include_directories('.', 'agent', 'random', 'socket', 'stun')
 
-nice_deps = gio_deps + [gthread_dep, crypto_dep, gupnp_igd_dep] + syslibs
+# libnice dependency using pkg-config
+pkg = import('pkgconfig')
+libnice_dep = dependency('nice', version: '>=0.1.18', method: 'pkg-config', required: true)
+cdata.set('HAVE_LIBNICE', libnice_dep.found(), description: 'Use the libnice library')
 
 ignored_iface_prefix = get_option('ignored-network-interface-prefix')
 if ignored_iface_prefix != []
@@ -296,12 +299,6 @@ endif
 
 gir = find_program('g-ir-scanner', required : get_option('introspection'))
 
-subdir('agent')
-subdir('stun')
-subdir('socket')
-subdir('random')
-subdir('nice')
-
 if gst_dep.found()
   subdir('gst')
 endif