[Tools 2/2] testbot/TestLauncher: Compress the TestLauncher binaries.

Francois Gouget fgouget at codeweavers.com
Mon Jun 12 11:26:51 CDT 2017


They are sent to the VMs for every test so we want them to be as small
as possible.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---

The currently checked-in binaries are huge: 432 KB and 113 KB for the 32 
and 64 bit versions respectively. It looks like they are not even 
stripped!

 testbot/src/TestLauncher/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/testbot/src/TestLauncher/Makefile b/testbot/src/TestLauncher/Makefile
index 06b37293..6b41e018 100644
--- a/testbot/src/TestLauncher/Makefile
+++ b/testbot/src/TestLauncher/Makefile
@@ -4,16 +4,25 @@ CROSSCC32    = i686-w64-mingw32-gcc
 CROSSSTRIP32 = i686-w64-mingw32-strip
 CROSSCC64    = x86_64-w64-mingw32-gcc
 CROSSSTRIP64 = x86_64-w64-mingw32-strip
+CROSSZIPEXE  = upx-ucl
 
 all: TestLauncher32.exe TestLauncher64.exe
 
 TestLauncher32.exe: TestLauncher.c
 	$(CROSSCC32) -Wall -o $@ $<
 	$(CROSSSTRIP32) $@
+	if which $(CROSSZIPEXE); \
+	then \
+	    $(CROSSZIPEXE) --best -q -q $@; \
+	fi
 
 TestLauncher64.exe: TestLauncher.c
 	$(CROSSCC64) -Wall -o $@ $<
 	$(CROSSSTRIP64) $@
+	if which $(CROSSZIPEXE); \
+	then \
+	    $(CROSSZIPEXE) --best -q -q $@; \
+	fi
 
 clean:
 	rm -f TestLauncher32.exe TestLauncher64.exe
-- 
2.11.0



More information about the wine-patches mailing list