aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-10-16 23:14:57 +0800
committerYuqian Yang <crupest@crupest.life>2025-10-16 23:14:57 +0800
commitf0f5113dbfeab7e8c60c5bf440179c0737b7ce67 (patch)
tree6e319a13796015a6ac436e201c32b705fa6a65db
parent550ab66d86c89e56f7cb00f5622b4420e216e8de (diff)
downloadcru-f0f5113dbfeab7e8c60c5bf440179c0737b7ce67.tar.gz
cru-f0f5113dbfeab7e8c60c5bf440179c0737b7ce67.tar.bz2
cru-f0f5113dbfeab7e8c60c5bf440179c0737b7ce67.zip
Add SDL.
-rw-r--r--.github/workflows/ci.yml2
-rw-r--r--src/platform/CMakeLists.txt1
-rw-r--r--src/platform/gui/sdl/CMakeLists.txt1
3 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 62eb32c4..142b472f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -89,7 +89,7 @@ jobs:
run: |
sudo apt update
sudo apt install -y libpng-dev libcairo2-dev libpango1.0-dev libxcb1-dev libxcb-cursor-dev \
- libxkbcommon-dev libxcb-imdkit-dev libxkbcommon-x11-dev
+ libxkbcommon-dev libxcb-imdkit-dev libxkbcommon-x11-dev libsdl2-dev
- name: Build
run: |
diff --git a/src/platform/CMakeLists.txt b/src/platform/CMakeLists.txt
index cfa9e74d..a917f81f 100644
--- a/src/platform/CMakeLists.txt
+++ b/src/platform/CMakeLists.txt
@@ -27,6 +27,7 @@ elseif (EMSCRIPTEN)
elseif (UNIX)
add_subdirectory(graphics/cairo)
add_subdirectory(gui/xcb)
+ add_subdirectory(gui/sdl)
endif()
add_subdirectory(bootstrap)
diff --git a/src/platform/gui/sdl/CMakeLists.txt b/src/platform/gui/sdl/CMakeLists.txt
new file mode 100644
index 00000000..3f85e24e
--- /dev/null
+++ b/src/platform/gui/sdl/CMakeLists.txt
@@ -0,0 +1 @@
+find_package(SDL3 REQUIRED CONFIG REQUIRED COMPONENTS SDL3-shared)