gallium/util: add missing u_math include
[mesa.git] / SConstruct
index 029daa1c6f35f57c2981c652e2ba13550e4e11ec..de735e94c34f18713d5aaa42535ea35153317663 100644 (file)
@@ -40,7 +40,8 @@ env = Environment(
        ENV = os.environ,
 )
 
-opts.Save('config.py', env)
+# XXX: This creates a many problems as it saves...
+#opts.Save('config.py', env)
 
 # Backwards compatability with old target configuration variable
 try:
@@ -68,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',