Files
assimp/workspaces/SCons/SConstruct
aramis_acg d41f570dc0 Added support for compressed x files (all files from dx sdk, except car2.x, work, no further tests yet).
Added a working makefile for mingw, provides more configs now. Not perfect yet.
Added decompression part of zlib (inflate).
Moved IrrXML to ./contrib dir.
Moved some IRR/IRRmesh shared code.
FIXME: makefile for gnu/linux is untested yet.
Code cleanup.
Unified #ifndef ASSIMP_BUILD_nnn_IMPORTER directives.
OBJ loader supports map_bump, map_ka, map_ks, map_ns now.
Endianess conversion in the ply loader is correct now.
Changed IRR/IRRMESH coordinate system conversion. Not absolutely right now, but better than before.


git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@305 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2009-01-18 23:48:25 +00:00

45 lines
1.5 KiB
Python

#------------------------------------------------------------------------------
# ASSIMP scons build file
#
#------------------------------------------------------------------------------
import sys
#------------------------------------------------------------------------------
g_LibPath = Split("""
./
/usr/lib/
/usr/local/lib/
""")
#------------------------------------------------------------------------------
g_IncPath = Split("""
../../code/
/usr/include/
/usr/local/include/
""")
#------------------------------------------------------------------------------
g_assimp_lib_Source = Glob(r"../../code/*.cpp") + Glob(r"../../contrib/irrXML/*.cpp") + Glob(r"../../contrib/zlib/*.c") + Glob(r"../../code/extra/*.cpp")
#------------------------------------------------------------------------------
# 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 -fno-strict-aliasing -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)