summaryrefslogtreecommitdiff
path: root/stun/meson.build
blob: 2c7cb825b05996efb905af18688f14ff7433371d (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
stun_sources = [
  'stunagent.c',
  'stunmessage.c',
  'stun5389.c',
  'stuncrc32.c',
  'rand.c',
  'stunhmac.c',
  'utils.c',
  'debug.c',
  'usages/ice.c',
  'usages/bind.c',
  'usages/turn.c',
  'usages/timer.c',
]

stun_include = include_directories('.')

install_headers(
  'stunagent.h',
  'stunmessage.h',
  'win32_common.h', # installed unconditionally?!
  'debug.h',
  'constants.h', subdir: 'stun')

install_headers(
  'usages/bind.h',
  'usages/ice.h',
  'usages/turn.h',
  'usages/timer.h', subdir: 'stun/usages')

libstun = static_library('stun', stun_sources,
  c_args: ['-DG_LOG_DOMAIN="libnice-stun"'],
  include_directories: nice_incs,
  dependencies: nice_deps,
  install: false)

subdir('tools')

if not get_option('tests').disabled()
  subdir('tests')
endif