This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/python/SConscript

36 lines
1.0 KiB
Python
Raw Normal View History

#!/usr/bin/python
Import ('env')
sources = env.Glob('*.c') + env.Glob('api2_2x/*.c')
2004-01-04 21:11:59 +00:00
incs = 'api2_2x ../blenkernel ../nodes ../blenlib ../blenloader'
incs += ' ../render/extern/include ../radiosity/extern/include'
incs += ' ../makesdna #intern/guardedalloc #intern/bmfont ../imbuf ../include'
incs += ' #extern/glew/include ../gpu'
incs += ' ' + env['BF_PYTHON_INC']
incs += ' ' + env['BF_OPENGL_INC']
2004-01-04 21:11:59 +00:00
defs = []
if env['OURPLATFORM'] in ('win32-mingw') and env['BF_DEBUG']:
defs.append('Py_TRACE_REFS')
2004-01-04 21:11:59 +00:00
if env['BF_DEBUG']:
defs.append('_DEBUG')
if env['WITH_BF_QUICKTIME']:
incs += ' ' + env['BF_QUICKTIME_INC']
defs.append('WITH_QUICKTIME')
if env['WITH_BF_OPENEXR']:
defs.append('WITH_OPENEXR')
if env['WITH_BF_FFMPEG']:
defs.append('WITH_FFMPEG')
if env['BF_BUILDINFO']:
defs.append('NAN_BUILDINFO')
# A bit dodgy but disable building with python3
if not env['BF_PYTHON_VERSION'].startswith('3'):
env.BlenderLib ( libname='blender_python', sources = Split(sources), includes = Split(incs), defines = defs, libtype=['core','game2'], priority = [60,115] )