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:
authorCampbell Barton <ideasman42@gmail.com>2009-05-07 09:23:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-05-07 09:23:15 +0400
commit779bf435ef2ba87fbcee6a28b053d97a551b8eb5 (patch)
tree484cf248d2cce408dc9e90d989a003534035c818 /source/gameengine/Ketsji/SConscript
parentc46fa2745a98fe0b4545743751ad1e96802e330d (diff)
python3 compatibility for the BGE api, this only works with scons when WITH_BF_NOBLENDER is enabled.
Mathutils, Geometry and BGL modules are currently disabled with python3
Diffstat (limited to 'source/gameengine/Ketsji/SConscript')
-rw-r--r--source/gameengine/Ketsji/SConscript28
1 files changed, 15 insertions, 13 deletions
diff --git a/source/gameengine/Ketsji/SConscript b/source/gameengine/Ketsji/SConscript
index dd7297080e5..2c87c7dd78a 100644
--- a/source/gameengine/Ketsji/SConscript
+++ b/source/gameengine/Ketsji/SConscript
@@ -7,25 +7,27 @@ sources = env.Glob('*.cpp')
defs = ''
# Mathutils C files.
-sources.extend([\
- '#source/blender/python/api2_2x/Mathutils.c',\
- '#source/blender/python/api2_2x/Geometry.c',\
- '#source/blender/python/api2_2x/constant.c',\
- '#source/blender/python/api2_2x/euler.c',\
- '#source/blender/python/api2_2x/matrix.c',\
- '#source/blender/python/api2_2x/quat.c',\
- '#source/blender/python/api2_2x/vector.c',\
-])
+if not env['BF_PYTHON_VERSION'].startswith('3'):
+ # TODO - py3 support
+ sources.extend([\
+ '#source/blender/python/api2_2x/Mathutils.c',\
+ '#source/blender/python/api2_2x/Geometry.c',\
+ '#source/blender/python/api2_2x/euler.c',\
+ '#source/blender/python/api2_2x/matrix.c',\
+ '#source/blender/python/api2_2x/quat.c',\
+ '#source/blender/python/api2_2x/vector.c',\
+ '#source/blender/python/api2_2x/constant.c',\
+ ])
+
+ sources.extend([\
+ '#source/blender/python/api2_2x/BGL.c'
+ ])
sources.extend([\
'#source/blender/python/api2_2x/bpy_internal_import.c'
])
-sources.extend([\
- '#source/blender/python/api2_2x/BGL.c'
-])
-
incs = '. #source/blender/python/api2_2x' # Only for Mathutils! and bpy_internal_import.h, be very careful
incs += ' #source/kernel/gen_system #intern/string #intern/guardedalloc'