* add debug symbols when building BF_DEBUG=True

This commit is contained in:
Nathan Letwory 2008-12-01 21:13:49 +00:00
parent a821b7e5d1
commit d18f26f679

@ -42,6 +42,12 @@ makesrna_tool.Append (LIBPATH = libdir)
if env['BF_PROFILE']: if env['BF_PROFILE']:
makesrna_tool.Append (LINKFLAGS = env['BF_PROFILE_FLAGS']) makesrna_tool.Append (LINKFLAGS = env['BF_PROFILE_FLAGS'])
if env['BF_DEBUG']:
makesrna_tool.Append(CFLAGS = env['BF_DEBUG_CFLAGS'])
makesrna_tool.Append(CCFLAGS = env['BF_DEBUG_CCFLAGS'])
if env['OURPLATFORM'] == 'win32-vc':
makesrna_tool.Append(LINKFLAGS = ['/DEBUG','/PDB:makesrna.pdb'])
targetpath = root_build_dir+'/makesrna' targetpath = root_build_dir+'/makesrna'
if not (root_build_dir[0]==os.sep or root_build_dir[1]==':'): if not (root_build_dir[0]==os.sep or root_build_dir[1]==':'):
targetpath = '#' + targetpath targetpath = '#' + targetpath