Skip to content
Snippets Groups Projects
Commit ccb1b71f authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Move USE_ALSA_SOUND detection into Common.gmake

parent 0dfc1d61
No related branches found
No related tags found
No related merge requests found
Pipeline #7388 passed
......@@ -214,9 +214,11 @@ ifndef WITHOUT_PORTAUDIO
endif
endif
endif
ifeq ($(shell if [ -f /usr/include/alsa/asoundlib.h ] ; then echo YES ; fi),YES)
XPDEV-MT_LIBS += -ldl
XPDEV_LIBS += -ldl
ifndef WITHOUT_ALSA_SOUND
ifeq ($(shell if [ -f /usr/include/alsa/asoundlib.h ] ; then echo YES ; fi),YES)
XPDEV-MT_CFLAGS += -DUSE_ALSA_SOUND
XPDEV-MT_LIBS += -ldl
endif
endif
ifndef NO_PULSEAUDIO
......
......@@ -9,11 +9,6 @@ ifndef win
endif
CFLAGS += -I. $(XPDEV_CFLAGS)
ifndef WITHOUT_ALSA_SOUND
ifeq ($(shell if [ -f /usr/include/alsa/asoundlib.h ] ; then echo YES ; fi),YES)
CFLAGS += -DUSE_ALSA_SOUND
endif
endif
MT_CFLAGS += $(XPDEV-MT_CFLAGS)
ifdef WITH_SDL_AUDIO
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment