summaryrefslogtreecommitdiff
path: root/src/fruits/cmc/meson.build
blob: 07285324d9f1575cca8147f107a25bd21e8a8320 (plain)
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
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

cmc_link_args = []
if is_windows and not is_msvc
  cmc_link_args += ['-mconsole', '-municode', '-static', '-static-libgcc', '-static-libstdc++']
endif

executable('cmc', cmc_src, dependencies: cmc_deps, c_args: cmc_args, link_args: cmc_link_args, install: true)