diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2008-12-02 00:13:49 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2008-12-02 00:13:49 +0300 |
commit | d18f26f67990b02bd36ea31061fe0ac634ae4dfb (patch) | |
tree | 0900482a51d27f9a2c0a550fb39075ef49ca499d /source/blender/makesrna | |
parent | a821b7e5d1c4501d4fb80580cebb931341491209 (diff) |
* add debug symbols when building BF_DEBUG=True
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/SConscript | 6 |
1 files changed, 6 insertions, 0 deletions
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 |