* add debug symbols when building BF_DEBUG=True
authorNathan Letwory <nathan@letworyinteractive.com>
Mon, 1 Dec 2008 21:13:49 +0000 (21:13 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Mon, 1 Dec 2008 21:13:49 +0000 (21:13 +0000)
source/blender/makesrna/intern/SConscript

index 935473abe0a6dff2107075f74030e513bc88aa90..93d91a3afa6037fca47215fbf43307d359717e4e 100644 (file)
@@ -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