summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-15 10:58:01 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-15 10:58:01 +0000
commit815e4cf7441d83ffca6d4d797a1a313f7c6464ab (patch)
treea469fb8153fc83cc8e0b35ced4e32328d9fca8e9 /cscript
parent1e33ccb216e73d3ea94ed08aaa4766c856178757 (diff)
Hand-apply 155b4b9f615f42b5cc26e2953860aba34b17bbc0; allow build of Windows debug version using gdb.
Diffstat (limited to 'cscript')
-rw-r--r--cscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/cscript b/cscript
index 5621ef51f..fffec8035 100644
--- a/cscript
+++ b/cscript
@@ -161,6 +161,8 @@ def dependencies(target):
def build(target, options):
cmd = './waf configure --prefix=%s' % target.directory
+ if target.debug:
+ cmd += ' --enable-debug'
if target.platform == 'windows':
cmd += ' --target-windows'
elif target.platform == 'linux':
@@ -185,6 +187,7 @@ def package_windows(target):
target.command('sed -i "s~%%resources%%~%s/platform/windows~g" build/platform/windows/installer2.%s.nsi' % (os.getcwd(), target.bits))
target.command('sed -i "s~%%static_deps%%~%s~g" build/platform/windows/installer2.%s.nsi' % (target.windows_prefix, target.bits))
target.command('sed -i "s~%%cdist_deps%%~%s~g" build/platform/windows/installer2.%s.nsi' % (target.directory, target.bits))
+ target.command('sed -i "s~%%mingw%%~%s~g" build/platform/windows/installer2.%s.nsi' % (target.mingw_path, target.bits))
target.command('sed -i "s~%%binaries%%~%s/build~g" build/platform/windows/installer2.%s.nsi' % (os.getcwd(), target.bits))
target.command('sed -i "s~%%bits%%~32~g" build/platform/windows/installer2.%s.nsi' % target.bits)
target.command('makensis build/platform/windows/installer2.%s.nsi' % target.bits)