Port to FAudio

This commit is contained in:
N00byKing
2022-03-09 22:35:29 +01:00
committed by Misa Elizabeth Kai
parent a8feba029f
commit f877eb3b56
7 changed files with 530 additions and 110 deletions

View File

@@ -22,7 +22,7 @@ jobs:
submodules: true
- name: Install dependencies
run: brew install ninja sdl2 sdl2_mixer
run: brew install ninja sdl2
- name: CMake configure (default version)
run: |
@@ -118,7 +118,6 @@ jobs:
env:
SDL_VERSION: 2.0.20
SDL_MIXER_VERSION: 2.0.4
steps:
- uses: actions/checkout@v1
@@ -133,14 +132,6 @@ jobs:
path: C:\SDL
key: ${{ runner.os }}-build-${{ env.cache-name }}
- name: Cache SDL_mixer
uses: actions/cache@v2
env:
cache-name: cache-sdl-mixer
with:
path: C:\SDL_mixer
key: ${{ runner.os }}-build-${{ env.cache-name }}
- name: Download SDL if not cached
run: |
if (-Not (Test-Path C:\SDL))
@@ -149,23 +140,14 @@ jobs:
Expand-Archive C:\SDL.zip -DestinationPath C:\
}
- name: Download SDL_mixer if not cached
run: |
if (-Not (Test-Path C:\SDL_mixer))
{
Invoke-WebRequest "https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-$env:SDL_MIXER_VERSION-VC.zip" -o C:\SDL_mixer.zip
Expand-Archive C:\SDL_mixer.zip -DestinationPath C:\
}
- name: CMake configure (default version)
run: |
mkdir $env:SRC_DIR_PATH/build
cd $env:SRC_DIR_PATH/build
$env:LDFLAGS = "/LIBPATH:C:\SDL2-$env:SDL_VERSION\lib\x86 "
$env:LDFLAGS += "/LIBPATH:C:\SDL2_mixer-$env:SDL_MIXER_VERSION\lib\x86"
cmake -G "Visual Studio 17 2022" -A Win32 `
-DSDL2_INCLUDE_DIRS="C:\SDL2-$env:SDL_VERSION\include;C:\SDL2_mixer-$env:SDL_MIXER_VERSION\include" `
-DSDL2_LIBRARIES="SDL2;SDL2main;SDL2_mixer" ..
-DSDL2_INCLUDE_DIRS="C:\SDL2-$env:SDL_VERSION\include" `
-DSDL2_LIBRARIES="SDL2;SDL2main" ..
- name: Build (default version)
run: |
cd $env:SRC_DIR_PATH/build