summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNiels Weber <niels.weber@digia.com>2015-02-26 11:06:58 +0100
committerNiels Weber <niels.weber@theqtcompany.com>2015-03-06 11:51:53 +0000
commitebb0925b81c5ba1eecf4c6d031ec7b187504f54d (patch)
tree7b9d5b0a1a4f9c77c8c0d9f59c8f02b90035d10a /tools
parent6356c55f8be5be5b648781f446dd3c402c05d4ee (diff)
Strip binaries before packaging
Change-Id: I4156f6aaff57eab95bc492da993709bee9db8e59 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build_installer.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/build_installer.py b/tools/build_installer.py
index e4213d8bd..e97d5df70 100755
--- a/tools/build_installer.py
+++ b/tools/build_installer.py
@@ -85,6 +85,12 @@ def package():
print 'package ...'
os.chdir(package_dir)
shutil.copytree(os.path.join(build_dir, 'bin'), os.path.join(package_dir, 'bin'), ignore = shutil.ignore_patterns("*.exe.manifest","*.exp","*.lib"))
+ if sys.platform == 'linux2':
+ run(('strip',os.path.join(package_dir, 'bin/archivegen')))
+ run(('strip',os.path.join(package_dir, 'bin/binarycreator')))
+ run(('strip',os.path.join(package_dir, 'bin/devtool')))
+ run(('strip',os.path.join(package_dir, 'bin/installerbase')))
+ run(('strip',os.path.join(package_dir, 'bin/repogen')))
shutil.copytree(os.path.join(build_dir, 'doc'), os.path.join(package_dir, 'doc'))
shutil.copytree(os.path.join(src_dir, 'examples'), os.path.join(package_dir, 'examples'))
shutil.copy(os.path.join(src_dir, 'README'), package_dir)