'main/scissor.c',
'main/shaderapi.c',
'main/shaderobj.c',
+ 'main/shader_query.cpp',
'main/shared.c',
'main/state.c',
'main/stencil.c',
'main/texstore.c',
'main/texturebarrier.c',
'main/transformfeedback.c',
+ 'main/uniform_query.cpp',
'main/uniforms.c',
'main/varray.c',
'main/version.c',
'program/programopt.c',
'program/sampler.cpp',
'program/symbol_table.c',
+ 'program/string_to_uint_map.cpp',
program_lex,
program_parse[0],
]
f.close()
return
- commit = '#define MESA_GIT_SHA1 "%s"\n' % commit[0:7]
+ commit = '#define MESA_GIT_SHA1 "git-%s"\n' % commit[0:7]
tempfile = "git_sha1.h.tmp"
f = open(tempfile, "w")
f.write(commit)
if not os.path.exists(filename) or not filecmp.cmp(tempfile, filename):
# The filename does not exist or it's different from the new file,
# so replace old file with new.
+ if os.path.exists(filename):
+ os.remove(filename)
os.rename(tempfile, filename)
return