From d18f26f67990b02bd36ea31061fe0ac634ae4dfb Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Mon, 1 Dec 2008 21:13:49 +0000 Subject: [PATCH] * add debug symbols when building BF_DEBUG=True --- source/blender/makesrna/intern/SConscript | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/blender/makesrna/intern/SConscript b/source/blender/makesrna/intern/SConscript index 935473abe0a..93d91a3afa6 100644 --- a/source/blender/makesrna/intern/SConscript +++ b/source/blender/makesrna/intern/SConscript @@ -42,6 +42,12 @@ makesrna_tool.Append (LIBPATH = libdir) if env['BF_PROFILE']: 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' if not (root_build_dir[0]==os.sep or root_build_dir[1]==':'): targetpath = '#' + targetpath