Newer
Older
env.Replace(debug=ARGUMENTS.get("debug",0))
env.Replace(autozafl=ARGUMENTS.get("autozafl",0))
if int(env['debug']) == 1:
env.Append(CFLAGS=" -g ")
env.Append(CXXFLAGS=" -g ")
env.Append(LINKFLAGS=" -g ")
else:
env.Append(CFLAGS=" -O3 ")
env.Append(CXXFLAGS=" -O3 ")
env.Append(LINKFLAGS=" -O3 ")
all=SConscript("src/SConscript")
#
# only try to build a .deb on debian
#
is_debian = os.path.isfile('/usr/bin/dpkg-architecture')
if is_debian:
all=all+SConscript("deb/SConscript")