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:
-rw-r--r--source/Makefile1
-rw-r--r--source/blender/python/SConscript2
-rwxr-xr-xsource/blender/python/generic/BGL.h2
-rw-r--r--source/blender/python/generic/Makefile2
-rw-r--r--source/blender/python/intern/Makefile1
-rw-r--r--source/blender/python/intern/bpy_compat.h2
-rw-r--r--source/creator/CMakeLists.txt2
-rw-r--r--source/gameengine/Converter/CMakeLists.txt1
-rw-r--r--source/gameengine/Converter/Makefile1
-rw-r--r--source/gameengine/Ketsji/CMakeLists.txt3
-rw-r--r--source/gameengine/Ketsji/Makefile2
11 files changed, 14 insertions, 5 deletions
diff --git a/source/Makefile b/source/Makefile
index 94446f4d1d5..2df57f58c73 100644
--- a/source/Makefile
+++ b/source/Makefile
@@ -162,6 +162,7 @@ COMLIB += $(OCGDIR)/blender/makesdna/$(DEBUG_DIR)libdna.a
COMLIB += $(NAN_GUARDEDALLOC)/lib/libguardedalloc.a
COMLIB += $(NAN_MEMUTIL)/lib/libmemutil.a
COMLIB += $(NAN_PNG)/lib/libpng.a
+COMLIB += $(OCGDIR)/blender/gen_python/$(DEBUG_DIR)libgen_python.a
ifeq ($(WITH_QUICKTIME), true)
COMLIB += $(OCGDIR)/blender/blenderqt/$(DEBUG_DIR)libblenderqt.a
diff --git a/source/blender/python/SConscript b/source/blender/python/SConscript
index 4b62c912d34..73dc171fc3e 100644
--- a/source/blender/python/SConscript
+++ b/source/blender/python/SConscript
@@ -5,7 +5,7 @@ sources = env.Glob('intern/*.c')
incs = '. ../editors/include ../makesdna ../makesrna ../blenlib ../blenkernel ../nodes'
incs += ' ../imbuf ../blenloader ../render/extern/include ../windowmanager'
-incs += ' #intern/guardedalloc #intern/memutil #/extern/glew/include'
+incs += ' #intern/guardedalloc #intern/memutil #extern/glew/include'
incs += ' ' + env['BF_PYTHON_INC']
defs = []
diff --git a/source/blender/python/generic/BGL.h b/source/blender/python/generic/BGL.h
index 0e82ddf6d29..e2d1b0bb495 100755
--- a/source/blender/python/generic/BGL.h
+++ b/source/blender/python/generic/BGL.h
@@ -41,8 +41,8 @@
#endif
#include <Python.h>
+#include <GL/glew.h>
#include "../intern/bpy_compat.h"
-#include "BIF_gl.h"
PyObject *BGL_Init( const char *from );
diff --git a/source/blender/python/generic/Makefile b/source/blender/python/generic/Makefile
index 6e8e5bc1d2e..20cf7f19ec7 100644
--- a/source/blender/python/generic/Makefile
+++ b/source/blender/python/generic/Makefile
@@ -28,7 +28,7 @@
#
#
-LIBNAME = python
+LIBNAME = gen_python
DIR = $(OCGDIR)/blender/$(LIBNAME)
include nan_compile.mk
diff --git a/source/blender/python/intern/Makefile b/source/blender/python/intern/Makefile
index 3e28f5aac31..0c4a540a4bd 100644
--- a/source/blender/python/intern/Makefile
+++ b/source/blender/python/intern/Makefile
@@ -37,6 +37,7 @@ CFLAGS += $(LEVEL_1_C_WARNINGS)
# OpenGL and Python
CPPFLAGS += $(OGL_CPPFLAGS)
+CPPFLAGS += -I$(NAN_GLEW)/include
CPPFLAGS += -I$(NAN_PYTHON)/include/python$(NAN_PYTHON_VERSION)
# PreProcessor stuff
diff --git a/source/blender/python/intern/bpy_compat.h b/source/blender/python/intern/bpy_compat.h
index 3a2d4bda84c..1ad9376c13b 100644
--- a/source/blender/python/intern/bpy_compat.h
+++ b/source/blender/python/intern/bpy_compat.h
@@ -88,6 +88,7 @@ typedef Py_ssize_t (*lenfunc)(PyObject *);
#endif
+#if PY_VERSION_HEX < 0x03000000
#ifndef ssizeargfunc
#define ssizeargfunc intargfunc
#endif
@@ -103,6 +104,7 @@ typedef Py_ssize_t (*lenfunc)(PyObject *);
#ifndef ssizessizeobjargproc
#define ssizessizeobjargproc intintobjargproc
#endif
+#endif
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 221c0a92e09..4701eba810f 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -221,6 +221,7 @@ IF(UNIX)
blender_radiosity
blender_ONL
bf_python
+ bf_gen_python
bf_blenkernel
bf_nodes
bf_gpu
@@ -269,6 +270,7 @@ IF(UNIX)
extern_qhull
bf_moto
bf_python
+ bf_gen_python
bf_quicktime
extern_binreloc
extern_glew
diff --git a/source/gameengine/Converter/CMakeLists.txt b/source/gameengine/Converter/CMakeLists.txt
index 44692241e6f..031c2234ea8 100644
--- a/source/gameengine/Converter/CMakeLists.txt
+++ b/source/gameengine/Converter/CMakeLists.txt
@@ -49,6 +49,7 @@ SET(INC
../../../source/blender
../../../source/blender/include
../../../source/blender/makesdna
+ ../../../source/blender/makesrna
../../../source/gameengine/Rasterizer
../../../source/gameengine/Rasterizer/RAS_OpenGLRasterizer
../../../source/gameengine/GameLogic
diff --git a/source/gameengine/Converter/Makefile b/source/gameengine/Converter/Makefile
index 938994e8b62..abded70f289 100644
--- a/source/gameengine/Converter/Makefile
+++ b/source/gameengine/Converter/Makefile
@@ -48,6 +48,7 @@ CPPFLAGS += -I../../blender
CPPFLAGS += -I../../blender/windowmanager
CPPFLAGS += -I../../blender/imbuf
CPPFLAGS += -I../../blender/makesdna
+CPPFLAGS += -I../../blender/makesrna
CPPFLAGS += -I../../blender/editors/include
CPPFLAGS += -I../../blender/blenlib
CPPFLAGS += -I../../blender/blenkernel
diff --git a/source/gameengine/Ketsji/CMakeLists.txt b/source/gameengine/Ketsji/CMakeLists.txt
index 4aaa49a8493..ee1ff2c6502 100644
--- a/source/gameengine/Ketsji/CMakeLists.txt
+++ b/source/gameengine/Ketsji/CMakeLists.txt
@@ -53,7 +53,8 @@ SET(INC
../../../source/gameengine/Ketsji
../../../source/blender/blenlib
../../../source/blender/blenkernel
- ../../../source/blender/python/api2_2x
+ ../../../source/blender/python
+ ../../../source/blender/python/generic
../../../source/blender
../../../source/blender/include
../../../source/blender/makesdna
diff --git a/source/gameengine/Ketsji/Makefile b/source/gameengine/Ketsji/Makefile
index bdc0b335b02..59b3ff178fb 100644
--- a/source/gameengine/Ketsji/Makefile
+++ b/source/gameengine/Ketsji/Makefile
@@ -41,7 +41,7 @@ CPPFLAGS += -I$(NAN_GLEW)/include
CPPFLAGS += -I$(OPENGL_HEADERS)
CPPFLAGS += -I$(NAN_PYTHON)/include/python$(NAN_PYTHON_VERSION)
CPPFLAGS += -I../../blender/python
-CPPFLAGS += -I../../blender/python/api2_2x
+CPPFLAGS += -I../../blender/python/generic
CPPFLAGS += -I$(NAN_STRING)/include
CPPFLAGS += -I$(NAN_SOUNDSYSTEM)/include
CPPFLAGS += -I$(NAN_FUZZICS)/include -I$(NAN_SUMO) -I$(NAN_MOTO)/include