Fix #444: win-scons include Visual Studio debug symbols
This commit is contained in:
@@ -43,6 +43,9 @@ elif str(platform) == "posix":
|
||||
"""))
|
||||
|
||||
boe = env.Program("#build/bin/Blades of Exile", game_sources + party_classes + common_sources)
|
||||
debug_symbols = None
|
||||
if str(platform) == "win32" and 'msvc' in env["TOOLS"] and env['debug']:
|
||||
debug_symbols = boe[0].abspath.replace('.exe', '.pdb')
|
||||
|
||||
if str(platform) == "darwin":
|
||||
boe_info = {
|
||||
@@ -55,3 +58,5 @@ else:
|
||||
boe_info = {}
|
||||
|
||||
env.Package(boe, install_dir, boe_info)
|
||||
if debug_symbols is not None:
|
||||
env.Install(install_dir, debug_symbols)
|
||||
|
@@ -27,6 +27,9 @@ elif str(platform) == "posix":
|
||||
"""))
|
||||
|
||||
pced = env.Program("#build/bin/BoE Character Editor", pced_sources + party_classes + common_sources)
|
||||
debug_symbols = None
|
||||
if str(platform) == "win32" and 'msvc' in env["TOOLS"] and env['debug']:
|
||||
debug_symbols = pced[0].abspath.replace('.exe', '.pdb')
|
||||
|
||||
if str(platform) == "darwin":
|
||||
pced_info = {
|
||||
@@ -39,3 +42,5 @@ else:
|
||||
pced_info = {}
|
||||
|
||||
env.Package(pced, install_dir, pced_info)
|
||||
if debug_symbols is not None:
|
||||
env.Install(install_dir, debug_symbols)
|
@@ -31,6 +31,9 @@ elif str(platform) == "posix":
|
||||
"""))
|
||||
|
||||
scened = env.Program("#build/bin/BoE Scenario Editor", scened_sources + common_sources)
|
||||
debug_symbols = None
|
||||
if str(platform) == "win32" and 'msvc' in env["TOOLS"] and env['debug']:
|
||||
debug_symbols = scened[0].abspath.replace('.exe', '.pdb')
|
||||
|
||||
if str(platform) == "darwin":
|
||||
scened_info = {
|
||||
@@ -43,3 +46,5 @@ else:
|
||||
scened_info = {}
|
||||
|
||||
env.Package(scened, install_dir, scened_info)
|
||||
if debug_symbols is not None:
|
||||
env.Install(install_dir, debug_symbols)
|
Reference in New Issue
Block a user