Skip to content

Commit 1bfbd72

Browse files
committed
GitHub actions: Switch build
1 parent 1b10bc9 commit 1bfbd72

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ jobs:
365365

366366
build_test_headless_alpine:
367367
runs-on: ubuntu-latest
368-
container:
368+
container:
369369
image: alpine:latest
370370
options: --shm-size=8g
371371
steps:
@@ -383,7 +383,7 @@ jobs:
383383
384384
- name: Setup ccache
385385
uses: hendrikmuhs/[email protected]
386-
386+
387387
- name: Compile ffmpeg
388388
run: |
389389
cd ffmpeg && ./linux_x86-64.sh
@@ -399,3 +399,29 @@ jobs:
399399
- name: Execute headless tests
400400
run: |
401401
python test.py -g --graphics=software
402+
403+
build_switch:
404+
runs-on: ubuntu-latest
405+
container:
406+
image: 'devkitpro/devkita64'
407+
steps:
408+
- name: Checkout
409+
uses: actions/checkout@v4
410+
with:
411+
submodules: recursive
412+
413+
- name: Build
414+
run: |
415+
mkdir -p build-switch
416+
cd build-switch
417+
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=$DEVKITPRO/cmake/Switch.cmake -DCMAKE_COLOR_DIAGNOSTICS:BOOL=TRUE -DUSE_LIBNX:BOOL=TRUE -DUSE_DISCORD:BOOL=FALSE -DUSE_MINIUPNPC:BOOL=FALSE ..
418+
ninja
419+
420+
- name: Upload artifacts
421+
if: success()
422+
uses: actions/upload-artifact@v4
423+
with:
424+
name: ppsspp-switch-build
425+
path: |
426+
build-switch/ppsspp.elf
427+
build-switch/ppsspp.nro

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,11 @@ else()
14681468
message(WARNING "Found SDL2_ttf <2.0.18 - this is too old, falling back to atlas")
14691469
endif()
14701470
if(SDL2_ttf_FOUND)
1471-
set(nativeExtraLibs ${nativeExtraLibs} SDL2_ttf::SDL2_ttf)
1471+
if(TARGET SDL2_ttf::SDL2_ttf)
1472+
set(nativeExtraLibs ${nativeExtraLibs} SDL2_ttf::SDL2_ttf)
1473+
else()
1474+
set(nativeExtraLibs ${nativeExtraLibs} SDL2_ttf::SDL2_ttf-static)
1475+
endif()
14721476
elseif(SDL2_ttf_PKGCONFIG_FOUND)
14731477
set(nativeExtraLibs ${nativeExtraLibs} PkgConfig::SDL2_ttf_PKGCONFIG)
14741478
endif()

Common/CommonTypes.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ typedef signed __int64 s64;
5858
#undef Waitable
5959
#undef ThreadContext
6060

61+
// Conflicts with Arm64Emitter's BIT
62+
#undef BIT
63+
6164
// Conflicting types with libnx
6265
#ifndef _u64
6366
#define u64 _u64

0 commit comments

Comments
 (0)