diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-01-28 12:32:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-01-28 12:32:31 +0300 |
commit | 9e8a60c79640a2cf744206d1c5e539dcb164647b (patch) | |
tree | 92bb24d545db13de6ad9c659ff943c3fa4e1b962 /source/blender/makesrna/intern/SConscript | |
parent | 0494683f44b84750022027a174ab97ce1bb89ebd (diff) |
use wine for cross compiling
Diffstat (limited to 'source/blender/makesrna/intern/SConscript')
-rw-r--r-- | source/blender/makesrna/intern/SConscript | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/SConscript b/source/blender/makesrna/intern/SConscript index 661f9b91a34..330153f0a7f 100644 --- a/source/blender/makesrna/intern/SConscript +++ b/source/blender/makesrna/intern/SConscript @@ -32,9 +32,15 @@ makesrna_tool.Append (CPPPATH = ['#/intern/guardedalloc', '../../windowmanager']) if env['OURPLATFORM'] == 'linuxcross': - makesrna_tool.Replace(CC='gcc') - makesrna_tool.Replace(AR='ar') - makesrna_tool.Replace(LINK='gcc') + USE_WINE = True # when cross compiling on linux 64bit this is useful +else: + USE_WINE = False + +if not USE_WINE: + if env['OURPLATFORM'] == 'linuxcross': + makesdna_tool.Replace(CC='gcc') + makesdna_tool.Replace(AR='ar') + makesdna_tool.Replace(LINK='gcc') if sys.platform != 'cygwin': makesrna_tool.Append (CCFLAGS = cflags) @@ -74,6 +80,12 @@ if env['OURPLATFORM'] != 'linuxcross': rna.Command (generated_files, '', root_build_dir+os.sep+"makesrna " + build_dir) else: rna.Command (generated_files, '', root_build_dir+os.sep+"makesrna.exe " + build_dir) + + if USE_WINE: + rna.Command (generated_files, '', 'wine ' + root_build_dir+os.sep+"makesrna.exe " + build_dir) + else: + rna.Command (generated_files, '', root_build_dir+os.sep+"makesrna.exe " + build_dir) + obj = ['intern/rna_access.c', 'intern/rna_dependency.c'] for generated_file in generated_files: |