summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2018-05-29 04:35:24 -0400
committerBradley Sepos <[email protected]>2018-05-29 04:35:24 -0400
commit70e7bb5f55b3fca9e2cf21c1e087cb5c553fa4df (patch)
tree138da5126194c8064df1285e894d4b3d1e6f88cc
parentdbe412e9ce9843da83360eee8b203a04c5d545d7 (diff)
contrib: test: Strip dll and cli binary in build phase if debug=none.
-rw-r--r--libhb/module.rules3
-rw-r--r--test/module.rules7
2 files changed, 10 insertions, 0 deletions
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))