Fixed problem with embedding manifests in Windows binaries

This commit is contained in:
Ray Speth 2012-01-05 22:22:13 +00:00
parent fc57f75da7
commit 89a405006b

View file

@ -527,6 +527,11 @@ env['FORTRANMODDIR'] = '${TARGET.dir}'
if env['CC'] == 'cl':
env['WIN32'] = True
# embed manifest file
env['LINKCOM'] = [env['LINKCOM'],
'if exist ${TARGET}.manifest mt.exe -nologo -manifest ${TARGET}.manifest -outputresource:$TARGET;1']
env['SHLINKCOM'] = [env['SHLINKCOM'],
'if exist ${TARGET}.manifest mt.exe -nologo -manifest ${TARGET}.manifest -outputresource:$TARGET;2']
else:
env['WIN32'] = False