]> granicus.if.org Git - handbrake/commitdiff
contrib: test: Strip dll and cli binary in build phase if debug=none.
authorBradley Sepos <bradley@bradleysepos.com>
Tue, 29 May 2018 08:35:24 +0000 (04:35 -0400)
committerBradley Sepos <bradley@bradleysepos.com>
Tue, 29 May 2018 08:35:24 +0000 (04:35 -0400)
libhb/module.rules
test/module.rules

index 65525cd07aaffb57e0f244014b3ab1bb5bc86714..80828577c0d7f600607ea1fc39283d9807fd0bc1 100644 (file)
@@ -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
 
index 5dd638815a28aa8cd40471b0bfcfba9b9eabd6e8..d9bd8434b1abc1f3d4bad0abc1cec82f85dbab51 100644 (file)
@@ -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))