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.
This commit is contained in:
Jörg Müller
2015-06-16 10:03:35 +02:00
parent 58956f3b91
commit a0cbebf404
53 changed files with 271 additions and 209 deletions

View File

@@ -21,15 +21,15 @@
remove_extra_strict_flags()
if(WITH_EXTERNAL_AUDASPACE)
if(WITH_SYSTEM_AUDASPACE)
set(INC
.
)
set(INC_SYS
${CAUDASPACE_INCLUDE_DIRS}
${PYAUDASPACE_INCLUDE_DIRS}
${AUDASPACE_C_INCLUDE_DIRS}
${AUDASPACE_PY_INCLUDE_DIRS}
)
set(SRC

View File

@@ -24,6 +24,10 @@
Import ('env')
sources = env.Glob('intern/*.cpp') + env.Glob('FX/*.cpp')
# AUD_PyInit is for external audaspace only
sources.remove('intern/AUD_PyInit.cpp')
incs = '. intern FX ' + env['BF_PTHREADS_INC'] + ' ' + env['BF_BOOST_INC']
defs = []

View File

@@ -28,9 +28,9 @@
#include "AUD_PyInit.h"
#include <audaspace/AUD_Sound.h>
#include <audaspace/python/PySound.h>
#include <audaspace/python/PyAPI.h>
#include <AUD_Sound.h>
#include <python/PySound.h>
#include <python/PyAPI.h>
extern "C" {
extern void *BKE_sound_get_factory(void *sound);