28 lines
608 B
Python
28 lines
608 B
Python
#!/usr/bin/python
|
|
import os
|
|
|
|
CONFIG_VERSION = 6.0
|
|
CONFIG_DEBUG = True
|
|
|
|
Export("CONFIG_VERSION", "CONFIG_DEBUG")
|
|
|
|
|
|
|
|
# Set up default environment
|
|
CONFIG_ENV = [ "-O2" ]
|
|
if CONFIG_DEBUG == True:
|
|
CONFIG_ENV = [ "-Wall", "-Werror", "-g", "-DCONFIG_DEBUG" ]
|
|
|
|
env = Environment( CCFLAGS = CONFIG_ENV )
|
|
env.Append(CPPPATH = os.path.abspath("include"))
|
|
env.Append(CXXCOMSTR = "C++ $TARGET")
|
|
env.Append(LINKCOMSTR = "Linking $TARGET")
|
|
Export("env", "CONFIG_ENV")
|
|
|
|
|
|
|
|
# Import SConscript files
|
|
include = SConscript("include/Sconscript")
|
|
design = SConscript("design/Sconscript")
|
|
tests = SConscript("tests/Sconscript")
|