2008-08-17 15:01:43 +00:00
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# ASSIMP scons build file
|
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
import sys
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
g_LibPath = Split("""
|
|
|
|
./
|
|
|
|
/usr/lib/
|
|
|
|
/usr/local/lib/
|
|
|
|
""")
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
g_IncPath = Split("""
|
|
|
|
../../code/
|
|
|
|
/usr/include/
|
|
|
|
/usr/local/include/
|
|
|
|
""")
|
|
|
|
#------------------------------------------------------------------------------
|
2008-12-07 20:00:58 +00:00
|
|
|
g_assimp_lib_Source = Glob(r"../../code/*.cpp")
|
|
|
|
|
2008-08-17 15:01:43 +00:00
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# don't reset CC/CXX-variable, other users might have set it to something special
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
ccflags = '-pipe'
|
|
|
|
|
|
|
|
if ARGUMENTS.get('debug', 0):
|
|
|
|
print "Using Debug Build!"
|
|
|
|
ccflags = ccflags + ' -g -pg -Wall -pedantic '
|
|
|
|
else:
|
|
|
|
ccflags = ccflags + ' -Os -msse -Wall -pedantic'
|
|
|
|
|
|
|
|
env = Environment(CCFLAGS = ccflags, CPPPATH = g_IncPath, LIBPATH=g_LibPath)
|
|
|
|
conf = Configure( env )
|
|
|
|
|
|
|
|
#if not conf.CheckCHeader( "boost/thread/thread.hpp" ):
|
|
|
|
# print "Boost must be installed!"
|
|
|
|
# Exit( 1 )
|
|
|
|
env = conf.Finish()
|
|
|
|
|
|
|
|
# Build library
|
|
|
|
env.StaticLibrary(target = "assimp", source = g_assimp_lib_Source,
|
|
|
|
LIBPATH = g_LibPath)
|
|
|
|
|