2.5
* Update cmake and makefiles to link python generic. * Fix game engine building for cmake and makefiles. * Fix compile error with py 3.x, due to 2.x compat fix.
This commit is contained in:
@@ -162,6 +162,7 @@ COMLIB += $(OCGDIR)/blender/makesdna/$(DEBUG_DIR)libdna.a
|
|||||||
COMLIB += $(NAN_GUARDEDALLOC)/lib/libguardedalloc.a
|
COMLIB += $(NAN_GUARDEDALLOC)/lib/libguardedalloc.a
|
||||||
COMLIB += $(NAN_MEMUTIL)/lib/libmemutil.a
|
COMLIB += $(NAN_MEMUTIL)/lib/libmemutil.a
|
||||||
COMLIB += $(NAN_PNG)/lib/libpng.a
|
COMLIB += $(NAN_PNG)/lib/libpng.a
|
||||||
|
COMLIB += $(OCGDIR)/blender/gen_python/$(DEBUG_DIR)libgen_python.a
|
||||||
|
|
||||||
ifeq ($(WITH_QUICKTIME), true)
|
ifeq ($(WITH_QUICKTIME), true)
|
||||||
COMLIB += $(OCGDIR)/blender/blenderqt/$(DEBUG_DIR)libblenderqt.a
|
COMLIB += $(OCGDIR)/blender/blenderqt/$(DEBUG_DIR)libblenderqt.a
|
||||||
|
@@ -5,7 +5,7 @@ sources = env.Glob('intern/*.c')
|
|||||||
|
|
||||||
incs = '. ../editors/include ../makesdna ../makesrna ../blenlib ../blenkernel ../nodes'
|
incs = '. ../editors/include ../makesdna ../makesrna ../blenlib ../blenkernel ../nodes'
|
||||||
incs += ' ../imbuf ../blenloader ../render/extern/include ../windowmanager'
|
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']
|
incs += ' ' + env['BF_PYTHON_INC']
|
||||||
|
|
||||||
defs = []
|
defs = []
|
||||||
|
@@ -41,8 +41,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
|
#include <GL/glew.h>
|
||||||
#include "../intern/bpy_compat.h"
|
#include "../intern/bpy_compat.h"
|
||||||
#include "BIF_gl.h"
|
|
||||||
|
|
||||||
PyObject *BGL_Init( const char *from );
|
PyObject *BGL_Init( const char *from );
|
||||||
|
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
LIBNAME = python
|
LIBNAME = gen_python
|
||||||
DIR = $(OCGDIR)/blender/$(LIBNAME)
|
DIR = $(OCGDIR)/blender/$(LIBNAME)
|
||||||
|
|
||||||
include nan_compile.mk
|
include nan_compile.mk
|
||||||
|
@@ -37,6 +37,7 @@ CFLAGS += $(LEVEL_1_C_WARNINGS)
|
|||||||
|
|
||||||
# OpenGL and Python
|
# OpenGL and Python
|
||||||
CPPFLAGS += $(OGL_CPPFLAGS)
|
CPPFLAGS += $(OGL_CPPFLAGS)
|
||||||
|
CPPFLAGS += -I$(NAN_GLEW)/include
|
||||||
CPPFLAGS += -I$(NAN_PYTHON)/include/python$(NAN_PYTHON_VERSION)
|
CPPFLAGS += -I$(NAN_PYTHON)/include/python$(NAN_PYTHON_VERSION)
|
||||||
|
|
||||||
# PreProcessor stuff
|
# PreProcessor stuff
|
||||||
|
@@ -88,6 +88,7 @@ typedef Py_ssize_t (*lenfunc)(PyObject *);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if PY_VERSION_HEX < 0x03000000
|
||||||
#ifndef ssizeargfunc
|
#ifndef ssizeargfunc
|
||||||
#define ssizeargfunc intargfunc
|
#define ssizeargfunc intargfunc
|
||||||
#endif
|
#endif
|
||||||
@@ -103,6 +104,7 @@ typedef Py_ssize_t (*lenfunc)(PyObject *);
|
|||||||
#ifndef ssizessizeobjargproc
|
#ifndef ssizessizeobjargproc
|
||||||
#define ssizessizeobjargproc intintobjargproc
|
#define ssizessizeobjargproc intintobjargproc
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -221,6 +221,7 @@ IF(UNIX)
|
|||||||
blender_radiosity
|
blender_radiosity
|
||||||
blender_ONL
|
blender_ONL
|
||||||
bf_python
|
bf_python
|
||||||
|
bf_gen_python
|
||||||
bf_blenkernel
|
bf_blenkernel
|
||||||
bf_nodes
|
bf_nodes
|
||||||
bf_gpu
|
bf_gpu
|
||||||
@@ -269,6 +270,7 @@ IF(UNIX)
|
|||||||
extern_qhull
|
extern_qhull
|
||||||
bf_moto
|
bf_moto
|
||||||
bf_python
|
bf_python
|
||||||
|
bf_gen_python
|
||||||
bf_quicktime
|
bf_quicktime
|
||||||
extern_binreloc
|
extern_binreloc
|
||||||
extern_glew
|
extern_glew
|
||||||
|
@@ -49,6 +49,7 @@ SET(INC
|
|||||||
../../../source/blender
|
../../../source/blender
|
||||||
../../../source/blender/include
|
../../../source/blender/include
|
||||||
../../../source/blender/makesdna
|
../../../source/blender/makesdna
|
||||||
|
../../../source/blender/makesrna
|
||||||
../../../source/gameengine/Rasterizer
|
../../../source/gameengine/Rasterizer
|
||||||
../../../source/gameengine/Rasterizer/RAS_OpenGLRasterizer
|
../../../source/gameengine/Rasterizer/RAS_OpenGLRasterizer
|
||||||
../../../source/gameengine/GameLogic
|
../../../source/gameengine/GameLogic
|
||||||
|
@@ -48,6 +48,7 @@ CPPFLAGS += -I../../blender
|
|||||||
CPPFLAGS += -I../../blender/windowmanager
|
CPPFLAGS += -I../../blender/windowmanager
|
||||||
CPPFLAGS += -I../../blender/imbuf
|
CPPFLAGS += -I../../blender/imbuf
|
||||||
CPPFLAGS += -I../../blender/makesdna
|
CPPFLAGS += -I../../blender/makesdna
|
||||||
|
CPPFLAGS += -I../../blender/makesrna
|
||||||
CPPFLAGS += -I../../blender/editors/include
|
CPPFLAGS += -I../../blender/editors/include
|
||||||
CPPFLAGS += -I../../blender/blenlib
|
CPPFLAGS += -I../../blender/blenlib
|
||||||
CPPFLAGS += -I../../blender/blenkernel
|
CPPFLAGS += -I../../blender/blenkernel
|
||||||
|
@@ -53,7 +53,8 @@ SET(INC
|
|||||||
../../../source/gameengine/Ketsji
|
../../../source/gameengine/Ketsji
|
||||||
../../../source/blender/blenlib
|
../../../source/blender/blenlib
|
||||||
../../../source/blender/blenkernel
|
../../../source/blender/blenkernel
|
||||||
../../../source/blender/python/api2_2x
|
../../../source/blender/python
|
||||||
|
../../../source/blender/python/generic
|
||||||
../../../source/blender
|
../../../source/blender
|
||||||
../../../source/blender/include
|
../../../source/blender/include
|
||||||
../../../source/blender/makesdna
|
../../../source/blender/makesdna
|
||||||
|
@@ -41,7 +41,7 @@ CPPFLAGS += -I$(NAN_GLEW)/include
|
|||||||
CPPFLAGS += -I$(OPENGL_HEADERS)
|
CPPFLAGS += -I$(OPENGL_HEADERS)
|
||||||
CPPFLAGS += -I$(NAN_PYTHON)/include/python$(NAN_PYTHON_VERSION)
|
CPPFLAGS += -I$(NAN_PYTHON)/include/python$(NAN_PYTHON_VERSION)
|
||||||
CPPFLAGS += -I../../blender/python
|
CPPFLAGS += -I../../blender/python
|
||||||
CPPFLAGS += -I../../blender/python/api2_2x
|
CPPFLAGS += -I../../blender/python/generic
|
||||||
CPPFLAGS += -I$(NAN_STRING)/include
|
CPPFLAGS += -I$(NAN_STRING)/include
|
||||||
CPPFLAGS += -I$(NAN_SOUNDSYSTEM)/include
|
CPPFLAGS += -I$(NAN_SOUNDSYSTEM)/include
|
||||||
CPPFLAGS += -I$(NAN_FUZZICS)/include -I$(NAN_SUMO) -I$(NAN_MOTO)/include
|
CPPFLAGS += -I$(NAN_FUZZICS)/include -I$(NAN_SUMO) -I$(NAN_MOTO)/include
|
||||||
|
Reference in New Issue
Block a user