Mercurial > vim
diff src/Make_cyg_ming.mak @ 17131:be5a5cfc991a v8.1.1565
patch 8.1.1565: MS-Windows: no sound support
commit https://github.com/vim/vim/commit/9b283523f2f75b45feef902b8713808e883d9c19
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 17 22:19:33 2019 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 17 Jun 2019 22:30:06 +0200 |
parents | eda4d65f232c |
children | bbd454d155a9 |
line wrap: on
line diff
--- 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))