Francois Gouget : testbot/TestLauncher: Compress the TestLauncher binaries.

Alexandre Julliard julliard at winehq.org
Mon Jun 12 12:34:33 CDT 2017


Module: tools
Branch: master
Commit: b70fbe6405e0c0d53065bbf67b79079035ff6896
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=b70fbe6405e0c0d53065bbf67b79079035ff6896

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Mon Jun 12 18:26:51 2017 +0200

testbot/TestLauncher: Compress the TestLauncher binaries.

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>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/testbot/src/TestLauncher/Makefile b/testbot/src/TestLauncher/Makefile
index 06b3729..6b41e01 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




More information about the wine-cvs mailing list