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:
authorJoshua Leung <aligorith@gmail.com>2014-04-30 06:58:06 +0400
committerJoshua Leung <aligorith@gmail.com>2014-04-30 06:58:06 +0400
commit3150925ae8f31a184d229f98a5f8d9262833738b (patch)
tree5077de655c489541149224c5bc65e4abb6548b27 /source/blender/makesrna/intern/SConscript
parent31a7be8ed7ea341c909a625bfc801029e9f2f43d (diff)
Partially revert ef3eb7adc6f283145e28781a05b3b5e73a6cf083
The .exe extension *is* needed on Windows for makesrna, contray to the patch author's protestations otherwise. Omitting it breaks compilation on mingw at least (i.e. "rename()" fails). Thanks to "PerfectionCat" for narrowing down this bug. makesdna on the other hand still seems to work ok from a quick test I did. Unless more issues crop up, just reverting this part of the patch should be ok, though IMO these changes were unnecessary in the first place.
Diffstat (limited to 'source/blender/makesrna/intern/SConscript')
-rw-r--r--source/blender/makesrna/intern/SConscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/SConscript b/source/blender/makesrna/intern/SConscript
index f33dda2ae02..ff75d9a1721 100644
--- a/source/blender/makesrna/intern/SConscript
+++ b/source/blender/makesrna/intern/SConscript
@@ -206,7 +206,10 @@ rna.Depends (generated_files, makesrna)
build_dir = Dir(".").abspath + os.sep
if env['OURPLATFORM'] != 'linuxcross':
- rna.Command (generated_files, '', "\"" + root_build_dir+os.sep+"makesrna\" \"" + build_dir + '"' )
+ if env['OURPLATFORM'] in ('win32-vc', 'win64-vc', 'win32-mingw', 'win64-mingw'):
+ rna.Command (generated_files, '', "\"" + root_build_dir+os.sep+"makesrna.exe\" \"" + build_dir )
+ else:
+ rna.Command (generated_files, '', "\"" + root_build_dir+os.sep+"makesrna\" \"" + build_dir + '"' )
else:
rna.Command (generated_files, '', ('', 'wine ')[USE_WINE] + root_build_dir+os.sep+"makesrna.exe " + build_dir)