summaryrefslogtreecommitdiff
blob: 1b0782e00d6e47adef1d634db74f44f032ed0851 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Carve out everything but gstreamer plugin part, libnice-0.1.18

Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>

diff -udBbr libnice-0.1.18-original/gst/meson.build libnice-0.1.18/gst/meson.build
--- libnice-0.1.18-original/gst/meson.build	2020-10-21 04:03:07.271845300 +0300
+++ libnice-0.1.18/gst/meson.build	2022-03-20 23:38:28.826178730 +0300
@@ -12,8 +12,7 @@
   gst_nice_sources,
   c_args : gst_nice_args,
   include_directories: nice_incs,
-  dependencies: [nice_deps, gst_dep],
-  link_with: libnice,
+  dependencies: [libnice_dep, gst_dep],
   install_dir: gst_plugins_install_dir,
   install: true)
 
diff -udBbr libnice-0.1.18-original/meson.build libnice-0.1.18/meson.build
--- libnice-0.1.18-original/meson.build	2020-10-21 04:03:07.272845300 +0300
+++ libnice-0.1.18/meson.build	2022-03-20 23:38:05.116302874 +0300
@@ -263,9 +263,7 @@
 
 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
+nice_incs = include_directories('.')
 
 ignored_iface_prefix = get_option('ignored-network-interface-prefix')
 if ignored_iface_prefix != []
@@ -278,11 +276,7 @@
 
 gir = find_program('g-ir-scanner', required : get_option('introspection'))
 
-subdir('agent')
-subdir('stun')
-subdir('socket')
-subdir('random')
-subdir('nice')
+libnice_dep = dependency('nice', version: nice_version, required: true)
 
 if gst_dep.found()
   subdir('gst')
@@ -298,14 +292,6 @@
   endif
 endif
 
-if not get_option('tests').disabled()
-  subdir('tests')
-endif
-
-if not get_option('examples').disabled()
-  subdir('examples')
-endif
-
 add_test_setup('valgrind',
 	       exe_wrapper: ['valgrind',
 			     '--leak-check=full',