Add fresh CMake/platform scaffolding, core engine, and SDL3 window
Platform folders, cmake target/option/platform detection, Linux and PSP scripts and Docker setup, assert/util/thread/error/log/perf/time/console/ engine/display modules, and an SDL3 window cleared to red. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
1 parent
3710924503
commit
65c4a9c051
107 files changed
+4773
-127
No files matched your search
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
cd "$(dirname "$0")/../.."
|
||||
docker build -t dusk-linux -f docker/linux/Dockerfile .
|
||||
docker run --rm -v "$(pwd):/workdir" dusk-linux /bin/bash -c "./scripts/linux/build.sh"
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
cd "$(dirname "$0")/../.."
|
||||
cmake -S . -B build-linux -DDUSK_TARGET_SYSTEM=linux
|
||||
cmake --build build-linux -- -j"$(nproc)"
|
||||
Executable
+42
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
# Installs the packages required to build and test Dusk on Linux.
|
||||
set -e
|
||||
|
||||
SUDO=""
|
||||
if [ "$(id -u)" -ne 0 ]; then
|
||||
SUDO="sudo"
|
||||
fi
|
||||
|
||||
if command -v apt-get >/dev/null 2>&1; then
|
||||
$SUDO apt-get update
|
||||
$SUDO apt-get install -y \
|
||||
build-essential \
|
||||
cmake \
|
||||
git \
|
||||
python3 \
|
||||
python3-pip \
|
||||
python3-polib \
|
||||
python3-pil \
|
||||
python3-dotenv \
|
||||
python3-numpy \
|
||||
libsdl3-dev \
|
||||
libvulkan-dev \
|
||||
libzip-dev \
|
||||
libbz2-dev \
|
||||
liblzma-dev \
|
||||
zlib1g-dev \
|
||||
libssl-dev \
|
||||
xz-utils
|
||||
elif command -v dnf >/dev/null 2>&1; then
|
||||
$SUDO dnf install -y \
|
||||
git make gcc cmake python python-polib python3-pillow python3-dotenv \
|
||||
python3-numpy SDL2-devel mesa-libGL-devel zlib-devel libzip-devel \
|
||||
bzip2-devel openssl-devel xz xz-devel
|
||||
elif command -v pacman >/dev/null 2>&1; then
|
||||
$SUDO pacman -Sy --noconfirm --needed \
|
||||
base-devel git cmake python python-polib python-pillow python-dotenv \
|
||||
python-numpy sdl2 mesa libzip bzip2 openssl xz zlib
|
||||
else
|
||||
echo "Unsupported package manager; install dependencies manually." >&2
|
||||
exit 1
|
||||
fi
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
cd "$(dirname "$0")/../.."
|
||||
docker build -t dusk-linux -f docker/linux/Dockerfile .
|
||||
docker run --rm -v "$(pwd):/workdir" dusk-linux /bin/bash -c "./scripts/linux/test.sh"
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
cd "$(dirname "$0")/../.."
|
||||
rm -rf build-tests
|
||||
cmake -S . -B build-tests -DDUSK_BUILD_TESTS=ON -DDUSK_TARGET_SYSTEM=linux
|
||||
cmake --build build-tests -- -j"$(nproc)"
|
||||
ctest --output-on-failure --test-dir build-tests
|
||||
Reference in new issue
Block a user