forked from Avnu/libavtp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
67 lines (59 loc) · 1.2 KB
/
meson.build
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
project(
'libavtp',
'c',
version: '0.1',
license: 'BSD-3-Clause',
)
avtp_lib = library(
'avtp',
[
'src/avtp.c',
'src/avtp_aaf.c',
],
include_directories: include_directories('include'),
install: true,
)
install_headers(
'include/avtp.h',
'include/avtp_aaf.h',
)
pkg = import('pkgconfig')
pkg.generate(
name: 'avtp',
description: 'AVTP packetization library',
version: '0.1',
url: 'github.com/AVnu/OpenAvnu',
libraries: avtp_lib,
)
test_avtp = executable(
'test-avtp',
'unit/test-avtp.c',
include_directories: include_directories('include'),
link_with: avtp_lib,
dependencies: dependency('cmocka'),
build_by_default: false,
)
test_aaf = executable(
'test-aaf',
'unit/test-aaf.c',
include_directories: include_directories('include'),
link_with: avtp_lib,
dependencies: dependency('cmocka'),
build_by_default: false,
)
test('AVTP API', test_avtp)
test('AAF API', test_aaf)
executable(
'aaf-talker',
'examples/aaf-talker.c',
include_directories: include_directories('include'),
link_with: avtp_lib,
build_by_default: false,
)
executable(
'aaf-listener',
'examples/aaf-listener.c',
include_directories: include_directories('include'),
link_with: avtp_lib,
build_by_default: false,
)