Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Müller <nexyon@gmail.com>2014-03-04 16:44:15 +0400
committerJörg Müller <nexyon@gmail.com>2015-07-28 15:01:52 +0300
commit733073550f61cf4fbbe21aab33e9271915325109 (patch)
treea182ced91bb592815c097abf572bba999a9e8cdc /source/gameengine/BlenderRoutines
parent96dd213e7ecabeffc682aee40b4102296ab062de (diff)
Audaspace: use standalone library.
- Added the cmake configuration option WITH_EXTERNAL_AUDASPACE. - Fixes to build without standalone library as well.
Diffstat (limited to 'source/gameengine/BlenderRoutines')
-rw-r--r--source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp6
-rw-r--r--source/gameengine/BlenderRoutines/CMakeLists.txt10
2 files changed, 12 insertions, 4 deletions
diff --git a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
index f275d0a0f0c..4d30bc51280 100644
--- a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
+++ b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
@@ -101,7 +101,11 @@ typedef void * wmUIHandlerRemoveFunc;
}
#ifdef WITH_AUDASPACE
-# include "AUD_C-API.h"
+# ifdef WITH_EXTERNAL_AUDASPACE
+# include <audaspace/AUD_Device.h>
+# else
+# include "AUD_C-API.h"
+# endif
#endif
static BlendFileData *load_game_data(char *filename)
diff --git a/source/gameengine/BlenderRoutines/CMakeLists.txt b/source/gameengine/BlenderRoutines/CMakeLists.txt
index 1a2809cc8ab..324babf9fa9 100644
--- a/source/gameengine/BlenderRoutines/CMakeLists.txt
+++ b/source/gameengine/BlenderRoutines/CMakeLists.txt
@@ -56,10 +56,14 @@ set(SRC
add_definitions(${GL_DEFINITIONS})
if(WITH_AUDASPACE)
- list(APPEND INC
- ../../../intern/audaspace/intern
- )
add_definitions(-DWITH_AUDASPACE)
+
+ if(WITH_EXTERNAL_AUDASPACE)
+ add_definitions(-DWITH_EXTERNAL_AUDASPACE)
+ list(APPEND INC_SYS ${CAUDASPACE_INCLUDE_DIRS})
+ else()
+ list(APPEND INC ../../../intern/audaspace/intern)
+ endif()
endif()
if(WITH_CODEC_FFMPEG)