2023-04-05 11:09:18 +08:00
|
|
|
diff --git a/meson.build b/meson.build
|
2024-10-02 22:09:01 +08:00
|
|
|
index badce49..5641673 100644
|
2023-04-05 11:09:18 +08:00
|
|
|
--- a/meson.build
|
|
|
|
+++ b/meson.build
|
2024-10-02 22:09:01 +08:00
|
|
|
@@ -283,7 +283,10 @@ libm = cc.find_library('m', required: false)
|
|
|
|
|
|
|
|
nice_incs = include_directories('.', 'agent', 'random', 'socket', 'stun')
|
2023-04-05 11:09:18 +08:00
|
|
|
|
2024-10-02 22:09:01 +08:00
|
|
|
-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
|
2023-04-05 11:09:18 +08:00
|
|
|
|
|
|
|
gir = find_program('g-ir-scanner', required : get_option('introspection'))
|
|
|
|
|
|
|
|
-subdir('agent')
|
|
|
|
-subdir('stun')
|
|
|
|
-subdir('socket')
|
|
|
|
-subdir('random')
|
|
|
|
-subdir('nice')
|
2024-10-02 22:09:01 +08:00
|
|
|
-
|
2023-04-05 11:09:18 +08:00
|
|
|
if gst_dep.found()
|
|
|
|
subdir('gst')
|
2024-10-02 22:09:01 +08:00
|
|
|
endif
|