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)