diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-17 22:19:33 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-17 22:19:33 +0200 |
commit | 9b283523f2f75b45feef902b8713808e883d9c19 (patch) | |
tree | 83a7c31221221362b997e6938381d4de61db52d3 /src/Make_cyg_ming.mak | |
parent | 394c5d8870b15150fc91a4c058dc571fd5eaa97e (diff) | |
download | vim-git-9b283523f2f75b45feef902b8713808e883d9c19.tar.gz |
patch 8.1.1565: MS-Windows: no sound supportv8.1.1565
Problem: MS-Windows: no sound support.
Solution: Add sound support for MS-Windows. (Yasuhiro Matsumoto, Ken Takata,
closes #4522)
Diffstat (limited to 'src/Make_cyg_ming.mak')
-rw-r--r-- | src/Make_cyg_ming.mak | 19 |
1 files changed, 19 insertions, 0 deletions
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)) |