shithub: opusfile

Download patch

ref: 3d742462645c2c81c7283e492e2e65eafac67333
parent: 79d17619d120c4b45f831d9a466cbb6749a5feaa
author: Ralph Giles <giles@mozilla.com>
date: Fri Mar 1 08:50:21 EST 2013

Add conditional source and libraries for mingw build.

--- a/unix/Makefile
+++ b/unix/Makefile
@@ -44,6 +44,11 @@
 LIBS := -lm $(LIBS)
 endif
 
+# Extras for the MS target
+ifneq ($(findstring mingw,${CC}),)
+LIBS += -lwsock32 -lws2_32 -lgdi32 -lcrypt32
+endif
+
 RANLIB ?= ranlib
 
 #TODO: tests
@@ -63,6 +68,10 @@
 internal.c \
 opusfile.c \
 stream.c \
+
+ifneq ($(findstring mingw,${CC}),)
+LIBOPUSFILE_CSOURCES += wincerts.c
+endif
 
 LIBOPUSFILE_CHEADERS = \
 internal.h \