Skip to content
Snippets Groups Projects
Commit 96ca4ac9 authored by Tofu Linden's avatar Tofu Linden
Browse files

EXT-5500 reduce linux package size

This takes the (compressed!) linux package size from 56MB to 40MB.
parent 2490f50c
No related branches found
No related tags found
No related merge requests found
...@@ -854,16 +854,10 @@ def construct(self): ...@@ -854,16 +854,10 @@ def construct(self):
print "Skipping %s - not found" % libfile print "Skipping %s - not found" % libfile
pass pass
self.path("secondlife-bin","bin/do-not-directly-run-secondlife-bin")
if(self.args['buildtype'].lower() == 'release'):
print "* packaging stripped viewer binary."
self.path("secondlife-stripped","bin/do-not-directly-run-secondlife-bin")
else:
print "* packaging un-stripped viewer binary."
self.path("secondlife-bin","bin/do-not-directly-run-secondlife-bin")
self.path("../linux_crash_logger/linux-crash-logger-stripped","bin/linux-crash-logger.bin") self.path("../linux_crash_logger/linux-crash-logger","bin/linux-crash-logger.bin")
self.path("../linux_updater/linux-updater-stripped", "bin/linux-updater.bin") self.path("../linux_updater/linux-updater", "bin/linux-updater.bin")
self.path("../llplugin/slplugin/SLPlugin", "bin/SLPlugin") self.path("../llplugin/slplugin/SLPlugin", "bin/SLPlugin")
if self.prefix("res-sdl"): if self.prefix("res-sdl"):
self.path("*") self.path("*")
...@@ -914,23 +908,16 @@ def construct(self): ...@@ -914,23 +908,16 @@ def construct(self):
if self.prefix(src="vivox-runtime/i686-linux", dst="lib"): if self.prefix(src="vivox-runtime/i686-linux", dst="lib"):
self.path("libortp.so") self.path("libortp.so")
self.path("libsndfile.so.1") self.path("libsndfile.so.1")
#self.path("libvivoxoal.so.1") # no - we'll re-use the viewer's own OAL lib #self.path("libvivoxoal.so.1") # no - we'll re-use the viewer's own OpenAL lib
self.path("libvivoxsdk.so") self.path("libvivoxsdk.so")
self.path("libvivoxplatform.so") self.path("libvivoxplatform.so")
self.end_prefix("lib") self.end_prefix("lib")
class Linux_x86_64Manifest(LinuxManifest): if self.args['buildtype'].lower() == 'release':
def construct(self): print "* Going strip-crazy on the packaged binaries, since this is a RELEASE build"
super(Linux_x86_64Manifest, self).construct() self.run_command("find %(d)r/bin %(d)r/lib -type f | xargs --no-run-if-empty strip -S" % {'d': self.get_dst_prefix()} ) # makes some small assumptions about our packaged dir structure
self.path("secondlife-stripped","bin/do-not-directly-run-secondlife-bin")
self.path("../linux_crash_logger/linux-crash-logger-stripped","linux-crash-logger.bin")
if self.prefix("res-sdl"):
self.path("*")
# recurse
self.end_prefix("res-sdl")
self.path("featuretable_linux.txt") ################################################################
self.path("secondlife-i686.supp")
if __name__ == "__main__": if __name__ == "__main__":
main() main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment