scons: Define PACKAGE_VERSION/BUGREPORT globally.

Fixes the scons build.
This commit is contained in:
José Fonseca 2013-03-13 13:13:08 +00:00
parent a6bb7a9495
commit cff70dcfb2
3 changed files with 5 additions and 6 deletions

View 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',

View File

@ -12,7 +12,6 @@ env.Append(CPPPATH = [
Dir('.'),
])
env.Append(CPPDEFINES = [
'PACKAGE_VERSION=',
'KHRONOS_DLL_EXPORTS',
])

View 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