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>2015-06-16 11:03:35 +0300
committerJörg Müller <nexyon@gmail.com>2015-07-28 15:01:53 +0300
commita0cbebf404d6c46e59b090e7217ce39d7e760809 (patch)
treefad66bb8f714c160c3a3f016e1fba1711824e34d /source/blender/editors/space_graph
parent58956f3b91e581ef7040371dda3e3595902c18d9 (diff)
Audaspace: fixing problems for the merge to master suggested by Campbell and Sergey.
- rename WITH_EXTERNAL_AUDASPACE to WITH_SYSTEM_AUDASPACE. - rename C/PYAUDASPACE to AUDASPACE_C/PY - simplifying cmake defines and includes. - fixing include paths and enabling WITH_SYSTEM_AUDASPACE for windows. - fixing scons building. - other minor build system fixes.
Diffstat (limited to 'source/blender/editors/space_graph')
-rw-r--r--source/blender/editors/space_graph/CMakeLists.txt11
-rw-r--r--source/blender/editors/space_graph/SConscript5
-rw-r--r--source/blender/editors/space_graph/graph_edit.c6
3 files changed, 9 insertions, 13 deletions
diff --git a/source/blender/editors/space_graph/CMakeLists.txt b/source/blender/editors/space_graph/CMakeLists.txt
index b911f9effbe..b692f0b1c12 100644
--- a/source/blender/editors/space_graph/CMakeLists.txt
+++ b/source/blender/editors/space_graph/CMakeLists.txt
@@ -48,14 +48,11 @@ set(SRC
)
if(WITH_AUDASPACE)
- add_definitions(-DWITH_AUDASPACE)
+ add_definitions(${AUDASPACE_DEFINITIONS})
- if(WITH_EXTERNAL_AUDASPACE)
- add_definitions(-DWITH_EXTERNAL_AUDASPACE)
- list(APPEND INC_SYS ${CAUDASPACE_INCLUDE_DIRS})
- else()
- list(APPEND INC ../../../../intern/audaspace/intern)
- endif()
+ list(APPEND INC_SYS
+ ${AUDASPACE_C_INCLUDE_DIRS}
+ )
endif()
if(WITH_INTERNATIONAL)
diff --git a/source/blender/editors/space_graph/SConscript b/source/blender/editors/space_graph/SConscript
index 35e09749743..ac23e8ee4e7 100644
--- a/source/blender/editors/space_graph/SConscript
+++ b/source/blender/editors/space_graph/SConscript
@@ -33,7 +33,6 @@ incs = [
'#/intern/guardedalloc',
env['BF_GLEW_INC'],
'#/intern/glew-mx',
- '#/intern/audaspace/intern',
'../include',
'../../blenfont',
'../../blenkernel',
@@ -47,6 +46,10 @@ incs = [
defs = env['BF_GL_DEFINITIONS']
+if env['WITH_BF_AUDASPACE']:
+ defs += env['BF_AUDASPACE_DEF']
+ incs.append(env['BF_AUDASPACE_C_INC'])
+
if env['WITH_BF_INTERNATIONAL']:
defs.append('WITH_INTERNATIONAL')
diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c
index 1f2b02dcf31..cc18df92cb1 100644
--- a/source/blender/editors/space_graph/graph_edit.c
+++ b/source/blender/editors/space_graph/graph_edit.c
@@ -36,11 +36,7 @@
#include <float.h>
#ifdef WITH_AUDASPACE
-# ifdef WITH_EXTERNAL_AUDASPACE
-# include <audaspace/AUD_Special.h>
-# else
-# include "AUD_C-API.h"
-# endif
+# include AUD_SPECIAL_H
#endif
#include "MEM_guardedalloc.h"