Skip to content

Commit

Permalink
Update CMakeLists.txt for STEAMDECK_NATIVE dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
streetpea committed Oct 20, 2023
1 parent dd4bbc1 commit 686053c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ jobs:
Expand-Archive -LiteralPath "fftw-3.3.5-dll64.zip" -DestinationPath "./fftw"
Write-Output "${{ github.workspace }}\fftw" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: "x86_64"
toolset: "14"

- name: fftw libs
run: |
cd ${{ github.workspace }}\fftw
lib /def:libfftw3-3.def
- name: Setup SDL2
run: |
$ProgressPreference = 'SilentlyContinue'
Expand Down Expand Up @@ -116,12 +127,6 @@ jobs:
arch: 'win64_msvc2019_64'
modules: 'qtmultimedia'

- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: "x86_64"
toolset: "14"

- name: Configure & Build Opus
run: |
git clone https://github.com/xiph/opus.git -b v1.4
Expand Down Expand Up @@ -172,8 +177,6 @@ jobs:
cp "${{ github.workspace }}\ffmpeg\bin\avutil-58.dll" Chiaki4deck-VC
cp "${{ github.workspace }}\hidapi-x64\hidapi.dll" Chiaki4deck-VC
cp "${{ github.workspace }}\fftw\libfftw3-3.dll" Chiaki4deck-VC
cp "${{ github.workspace }}\fftw\libfftw3f-3.dll" Chiaki4deck-VC
cp "${{ github.workspace }}\fftw\libfftw3l-3.dll" Chiaki4deck-VC
windeployqt.exe --no-translations Chiaki4deck-VC\chiaki.exe
- name: Package Chiaki4deck
Expand All @@ -193,3 +196,4 @@ jobs:
name: Chiaki4deck-win_x64-VC-Release
path: ${{ env.RELEASE_PACKAGE_PATH }}
if-no-files-found: error
retention-days: 1
14 changes: 12 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,18 @@ if(CHIAKI_ENABLE_STEAMDECK_NATIVE)
set(CHIAKI_ENABLE_STEAMDECK_NATIVE ON)
else()
if(NOT CHIAKI_ENABLE_STEAMDECK_NATIVE STREQUAL AUTO)
message(FATAL_ERROR "
CHIAKI_ENABLE_STEAMDECK_NATIVE is set to ON, but its dependency (HIDAPI) could not be resolved.")
if(NOT HIDAPI_FOUND AND NOT FFTW_FOUND)
message(FATAL_ERROR "
CHIAKI_ENABLE_STEAMDECK_NATIVE is set to ON, but its dependencies (HIDAPI & FFTW3) could not be resolved.")
endif()
if(NOT HIDAPI_FOUND)
message(FATAL_ERROR "
CHIAKI_ENABLE_STEAMDECK_NATIVE is set to ON, but its dependency (HIDAPI) could not be resolved.")
endif()
if(NOT FFTW_FOUND)
message(FATAL_ERROR "
CHIAKI_ENABLE_STEAMDECK_NATIVE is set to ON, but its dependency (FFTW3) could not be resolved.")
endif()
endif()
set(CHIAKI_ENABLE_STEAMDECK_NATIVE OFF)
endif()
Expand Down

0 comments on commit 686053c

Please sign in to comment.