SConstruct 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #------------------------------------------------------------------------------
  2. # ASSIMP scons build file
  3. #
  4. #------------------------------------------------------------------------------
  5. import sys
  6. #------------------------------------------------------------------------------
  7. g_LibPath = Split("""
  8. ./
  9. /usr/lib/
  10. /usr/local/lib/
  11. """)
  12. #------------------------------------------------------------------------------
  13. g_IncPath = Split("""
  14. ../../code/
  15. /usr/include/
  16. /usr/local/include/
  17. """)
  18. #------------------------------------------------------------------------------
  19. g_assimp_lib_Source = Glob(r"../../code/*.cpp") + Glob(r"../../contrib/irrXML/*.cpp") + Glob(r"../../contrib/zlib/*.c") + Glob(r"../../code/extra/*.cpp")
  20. #------------------------------------------------------------------------------
  21. # don't reset CC/CXX-variable, other users might have set it to something special
  22. #------------------------------------------------------------------------------
  23. ccflags = '-pipe'
  24. if ARGUMENTS.get('debug', 0):
  25. print "Using Debug Build!"
  26. ccflags = ccflags + ' -g -pg -Wall -pedantic '
  27. else:
  28. ccflags = ccflags + ' -Os -fno-strict-aliasing -msse -Wall -pedantic'
  29. env = Environment(CCFLAGS = ccflags, CPPPATH = g_IncPath, LIBPATH=g_LibPath)
  30. conf = Configure( env )
  31. #if not conf.CheckCHeader( "boost/thread/thread.hpp" ):
  32. # print "Boost must be installed!"
  33. # Exit( 1 )
  34. env = conf.Finish()
  35. # Build library
  36. env.StaticLibrary(target = "assimp", source = g_assimp_lib_Source,
  37. LIBPATH = g_LibPath)