-
Notifications
You must be signed in to change notification settings - Fork 16
/
meson.build
77 lines (71 loc) · 2.28 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
68
69
70
71
72
73
74
75
76
77
project('g729-codec-service','c', 'cpp', version: '0.0.2', default_options : ['c_std=c17', 'cpp_std=c++17'])
#add_global_arguments('-fsanitize=address', language : 'c')
#add_global_arguments('-fsanitize=address', language : 'cpp')
#add_global_link_arguments('-fsanitize=address', language : 'cpp')
#add_global_link_arguments('-fsanitize=address', language : 'c')
usockets = subproject('usockets')
rapidjson = subproject('rapidjson')
uwebsockets = subproject('uwebsockets')
zlib = subproject('zlib')
bcg729 = subproject('bcg729')
spdlog = subproject('spdlog', default_options: ['library_type=shared'])
uwebsockets_dep = uwebsockets.get_variable('uwebsockets_dep')
librapidjson = rapidjson.get_variable('rapidjson_dep')
usockets_dep = usockets.get_variable('usockets_dep')
zlib_dep = zlib.get_variable('zlib_dep')
bcg729_dep = bcg729.get_variable('bcg729_dep')
spdlog_dep = spdlog.get_variable('spdlog_headeronly_dep')
# bcg729 = dependency('bcg729', method: 'cmake')
executable('g729-codec-service',
'src/AudioFrame.cpp',
'src/AudioFrame.hpp',
'src/Codec.hpp',
'src/G729Decoder.cpp',
'src/G729Decoder.hpp',
'src/G729Encoder.cpp',
'src/G729Encoder.hpp',
'src/G729ToMulaw.cpp',
'src/G729ToMulaw.hpp',
'src/MulawDecoder.cpp',
'src/MulawDecoder.hpp',
'src/MulawEncoder.cpp',
'src/MulawEncoder.hpp',
'src/MulawToG729.cpp',
'src/MulawToG729.cpp',
'src/g711u.c',
'src/g711u.h',
'src/g711_extern.h',
'src/bcg729-extern.h',
'src/G729CodecService.cpp',
'src/resource-messages.h',
'src/NetworkOptions.hpp',
'src/TLSOptions.hpp',
'src/LogUtils.hpp',
dependencies: [bcg729_dep, librapidjson, usockets_dep, uwebsockets_dep, zlib_dep, spdlog_dep],
install: true)
# inc = include_directories('src')
# executable('tests',
# 'test/lib/catch.hpp',
# 'test/G729DecoderTest.cpp',
# 'src/AudioFrame.cpp',
# 'src/AudioFrame.hpp',
# 'src/Codec.hpp',
# 'src/G729Decoder.cpp',
# 'src/G729Decoder.hpp',
# 'src/G729Encoder.cpp',
# 'src/G729Encoder.hpp',
# 'src/G729ToMulaw.cpp',
# 'src/G729ToMulaw.hpp',
# 'src/MulawDecoder.cpp',
# 'src/MulawDecoder.hpp',
# 'src/MulawEncoder.cpp',
# 'src/MulawEncoder.hpp',
# 'src/MulawToG729.cpp',
# 'src/g711u.c',
# 'src/g711u.h',
# 'src/g711_extern.h',
# 'src/bcg729-extern.h',
# dependencies: [bcg729_dep, librapidjson, usockets_dep, uwebsockets_dep, zlib_dep, spdlog_dep],
# install: true,
# include_directories: inc
# )