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
|
project('acronc', 'c',
version : '1.0',
license : 'GPL-2.0-only')
xtra_link_args = []
xtra_c_args = [ '-D_POSIX_C_SOURCE=200809L' ]
if get_option('debug') == true
xtra_c_args += '-DDEBUG'
endif
libac_dep = dependency('libac',
fallback : ['libacron', 'libac_dep'],
default_options: [ 'default_library=static' ]
)
libuv_dep = dependency('libuv',
fallback : ['libuv', 'libuv_dep'],
default_options: [ 'default_library=static' ]
)
acronc_sources = [
'async_dns.c',
'client.c',
'config.c',
'handler_signal.c',
'handler_socket.c',
'handler_stdin.c',
'helpers.c',
'log.c',
'main.c'
]
executable('acronc', acronc_sources,
dependencies : [ libac_dep, libuv_dep ],
link_args : xtra_link_args,
c_args : xtra_c_args,
install : true
)
|