X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=SConstruct;h=de735e94c34f18713d5aaa42535ea35153317663;hb=f878d2060c196c8130af0912ffc4493c631b1c34;hp=104cc38aa638a33e767252a1fc770476a611d901;hpb=8173471fc25f4c768cab54fa840fd4c53d1c3c0f;p=mesa.git diff --git a/SConstruct b/SConstruct index 104cc38aa63..de735e94c34 100644 --- a/SConstruct +++ b/SConstruct @@ -40,6 +40,9 @@ env = Environment( ENV = os.environ, ) +# XXX: This creates a many problems as it saves... +#opts.Save('config.py', env) + # Backwards compatability with old target configuration variable try: targets = ARGUMENTS['targets'] @@ -66,6 +69,13 @@ if env['gles']: ####################################################################### # Environment setup +with open("VERSION") as f: + mesa_version = f.read().strip() +env.Append(CPPDEFINES = [ + ('PACKAGE_VERSION', '\\"%s\\"' % mesa_version), + ('PACKAGE_BUGREPORT', '\\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\"'), +]) + # Includes env.Prepend(CPPPATH = [ '#/include', @@ -141,3 +151,18 @@ SConscript( duplicate = 0 # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html ) + +######################################################################## +# List all aliases + +try: + from SCons.Node.Alias import default_ans +except ImportError: + pass +else: + aliases = default_ans.keys() + aliases.sort() + env.Help('\n') + env.Help('Recognized targets:\n') + for alias in aliases: + env.Help(' %s\n' % alias)