cmake option to build without an audio library.
This commit is contained in:
@@ -33,7 +33,6 @@ set(INC
|
||||
../../windowmanager
|
||||
../../editors/include
|
||||
../../../../intern/guardedalloc
|
||||
../../../../intern/audaspace/intern
|
||||
)
|
||||
|
||||
set(INC_SYS
|
||||
@@ -86,4 +85,11 @@ if(WITH_PYTHON_SAFETY)
|
||||
add_definitions(-DWITH_PYTHON_SAFETY)
|
||||
endif()
|
||||
|
||||
if(WITH_AUDASPACE)
|
||||
list(APPEND INC
|
||||
../../../intern/audaspace/intern
|
||||
)
|
||||
add_definitions(-DWITH_AUDASPACE)
|
||||
endif()
|
||||
|
||||
blender_add_lib(bf_python "${SRC}" "${INC}" "${INC_SYS}")
|
||||
|
@@ -60,8 +60,6 @@
|
||||
#include "../generic/blf_py_api.h"
|
||||
#include "../generic/IDProp.h"
|
||||
|
||||
#include "AUD_PyInit.h"
|
||||
|
||||
PyObject *bpy_package_py= NULL;
|
||||
|
||||
PyDoc_STRVAR(bpy_script_paths_doc,
|
||||
|
@@ -179,7 +179,9 @@ static struct _inittab bpy_internal_modules[]= {
|
||||
// {(char *)"mathutils.geometry", BPyInit_mathutils_geometry},
|
||||
{(char *)"bgl", BPyInit_bgl},
|
||||
{(char *)"blf", BPyInit_blf},
|
||||
#ifdef WITH_AUDASPACE
|
||||
{(char *)"aud", AUD_initPython},
|
||||
#endif
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user