Module: tools Branch: master Commit: b70fbe6405e0c0d53065bbf67b79079035ff6896 URL: http://source.winehq.org/git/tools.git/?a=commit;h=b70fbe6405e0c0d53065bbf67...
Author: Francois Gouget fgouget@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@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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