-
Notifications
You must be signed in to change notification settings - Fork 10
/
meson.build
52 lines (47 loc) · 1.38 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
project('Zigbridge' , 'c')
# Sources
src = ['src/main.c',
'src/core.c',
'src/interfaces/interfaces.c',
'src/interfaces/ipc.c',
'src/interfaces/tcp.c',
'src/interfaces/stdin.c',
'src/aps.c',
'src/conf.c',
'src/keys.c',
'src/logs.c',
'src/rpc/rpc.c',
'src/mt/mt.c',
'src/mt/mt_sys.c',
'src/mt/mt_af.c',
'src/mt/mt_zdo.c',
'src/mt/mt_util.c',
'src/profiles/zdp.c',
'src/profiles/zha.c',
'src/profiles/zll.c',
'src/utils/sm.c',
'src/utils/action_list.c',
'src/devices/device.c']
# Includes
incdir = include_directories( 'src',
'src/utils',
'src/devices',
'src/profiles',
'src/interfaces',
'src/mt',
'src/rpc')
# Libraries
cc = meson.get_compiler('c')
uvdep = dependency('libuv')
iniparserdep = cc.find_library('iniparser')
einadep = dependency('eina')
janssondep = dependency('jansson', version:'>=2.10')
dep = [uvdep, iniparserdep, einadep, janssondep]
# Build options
cflags=['-Wall', '-Wextra', '-Werror']
executable('zigbridge',
sources: src,
c_args: cflags,
include_directories: incdir,
dependencies: dep,
install : true)