diff --git a/meson.build b/meson.build
index 09e8bc2a6bca9b11a84f9987da8d2ec347256b5a..bc1b5e2f8695b09373d5196259462d48a48d5bbf 100644 (file)
--- a/meson.build
+++ b/meson.build
project('ncmpc', 'c',
- version: '0.28',
+ version: '0.29',
default_options: [
'c_std=c99',
],
if curses_dep.found()
curses = 'ncurses'
else
+ curses_dep = cc.find_library('ncursesw', required: false)
+ if not curses_dep.found()
+ curses_dep = cc.find_library('ncurses')
+ endif
+
# TODO: find other curses implementation (pdcurses?)
endif
endif
endif
conf.set('ENABLE_LIRC', enable_lirc)
+conf.set('ENABLE_COLORS', curses_color)
+
common_cflags = [
+ # for getaddrinfo() and sigaction() with glibc
+ '-D_GNU_SOURCE',
]
test_cflags = [
'src',
# for the generated config.h
- meson.current_build_dir(),
+ '.',
)
sources = []
if enable_lyrics_screen
sources += ['src/screen_lyrics.c', 'src/lyrics.c']
- lyrics_plugin_dir = join_paths(get_option('prefix'), get_option('libdir'), meson.project_name(), 'lyrics')
+ lyrics_plugin_dir = get_option('lyrics_plugin_dir')
+ if lyrics_plugin_dir == ''
+ lyrics_plugin_dir = join_paths(get_option('prefix'), get_option('libdir'), meson.project_name(), 'lyrics')
+ endif
+
conf.set_quoted('LYRICS_PLUGIN_DIR', lyrics_plugin_dir)
install_data(
'lyrics/10-hd.sh',