#endif
#ifndef DISABLE_PYTHON
+#include "AUD_PyInit.h"
#include "AUD_PyAPI.h"
Device* g_device;
#ifndef AUD_CAPI
#define AUD_CAPI
-#ifndef DISABLE_PYTHON
-#include "Python.h"
-#endif
-
#ifdef __cplusplus
extern "C" {
#endif
*/
extern void AUD_exit();
-#ifndef DISABLE_PYTHON
-/**
- * Initalizes the Python module.
- */
-extern PyObject* AUD_initPython();
-#endif
-
/**
* Locks the playback device.
*/
--- /dev/null
+/*
+ * $Id$
+ *
+ * ***** BEGIN LGPL LICENSE BLOCK *****
+ *
+ * Copyright 2010 Jörg Hermann Müller
+ *
+ * This file is part of AudaSpace.
+ *
+ * AudaSpace is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * AudaSpace is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with AudaSpace. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * ***** END LGPL LICENSE BLOCK *****
+ */
+
+#ifndef AUD_PYINIT
+#define AUD_PYINIT
+
+#ifndef DISABLE_PYTHON
+#include "Python.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * Initalizes the Python module.
+ */
+extern PyObject* AUD_initPython();
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+#endif //AUD_PYINIT
../../makesdna
../../makesrna
../../windowmanager
- ${PYTHON_INC}
)
BLENDERLIB(bf_editor_sound "${SRC}" "${INC}")
incs += ' ../../windowmanager #/intern/guardedalloc'
incs += ' ../../makesrna'
incs += ' #/intern/audaspace/intern'
-if env['WITH_BF_PYTHON']:
- incs += ' ' + env['BF_PYTHON_INC']
defs = []
../../makesrna
../../windowmanager
../../../../intern/audaspace/intern
- ${PYTHON_INC}
)
BLENDERLIB(bf_editor_space_graph "${SRC}" "${INC}")
incs = '../include ../../blenlib ../../blenkernel ../../makesdna ../../makesrna ../../imbuf'
incs += ' ../../windowmanager #/intern/guardedalloc #/extern/glew/include'
incs += ' #/intern/audaspace/intern'
-if env['WITH_BF_PYTHON']:
- incs += ' ' + env['BF_PYTHON_INC']
env.BlenderLib ( 'bf_editors_space_graph', sources, Split(incs), [], libtype=['core'], priority=[50] )
../../makesrna
../../windowmanager
../../../../intern/audaspace/intern
- ${PYTHON_INC}
)
BLENDERLIB(bf_editor_space_sequencer "${SRC}" "${INC}")
incs += ' ../../windowmanager #/intern/guardedalloc #/extern/glew/include'
incs += ' ../../makesrna'
incs += ' #/intern/audaspace/intern'
-if env['WITH_BF_PYTHON']:
- incs += ' ' + env['BF_PYTHON_INC']
env.BlenderLib ( 'bf_editors_space_sequencer', sources, Split(incs), [], libtype=['core'], priority=[100] )
if env['BF_UNIT_TEST']:
defs.append('UNIT_TEST')
-if env['WITH_BF_PYTHON']:
- incs += ' ' + env['BF_PYTHON_INC']
-else:
+if not env['WITH_BF_PYTHON']:
defs.append('DISABLE_PYTHON')
if env['OURPLATFORM'] == 'linux2':
#include "../generic/blf_api.h"
#include "../generic/IDProp.h"
-#ifndef DISABLE_PYTHON
-#define WITH_PYTHON
-#endif
-#include "AUD_C-API.h"
+#include "AUD_PyInit.h"
static char bpy_script_paths_doc[] =
".. function:: script_paths()\n"
}
#define WITH_PYTHON
-#include "AUD_C-API.h"
+#include "AUD_PyInit.h"
#endif