5 libnice_def = custom_target('libnice.def',
6 command: [find_program('gen-def.py'), '@INPUT@'],
12 mapfile = custom_target('libnice.map',
13 command: [find_program('gen-map.py'), '@INPUT@'],
15 output: 'libnice.map',
17 # We need to check with a file that exists at configure time!
18 if cc.has_link_argument('-Wl,--version-script,@0@/libnice.ver'.format(meson.current_source_dir()))
19 nice_link_args += ['-Wl,--version-script,@0@'.format(mapfile.full_path())]
22 libnice = library('nice',
23 link_whole: [libagent, libsocket, libstun, librandom],
24 dependencies: nice_deps,
26 soversion : soversion,
27 vs_module_defs: libnice_def,
28 link_args: nice_link_args,
29 link_depends: mapfile,
32 install_headers('nice.h', subdir: 'nice')
33 nice_include = include_directories('.')
36 build_gir = gir.found() and not get_option('introspection').disabled()
39 gnome.generate_gir(libnice,
40 sources : [agent_headers, agent_sources],
43 identifier_prefix : 'Nice',
44 symbol_prefix: 'nice',
45 export_packages: 'nice',
46 includes: ['GObject-2.0', 'Gio-2.0'],
47 extra_args: ['--accept-unprefixed'],
52 libnice_dep = declare_dependency(link_with : libnice,
53 include_directories : [agent_include, nice_include],
54 # Everything that uses libnice needs this built to compile
55 sources : nice_gen_sources,
56 dependencies: nice_deps)
59 pkg = import('pkgconfig')
60 upnp_enabled_string = gupnp_igd_dep.found() ? 'true' : 'false'
65 description: 'ICE library',
67 variables: ['upnp_enabled=@0@'.format(upnp_enabled_string)])