=== SCons ==
* fix by Malcolm Tredinnick for #6148 * some other misc changes by myself.
This commit is contained in:
parent
ef900ced64
commit
b3d8c7a97a
@ -11,7 +11,7 @@ source_files = ['makesdna.c', '#intern/guardedalloc/intern/mallocn.c']
|
||||
|
||||
makesdna_tool = env.Copy()
|
||||
dna = env.Copy()
|
||||
makesdna_tool.Append(CCFLAGS = '-DBASE_HEADER="\\"source/blender/makesdna/\\"" ')
|
||||
makesdna_tool.Append(CCFLAGS = ' -DBASE_HEADER="\\"source/blender/makesdna/\\"" ')
|
||||
|
||||
makesdna_tool.Append (CPPPATH = ['#/intern/guardedalloc',
|
||||
'../../makesdna'])
|
||||
@ -26,11 +26,13 @@ if sys.platform != 'cygwin':
|
||||
makesdna_tool.Append (CPPDEFINES = defines)
|
||||
makesdna_tool.Append (LIBPATH = '#'+root_build_dir+'/lib')
|
||||
|
||||
makesdna_tool.Program (target = '#'+root_build_dir+os.sep+'makesdna', source = source_files)
|
||||
if env['OURPLATFORM'] == 'linux2' and root_build_dir[0]==os.sep:
|
||||
makesdna = makesdna_tool.Program (target = root_build_dir+'/makesdna', source = source_files)
|
||||
else:
|
||||
makesdna = makesdna_tool.Program (target = '#'+root_build_dir+'/makesdna', source = source_files)
|
||||
|
||||
dna_dict = dna.Dictionary()
|
||||
makesdna_name = root_build_dir+'/makesdna' + dna_dict['PROGSUFFIX']
|
||||
dna.Depends ('dna.c', '#'+makesdna_name)
|
||||
dna.Depends ('dna.c', makesdna)
|
||||
if env['OURPLATFORM'] != 'linuxcross':
|
||||
dna.Command ('dna.c', '', root_build_dir+os.sep+"makesdna $TARGET")
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user