Skip to content

Commit

Permalink
Include libdeflate.def in Windows releases
Browse files Browse the repository at this point in the history
... just in case someone needs it.
  • Loading branch information
ebiggers committed Dec 28, 2019
1 parent 5d2fd6e commit ecffc1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.a
*.def
*.dll
*.dylib
*.exe
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ ifneq ($(findstring -mingw,$(shell $(CC) -dumpmachine 2>/dev/null)),)
SHARED_LIB_SYMLINK :=
SHARED_LIB_CFLAGS :=
SHARED_LIB_LDFLAGS := -Wl,--out-implib,libdeflate.lib \
-Wl,--output-def,libdeflate.def \
-Wl,--add-stdcall-alias
PROG_SUFFIX := .exe
PROG_CFLAGS := -static -municode
Expand Down Expand Up @@ -318,7 +319,7 @@ clean:
lib/*.dllobj lib/*/*.dllobj \
programs/*.o programs/*.obj \
$(DEFAULT_TARGETS) $(TEST_PROGRAMS) programs/config.h \
libdeflate.lib libdeflatestatic.lib \
libdeflate.lib libdeflate.def libdeflatestatic.lib \
.lib-cflags .prog-cflags

realclean: clean
Expand Down
3 changes: 1 addition & 2 deletions tools/make-windows-releases
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ for arch in 'i686' 'x86_64'; do
dir=libdeflate-$(git describe --tags | tr -d v)-windows-${arch}-bin
rm -rf $dir ${dir}.zip
mkdir $dir
cp libdeflate.dll libdeflate.lib libdeflatestatic.lib \
libdeflate.h *.exe $dir
cp libdeflate.{dll,lib,def} libdeflatestatic.lib libdeflate.h *.exe $dir
${arch}-w64-mingw32-strip ${dir}/libdeflate.dll ${dir}/*.exe
for file in COPYING NEWS; do
sed < $file > ${dir}/${file}.txt -e 's/$/\r/g'
Expand Down

0 comments on commit ecffc1f

Please sign in to comment.