Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-10-19 20:55:51 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-10-19 20:55:51 +0400
commitcb44f290435b245078526871dc37b8b8a528103c (patch)
tree919cdc97f637082879085fe406a0859c9acc2362 /tools/Blender.py
parent85a8f315b44f23ebae7d3b95c0e4c390b892a06d (diff)
Fix #19574: winbuildinfo.h error when compiling with cmake on windows. I've now removed winbuildinfo.h code and let scons on window just set environment vars like other operating systems. Note that cmake still doesn't get the date information on windows, implementation is missing for this.
Diffstat (limited to 'tools/Blender.py')
-rw-r--r--tools/Blender.py22
1 files changed, 6 insertions, 16 deletions
diff --git a/tools/Blender.py b/tools/Blender.py
index 38d2747889a..5641104ab15 100644
--- a/tools/Blender.py
+++ b/tools/Blender.py
@@ -243,22 +243,12 @@ def buildinfo(lenv, build_type):
obj = []
if lenv['BF_BUILDINFO']:
- if sys.platform=='win32':
- build_info_file = open("source/creator/winbuildinfo.h", 'w')
- build_info_file.write("char *build_date=\"%s\";\n"%build_date)
- build_info_file.write("char *build_time=\"%s\";\n"%build_time)
- build_info_file.write("char *build_rev=\"%s\";\n"%build_rev)
- build_info_file.write("char *build_platform=\"win32\";\n")
- build_info_file.write("char *build_type=\"dynamic\";\n")
- build_info_file.close()
- lenv.Append (CPPDEFINES = ['NAN_BUILDINFO', 'BUILD_DATE'])
- else:
- lenv.Append (CPPDEFINES = ['BUILD_TIME=\'"%s"\''%(build_time),
- 'BUILD_DATE=\'"%s"\''%(build_date),
- 'BUILD_TYPE=\'"dynamic"\'',
- 'BUILD_REV=\'"%s"\''%(build_rev),
- 'NAN_BUILDINFO',
- 'BUILD_PLATFORM=\'"%s"\''%(sys.platform)])
+ lenv.Append (CPPDEFINES = ['BUILD_TIME=\'"%s"\''%(build_time),
+ 'BUILD_DATE=\'"%s"\''%(build_date),
+ 'BUILD_TYPE=\'"dynamic"\'',
+ 'BUILD_REV=\'"%s"\''%(build_rev),
+ 'NAN_BUILDINFO',
+ 'BUILD_PLATFORM=\'"%s"\''%(sys.platform)])
obj = [lenv.Object (root_build_dir+'source/creator/%s_buildinfo'%build_type,
[root_build_dir+'source/creator/buildinfo.c'])]
return obj