From b3d8c7a97aed7c0bf583bc4eabbcc3d5cb631c89 Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Mon, 5 Mar 2007 06:38:30 +0000 Subject: === SCons == * fix by Malcolm Tredinnick for #6148 * some other misc changes by myself. --- source/blender/makesdna/intern/SConscript | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'source/blender/makesdna/intern/SConscript') diff --git a/source/blender/makesdna/intern/SConscript b/source/blender/makesdna/intern/SConscript index 706e57c206d..ae5d446bcc3 100644 --- a/source/blender/makesdna/intern/SConscript +++ b/source/blender/makesdna/intern/SConscript @@ -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: -- cgit v1.2.3