* 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:
Brecht Van Lommel
2009-06-18 19:25:58 +00:00
parent 025b6dcbc3
commit 89d2559e6d
11 changed files with 14 additions and 5 deletions

View File

@@ -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 = []

View File

@@ -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 );

View File

@@ -28,7 +28,7 @@
#
#
LIBNAME = python
LIBNAME = gen_python
DIR = $(OCGDIR)/blender/$(LIBNAME)
include nan_compile.mk

View File

@@ -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

View File

@@ -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