Francois Gouget : testbot/testagentd: Compress the Windows TestAgent server.
Alexandre Julliard
julliard at winehq.org
Tue Feb 22 15:47:34 CST 2022
Module: tools
Branch: master
Commit: 23582e8124f4e30548350058f09fb2e3c8f60961
URL: https://source.winehq.org/git/tools.git/?a=commit;h=23582e8124f4e30548350058f09fb2e3c8f60961
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Tue Feb 22 19:53:49 2022 +0100
testbot/testagentd: Compress the Windows TestAgent server.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
testbot/src/testagentd/Makefile | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/testbot/src/testagentd/Makefile b/testbot/src/testagentd/Makefile
index 645e268..0677ace 100644
--- a/testbot/src/testagentd/Makefile
+++ b/testbot/src/testagentd/Makefile
@@ -4,6 +4,7 @@ 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: build iso
build: $(builddir)/testagentd
@@ -25,6 +26,10 @@ WIN_SOURCES = testagentd.c platform_windows.c
TestAgentd32.exe: $(WIN_SOURCES:.c=.obj32)
$(CROSSCC32) -o $@ $(WIN_SOURCES:.c=.obj32) -lws2_32
$(CROSSSTRIP32) $@
+ if which $(CROSSZIPEXE); \
+ then \
+ $(CROSSZIPEXE) --best -q -q $@; \
+ fi
.SUFFIXES: .obj32
.c.obj32:
@@ -33,6 +38,10 @@ TestAgentd32.exe: $(WIN_SOURCES:.c=.obj32)
TestAgentd64.exe: $(WIN_SOURCES:.c=.obj64)
$(CROSSCC64) -o $@ $(WIN_SOURCES:.c=.obj64) -lws2_32
$(CROSSSTRIP64) $@
+ if which $(CROSSZIPEXE); \
+ then \
+ $(CROSSZIPEXE) --best -q -q $@; \
+ fi
.SUFFIXES: .obj64
.c.obj64:
More information about the wine-cvs
mailing list