
When building libnice with glib fallback, its 'libgio_dep' internal dependency doesn't provide all needed include and library search paths. To avoid unresolved header files and linker errors in such case, 'libglib_dep', 'libmodule_dep' and 'libgobject_dep' from glib submodule must be pulled in as well. The problem should be fixed in GLib 2.60.
15 lines
452 B
Meson
15 lines
452 B
Meson
librandom = static_library('nice-random',
|
|
'random.c', 'random-glib.c',
|
|
c_args: ['-DG_LOG_DOMAIN="libnice-random"'],
|
|
include_directories: nice_incs,
|
|
dependencies: gio_deps + [gthread_dep],
|
|
install: false)
|
|
|
|
if not get_option('tests').disabled()
|
|
test_exe = executable('nice-random-test', 'test.c',
|
|
include_directories: nice_incs,
|
|
dependencies: gio_deps + [gthread_dep],
|
|
link_with: librandom)
|
|
|
|
test('nice-random', test_exe)
|
|
endif
|