scons: Define PACKAGE_VERSION/BUGREPORT globally.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 13 Mar 2013 13:13:08 +0000 (13:13 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 13 Mar 2013 13:13:37 +0000 (13:13 +0000)
Fixes the scons build.

SConstruct
src/gallium/state_trackers/vega/SConscript
src/mesa/SConscript

index 4a3fef0805942f904618ebcff889dcc41b408d0f..1807ff8353984f38396516634daeb0fdacaafb14 100644 (file)
@@ -69,6 +69,11 @@ if env['gles']:
 #######################################################################
 # Environment setup
 
+env.Append(CPPDEFINES = [
+    ('PACKAGE_VERSION', '\\"9.2-devel\\"'),
+    ('PACKAGE_BUGREPORT', '\\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\"'),
+])
+
 # Includes
 env.Prepend(CPPPATH = [
        '#/include',
index 0a422316bf4d54b14f6ed5f91c7ff862d1e1687f..394eaffe7bd908b61df8b924b5e94c96b52097a3 100644 (file)
@@ -12,7 +12,6 @@ env.Append(CPPPATH = [
     Dir('.'),
 ])
 env.Append(CPPDEFINES = [
-    'PACKAGE_VERSION=',
     'KHRONOS_DLL_EXPORTS',
 ])
 
index 3502e3067ceeafcbe2def92cf022f609d2364099..ca9b70bad931f492a9cde28d208ff61a47520c52 100644 (file)
@@ -21,11 +21,6 @@ env.Append(CPPPATH = [
 enabled_apis = []
 enabled_apis += ['GL']
 
-env.Append(CPPDEFINES = [
-    ('PACKAGE_VERSION', '\\"9.2-devel\\"'),
-    ('PACKAGE_BUGREPORT', '\\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\"'),
-])
-
 if env['platform'] == 'windows':
     env.Append(CPPDEFINES = [
         '_GDI32_', # prevent gl* being declared __declspec(dllimport) in MS headers