forked from bartvdbraak/blender
e7abdd7d56
http://wiki.blender.org/index.php/BlenderDev/Blender2.5/Unix_FHS for scons WITH_BF_FHS enabled an alternative layout eg. scons WITH_BF_FHS=1 BF_INSTALLDIR="/usr/local" for CMake just run "make install" after make (CMAKE_INSTALL_PREFIX is used for the base path) Currently only scripts use both the system and user path correctly, other areas of blender have their own path code inline with lots of ifdefs, needs to be carefully updated.
41 lines
1.2 KiB
Python
41 lines
1.2 KiB
Python
#!/usr/bin/python
|
|
Import ('env')
|
|
import os
|
|
|
|
sources = 'creator.c'
|
|
|
|
incs = '#/intern/guardedalloc ../blender/blenlib ../blender/blenkernel'
|
|
incs += ' ../blender/editors/include ../blender/blenloader ../blender/imbuf'
|
|
incs += ' ../blender/renderconverter ../blender/render/extern/include ../blender/windowmanager'
|
|
incs += ' ../blender/makesdna ../blender/makesrna ../kernel/gen_messaging'
|
|
incs += ' ../kernel/gen_system #/extern/glew/include ../blender/gpu'
|
|
incs += ' ' + env['BF_OPENGL_INC']
|
|
|
|
defs = []
|
|
if env['WITH_BF_QUICKTIME']:
|
|
incs += ' ' + env['BF_QUICKTIME_INC']
|
|
defs.append('WITH_QUICKTIME')
|
|
|
|
if env['WITH_BF_BINRELOC']:
|
|
incs += ' ../../extern/binreloc/include'
|
|
defs.append('WITH_BINRELOC')
|
|
|
|
if env['WITH_BF_OPENEXR']:
|
|
defs.append('WITH_OPENEXR')
|
|
|
|
if not env['WITH_BF_SDL']:
|
|
defs.append('DISABLE_SDL')
|
|
|
|
if env['WITH_BF_PYTHON']:
|
|
incs += ' ../blender/python'
|
|
if env['BF_DEBUG']:
|
|
defs.append('_DEBUG')
|
|
else:
|
|
defs.append('DISABLE_PYTHON')
|
|
|
|
if env['WITH_BF_FHS']: # /usr -> /usr/share/blender/2.5
|
|
defs.append('BLENDERPATH=\\"' + os.path.join(env['BF_INSTALLDIR'], 'share', 'blender', env['BF_VERSION']) + '\\"')
|
|
|
|
|
|
env.BlenderLib ( libname = 'bf_creator', sources = Split(sources), includes = Split(incs), defines = defs, libtype='core', priority = 0 )
|