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
|
cmc_src = ['cmc.c']
cmc_deps = [common_deps, libclient]
cmc_args = []
if get_option('portal').enabled()
cmc_deps += [portal]
endif
use_tui = true
if use_tui
cmc_src += [
'ui/ui.c',
'ui/panes/list.c',
'ui/panes/search.c',
'ui/panes/log.c',
'ui/widgets/now_playing.c',
'ui/util/waveform.c'
]
cmc_deps += [notcurses, notcurses_core, codecs_client]
endif
if is_windows and not is_msvc
cmc_args += ['-static', '-static-libgcc', '-static-libstdc++', '-mwindows', '-municode']
endif
executable('cmc', cmc_src, dependencies: cmc_deps, c_args: cmc_args, link_args: cmc_args, install: true)
|