From 70e7bb5f55b3fca9e2cf21c1e087cb5c553fa4df Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Tue, 29 May 2018 04:35:24 -0400 Subject: [PATCH] contrib: test: Strip dll and cli binary in build phase if debug=none. --- libhb/module.rules | 3 +++ test/module.rules | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/libhb/module.rules b/libhb/module.rules index 65525cd07..80828577c 100644 --- a/libhb/module.rules +++ b/libhb/module.rules @@ -46,6 +46,9 @@ libhb.build: $(LIBHB.dll) $(LIBHB.dll): | $(dirname $(LIBHB.dll) $(LIBHB.lib)) $(LIBHB.dll): $(LIBHB.c.o) $(LIBHB.yasm.o) $(call LIBHB.GCC.DYLIB++,$@,$^ $(LIBHB.dll.libs)) +ifeq (none,$(FFMPEG.GCC.g)) + $(STRIP.exe) -s $(LIBHB.dll) +endif endif diff --git a/test/module.rules b/test/module.rules index 5dd638815..d9bd8434b 100644 --- a/test/module.rules +++ b/test/module.rules @@ -31,6 +31,13 @@ test.xclean: test.clean $(TEST.exe): | $(dir $(TEST.exe)) $(TEST.exe): $(TEST.c.o) $(call TEST.GCC.EXE++,$@,$^ $(TEST.libs)) +ifeq (none,$(FFMPEG.GCC.g)) +ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system)) + $(STRIP.exe) -s $(TEST.exe) +else + $(STRIP.exe) $(TEST.exe) +endif +endif $(TEST.c.o): $(LIBHB.a) $(TEST.c.o): | $(dir $(TEST.c.o)) -- 2.40.0