From 240b66879b80480dba4569fc7833125f4148569c Mon Sep 17 00:00:00 2001 From: Stanislas Michalak Date: Mon, 20 Apr 2020 22:49:30 +0200 Subject: [PATCH] Add config for mingw compiler for Windows This allows Jamulus to be cross-compiled with MinGW compiler. --- Jamulus.pro | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Jamulus.pro b/Jamulus.pro index 5f854b15..3f9fec99 100755 --- a/Jamulus.pro +++ b/Jamulus.pro @@ -40,11 +40,19 @@ win32 { INCLUDEPATH += windows/ASIOSDK2/common \ windows/ASIOSDK2/host \ windows/ASIOSDK2/host/pc - LIBS += ole32.lib \ - user32.lib \ - advapi32.lib \ - winmm.lib \ - ws2_32.lib + mingw* { + LIBS += -lole32 \ + -luser32 \ + -ladvapi32 \ + -lwinmm \ + -lws2_32 + } else { + LIBS += ole32.lib \ + user32.lib \ + advapi32.lib \ + winmm.lib \ + ws2_32.lib + } # replace ASIO with jack if requested contains(CONFIG, "jackonwindows") {