From: Bradley Sepos Date: Tue, 29 May 2018 08:35:24 +0000 (-0400) Subject: contrib: test: Strip dll and cli binary in build phase if debug=none. X-Git-Tag: 1.2.0~442 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70e7bb5f55b3fca9e2cf21c1e087cb5c553fa4df;p=handbrake contrib: test: Strip dll and cli binary in build phase if debug=none. --- 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))