From 9b283523f2f75b45feef902b8713808e883d9c19 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 17 Jun 2019 22:19:33 +0200 Subject: 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) --- src/Make_cyg_ming.mak | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/Make_cyg_ming.mak') diff --git a/src/Make_cyg_ming.mak b/src/Make_cyg_ming.mak index f47981216..3c0c92ba1 100644 --- a/src/Make_cyg_ming.mak +++ b/src/Make_cyg_ming.mak @@ -106,6 +106,13 @@ else 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 @@ TERM_DEPS = \ 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 @@ OBJ += $(OUTDIR)/terminal.o \ $(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 @@ CFLAGS += -I$(ICONV) DEFINES+=-DDYNAMIC_ICONV endif +ifeq (yes, $(SOUND)) +LIB += -lwinmm +endif + ifeq (yes, $(USE_STDCPLUS)) LINK = $(CXX) ifeq (yes, $(STATIC_STDCPLUS)) -- cgit v1.2.1