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,
25 # Add agent include to uninstalled pkgconfig file
26 include_directories: agent_include,
28 soversion : soversion,
29 vs_module_defs: libnice_def,
30 link_args: nice_link_args,
31 link_depends: mapfile,
34 install_headers('nice.h', subdir: 'nice')
35 nice_include = include_directories('.')
38 build_gir = gir.found() and not get_option('introspection').disabled()
41 gnome.generate_gir(libnice,
42 sources : [agent_headers, agent_sources],
45 identifier_prefix : 'Nice',
46 symbol_prefix: 'nice',
47 export_packages: 'nice',
48 includes: ['GObject-2.0', 'Gio-2.0'],
49 extra_args: ['--accept-unprefixed'],
54 libnice_dep = declare_dependency(link_with : libnice,
55 include_directories : [agent_include, nice_include],
56 # Everything that uses libnice needs this built to compile
57 sources : nice_gen_sources,
58 dependencies: nice_deps)
61 pkg = import('pkgconfig')
62 upnp_enabled_string = gupnp_igd_dep.found() ? 'true' : 'false'
67 description: 'ICE library',
69 variables: ['upnp_enabled=@0@'.format(upnp_enabled_string)])