-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmeson.build
More file actions
41 lines (35 loc) · 813 Bytes
/
meson.build
File metadata and controls
41 lines (35 loc) · 813 Bytes
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
project('rpld', 'c')
compiler = meson.get_compiler('c')
evdep = dependency('ev', required: false)
if evdep.found()
evdep = [ libev ]
elif compiler.has_header('ev.h') and compiler.has_function('ev_time', args: ['-lev'])
evdep = [ compiler.find_library('ev') ]
else
error('Couldn\'t find libev header / library')
endif
foreach name : ['lua', 'lua5.3', 'lua-5.3', 'lua53']
dep = dependency(name, version: '>=5.3', required: false)
if dep.found()
luadep = dep
endif
endforeach
if not luadep.found()
error('Couldn\'t find Lua.')
endif
mnldep = dependency('libmnl')
srcs = files(
'rpld.c',
'config.c',
'socket.c',
'buffer.c',
'recv.c',
'send.c',
'helpers.c',
'process.c',
'netlink.c',
'dag.c',
'log.c',
)
executable('rpld', srcs, dependencies : [ evdep, luadep, mnldep ])
# vim: syntax=python