Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fvbe.git;a=commitdiff;h=0ff3dde4a6e3237a774d22c946298999545308d0
commit 0ff3dde4a6e3237a774d22c946298999545308d0 Author: James Buren <[email protected]> Date: Mon Apr 28 20:54:50 2014 -0500 add build file base diff --git a/src-new/SConstruct b/src-new/SConstruct new file mode 100644 index 0000000..77c1865 --- /dev/null +++ b/src-new/SConstruct @@ -0,0 +1,19 @@ +from os import environ + +env = Environment() + +# Set default optimizations if environment doesn't specify any. +if not 'CXXFLAGS' in environ: + env.Append(CXXFLAGS = [ '-O2' ]) +else: + env.Append(CXXFLAGS = [ environ['CXXFLAGS'] ]) + +# Enable most warnings +env.Append(CXXFLAGS = [ '-Wall', '-Wextra' ]) + +# Enable debug symbols or disable debugging code. +debug = int(ARGUMENTS.get('debug', 1)) +if debug: + env.Append(CXXFLAGS = [ '-g' ]) +else: + env.Append(CXXFLAGS = [ '-DNDEBUG' ]) _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
