feat: add --without-ncurses option for daemon-only builds

Add a dummy curses stub header that provides all ncurses types, macros,
and no-op function stubs. When configured with --without-ncurses, the
build uses this stub instead of linking to the real ncurses library.

This allows rtorrent to be built for daemon-only usage (e.g. with
ruTorrent or Flood) without requiring ncurses to be installed.

Closes #1613
This commit is contained in:
trim21
2026-05-29 14:13:06 +08:00
committed by Jari Sundell
parent 14edd68653
commit ca706c21c0
6 changed files with 151 additions and 7 deletions
+4
View File
@@ -205,4 +205,8 @@ libsub_root_a_SOURCES = \
signal_handler.h
if NO_NCURSES
libsub_root_a_SOURCES += display/curses_stub.cc display/curses_stub.h
endif
AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir) -DPACKAGE_DATADIR=\"$(pkgdatadir)\"