patch 8.1.1565: MS-Windows: no sound support
Problem: MS-Windows: no sound support.
Solution: Add sound support for MS-Windows. (Yasuhiro Matsumoto, Ken Takata,
closes #4522)
diff --git a/src/Make_cyg_ming.mak b/src/Make_cyg_ming.mak
index f479812..3c0c92b 100644
--- a/src/Make_cyg_ming.mak
+++ b/src/Make_cyg_ming.mak
@@ -106,6 +106,13 @@
TERMINAL=no
endif
+# Set to yes to enable sound support.
+ifneq ($(findstring $(FEATURES),BIG HUGE),)
+SOUND=yes
+else
+SOUND=no
+endif
+
ifndef CTAGS
# this assumes ctags is Exuberant ctags
CTAGS = ctags -I INIT+ --fields=+S
@@ -633,6 +640,10 @@
libvterm/src/vterm_internal.h
endif
+ifeq ($(SOUND),yes)
+DEFINES += -DFEAT_SOUND
+endif
+
# DirectWrite (DirectX)
ifeq ($(DIRECTX),yes)
# Only allow DirectWrite for a GUI build.
@@ -849,6 +860,10 @@
$(OUTDIR)/vterm.o
endif
+ifeq ($(SOUND),yes)
+OBJ += $(OUTDIR)/sound.o
+endif
+
# Include xdiff
OBJ += $(OUTDIR)/xdiffi.o \
$(OUTDIR)/xemit.o \
@@ -957,6 +972,10 @@
DEFINES+=-DDYNAMIC_ICONV
endif
+ifeq (yes, $(SOUND))
+LIB += -lwinmm
+endif
+
ifeq (yes, $(USE_STDCPLUS))
LINK = $(CXX)
ifeq (yes, $(STATIC_STDCPLUS))