forked from bartvdbraak/blender
35 lines
1023 B
Python
35 lines
1023 B
Python
|
#!/usr/bin/python
|
||
|
|
||
|
# NOTE: This file is automatically generated by bundle.sh script
|
||
|
# If you're doing changes in this file, please update template
|
||
|
# in that script too
|
||
|
|
||
|
import sys
|
||
|
import os
|
||
|
|
||
|
Import('env')
|
||
|
|
||
|
src = []
|
||
|
defs = []
|
||
|
|
||
|
src += env.Glob('internal/ceres/*.cc')
|
||
|
src += env.Glob('internal/ceres/generated/*.cc')
|
||
|
|
||
|
defs.append('CERES_HAVE_PTHREAD')
|
||
|
defs.append('CERES_HASH_NAMESPACE_START=namespace std { namespace tr1 {')
|
||
|
defs.append('CERES_HASH_NAMESPACE_END=}}')
|
||
|
defs.append('CERES_NO_SUITESPARSE')
|
||
|
defs.append('CERES_DONT_HAVE_PROTOCOL_BUFFERS')
|
||
|
|
||
|
incs = '. ../../ ../../../Eigen3 ./include ./internal ../gflags'
|
||
|
|
||
|
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
|
||
|
if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
|
||
|
incs += ' ../msinttypes'
|
||
|
|
||
|
incs += ' ../glog/src/windows'
|
||
|
else:
|
||
|
incs += ' ../glog/src'
|
||
|
|
||
|
env.BlenderLib ( libname = 'extern_ceres', sources=src, includes=Split(incs), defines=defs, libtype=['extern', 'player'], priority=[20,137])
|