File: meson.build

package info (click to toggle)
gupnp 1.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,420 kB
  • sloc: ansic: 15,519; xml: 1,269; python: 418; javascript: 93; makefile: 34
file content (42 lines) | stat: -rw-r--r-- 1,251 bytes parent folder | download
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
project('gupnp', 'c', version : '1.2.4', meson_version : '>= 0.48.0')
gnome = import('gnome')
pkg = import('pkgconfig')

cc = meson.get_compiler('c')

netlink_available = cc.has_header('linux/rtnetlink.h')
ifaddrs_available = cc.has_header('ifaddrs.h')

conf = configuration_data()
conf.set_quoted('VERSION', meson.project_version())
conf.set('HAVE_NETLINK', netlink_available)
conf.set('HAVE_IFADDRS_H', ifaddrs_available)
conf.set('HAVE_LINUX_WIRELESS_H', cc.has_header('linux/wireless.h'))

config_h = configure_file(output : 'config.h', configuration : conf)
add_global_arguments('-DHAVE_CONFIG_H=1', language : 'c')

guul = subproject('guul', default_options : ['default_library=static'])

dependencies = [
    dependency('glib-2.0', version : '>= 2.58'),
    dependency('gio-2.0', version : '>= 2.58'),
    dependency('gmodule-2.0', version : '>= 2.44'),
    dependency('gobject-2.0', version : '>= 2.44'),
    dependency('gssdp-1.2', version : '>= 1.2.3'),
    dependency('libsoup-2.4', version : '>= 2.48.0'),
    dependency('libxml-2.0')
]

subdir('libgupnp')
subdir('tests')
subdir('tools')
subdir('doc')

if get_option('vapi') and get_option('introspection')
    subdir('vala')
endif

if get_option('examples')
    subdir('examples')
endif