diff options
Diffstat (limited to 'intern')
-rw-r--r-- | intern/SoundSystem/Makefile | 28 | ||||
-rw-r--r-- | intern/SoundSystem/SND_DependKludge.h | 3 |
2 files changed, 19 insertions, 12 deletions
diff --git a/intern/SoundSystem/Makefile b/intern/SoundSystem/Makefile index e8e95174c95..25f45e37060 100644 --- a/intern/SoundSystem/Makefile +++ b/intern/SoundSystem/Makefile @@ -39,20 +39,24 @@ DIR = $(OCGDIR)/$(SOURCEDIR) DIRS = intern DIRS += dummy -ifeq ($(OS),windows) - DIRS += fmod - DIRS += openal -endif -#ifeq ($(OS),darwin) -# DIRS += fmod -#endif -ifeq ($(OS),freebsd) +ifneq ($(NAN_NO_OPENAL),true) + ifeq ($(OS),windows) + DIRS += fmod + DIRS += openal + endif + #ifeq ($(OS),darwin) + # DIRS += fmod + #endif + ifeq ($(OS),freebsd) DIRS += openal -endif -ifeq ($(OS),$(findstring $(OS), "linux")) - ifeq ($(CPU),i386) - DIRS += openal endif + ifeq ($(OS),$(findstring $(OS), "linux")) + ifeq ($(CPU),i386) + DIRS += openal + endif + endif +else + CPPFLAGS += -DNO_SOUND endif include nan_subdirs.mk diff --git a/intern/SoundSystem/SND_DependKludge.h b/intern/SoundSystem/SND_DependKludge.h index df30f46b582..b11697cd76f 100644 --- a/intern/SoundSystem/SND_DependKludge.h +++ b/intern/SoundSystem/SND_DependKludge.h @@ -34,6 +34,8 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +#ifndef NO_SOUND + # if defined (_WIN32) && !defined(FREE_WINDOWS) #define USE_OPENAL #elif defined (__linux__) @@ -55,3 +57,4 @@ # endif #endif +#endif |