diff --git a/.gitignore b/.gitignore index 6caaa0c..5c2d34e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,10 @@ *.a *.pyc *.so +*.dll +*.pyd +.ninja* +build.ninja dist src/lasp.egg-info test/.ipynb_checkpoints diff --git a/cmake/rtaudio.cmake b/cmake/rtaudio.cmake index 835fde6..7c2212e 100644 --- a/cmake/rtaudio.cmake +++ b/cmake/rtaudio.cmake @@ -9,5 +9,5 @@ if(LASP_HAS_RTAUDIO) set(RTAUDIO_API_JACK OFF CACHE BOOL "Do not build with Jack backend" FORCE) endif() set(RTAUDIO_BUILD_STATIC_LIBS ON CACHE BOOL "Build static libs for RtAudio" FORCE) - add_subdirectory(third_party/rtaudio) + add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/rtaudio) endif() diff --git a/scripts/configure_cmake_msys2.sh b/scripts/configure_cmake_msys2.sh index d45789d..95649e7 100644 --- a/scripts/configure_cmake_msys2.sh +++ b/scripts/configure_cmake_msys2.sh @@ -1,3 +1,10 @@ -#!/bin/sh +#!/bin/bash # -cmake . -G"MinGW Makefiles" -DLASP_HAS_ULDAQ=OFF -DPython3_ROOT_DIR=C:\\winpython\\python-3.10.9.amd64 +cmake . -G"Ninja" -DLASP_HAS_ULDAQ=OFF -DPython3_ROOT_DIR=C:\\winpython\\python-3.10.9.amd64 + + +files_to_cpy="libfftw3-3.dll libgcc_s_seh-1.dll libgfortran-5.dll libgomp-1.dll libopenblas.dll libquadmath-0.dll libstdc++-6.dll libwinpthread-1.dll" + +for fn in ${files_to_cpy}; do + cp /c/msys64/mingw64/bin/${fn} src/lasp +done