Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirasawaSama committed Dec 5, 2023
1 parent 88968cf commit ad60499
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
run: |
mkdir build
cd build
cmake -G "Visual Studio 17 2022" -A x64 .. -DCMAKE_BUILD_TYPE=MinSizeRel
cmake --build . --config MinSizeRel
cmake -G "Visual Studio 17 2022" -A x64 .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}/build/libEIMTimeStretchers.dll
file: ${{ github.workspace }}/build/Release/EIMTimeStretchers.dll
tag: ${{ github.ref }}
asset_name: libEIMTimeStretchers.dll

Expand All @@ -49,8 +49,8 @@ jobs:
mkdir build
cd build
brew install ninja
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=MinSizeRel
cmake --build . --config MinSizeRel
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cmake-build-debug
build
.idea
.DS_Store
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 3.26)
cmake_minimum_required(VERSION 3.24)
project(EIMTimeStretchers)

set(CMAKE_CXX_STANDARD 23)

if (WIN32)
add_definitions(-D_WIN32 -DNOMINMAX -D_USE_MATH_DEFINES -DGETOPT_API=)
add_definitions(-D_WIN32 -DNOMINMAX -D_USE_MATH_DEFINES -DUSE_BUILTIN_FFT -DUSE_BQRESAMPLER -DGETOPT_API=0)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MD")
elseif (APPLE)
add_definitions(-DUSE_BQRESAMPLER -DHAVE_VDSP -DNO_THREAD_CHECKS -DUSE_PTHREADS -DNO_TIMING -DMALLOC_IS_ALIGNED)
Expand All @@ -31,7 +31,7 @@ file(GLOB_RECURSE RUBBERBAND_SRC_FILES
add_library(EIMTimeStretchers SHARED ${SRC_FILES} ${RUBBERBAND_SRC_FILES})

if (WIN32)
target_link_libraries(EIMTimeStretchers PRIVATE SoundTouch "-lippsmt" '-lippvmmt', '-lippcoremt)
target_link_libraries(EIMTimeStretchers PRIVATE SoundTouch)
elseif (APPLE)
target_link_libraries(EIMTimeStretchers PRIVATE "-framework Accelerate" SoundTouch pthread)
endif ()

0 comments on commit ad60499

Please sign in to comment.