]> Repos - portaudio/commitdiff
configure: add INCLUDES for mingw build
authorPhil Burk <philburk@mobileer.com>
Fri, 29 Jan 2021 20:15:15 +0000 (12:15 -0800)
committerPhil Burk <philburk@mobileer.com>
Thu, 4 Feb 2021 01:31:02 +0000 (17:31 -0800)
Previously, only portaudio.h was installed when building under mingw using
make. This behavior differs from CMakeLists.txt PA_PUBLIC_INCLUDES where
pa_win_*.h header files are installed.

To cross-compile using MXE (https://mxe.cc/) we need pa_win_*.h headers.
Add them to configure.in so that they are installed.

Patch by Stefan Hajnoczi

configure
configure.in

index 81c70f92476227dc2e9c9fdaf7b0c6847f6a678e..511ae76b33a4aca2bc1647cd01138562dc341d43 100755 (executable)
Binary files a/configure and b/configure differ
index 86048bdccf74b1e5873367ed2332789ca18a4357..3a7f7fa09db6747471bcbd2547353c9e1add9e05 100644 (file)
@@ -287,6 +287,7 @@ case "${host_os}" in
             #VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\""
             #CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO"
             CFLAGS="$CFLAGS -I$DXDIR/include -UPA_USE_DS -DPA_USE_DS=1"
+            INCLUDES="$INCLUDES pa_win_ds.h pa_win_waveformat.h"
         fi
 
         if [[ "x$with_asio" = "xyes" ]]; then
@@ -295,6 +296,7 @@ case "${host_os}" in
             LIBS="${LIBS} -lwinmm -lm -lole32 -luuid"
             DLL_LIBS="${DLL_LIBS} -lwinmm -lm -lole32 -luuid"
             CFLAGS="$CFLAGS -ffast-math -fomit-frame-pointer -I\$(top_srcdir)/src/hostapi/asio -I$ASIODIR/host/pc -I$ASIODIR/common -I$ASIODIR/host -UPA_USE_ASIO -DPA_USE_ASIO=1 -DWINDOWS"
+            INCLUDES="$INCLUDES pa_asio.h"
 
             dnl Setting the windows version flags below resolves a conflict between Interlocked*
             dnl definitions in mingw winbase.h and Interlocked* hacks in ASIO SDK combase.h
@@ -313,6 +315,7 @@ case "${host_os}" in
             #VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\""
             #CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO"
             CFLAGS="$CFLAGS -I$DXDIR/include -UPA_USE_WDMKS -DPA_USE_WDMKS=1"
+            INCLUDES="$INCLUDES pa_win_wdmks.h"
         fi
 
         if [[ "x$with_wmme" = "xyes" ]]; then
@@ -320,6 +323,7 @@ case "${host_os}" in
             LIBS="${LIBS} -lwinmm -lm -lole32 -luuid"
             DLL_LIBS="${DLL_LIBS} -lwinmm"
             CFLAGS="$CFLAGS -UPA_USE_WMME -DPA_USE_WMME=1"
+            INCLUDES="$INCLUDES pa_win_wmme.h pa_win_waveformat.h"
         fi
 
         if [[ "x$with_wasapi" = "xyes" ]]; then
@@ -327,6 +331,7 @@ case "${host_os}" in
             LIBS="${LIBS} -lwinmm -lm -lole32 -luuid"
             DLL_LIBS="${DLL_LIBS} -lwinmm -lole32"
             CFLAGS="$CFLAGS -UPA_USE_WASAPI -DPA_USE_WASAPI=1"
+            INCLUDES="$INCLUDES pa_win_wasapi.h pa_win_waveformat.h"
         fi
         ;;