FWGS / hlsdk-portable

Portable Half-Life SDK. GoldSource and Xash3D. Crossplatform.
https://xash.su
Other
267 stars 119 forks source link

Nintendo Switch support #353

Closed fgsfdsfgs closed 1 year ago

fgsfdsfgs commented 1 year ago

Adds Nintendo Switch support to both waf and cmake scripts. Complementary to FWGS/xash3d-fwgs#1238. Building the libraries for nswitch requires mostly same dependencies as building the engine for it.

Building with waf:

./waf configure -T release --nswitch
./waf build

Building with CMake:

mkdir build && cd build
aarch64-none-elf-cmake -G"Unix Makefiles" -DCMAKE_PROJECT_HLSDK-PORTABLE_INCLUDE="$DEVKITPRO/portlibs/switch/share/SolderShim.cmake" ..
make -j
a1batross commented 1 year ago

сс @nekonomicon can you take a look and merge if it's ok?

nekonomicon commented 1 year ago

@fgsfdsfgs can you add build instructions to readme yet?

a1batross commented 1 year ago

@nekonomicon don't you find README a bit cluttered for that? Better to decouple all the instructions into Documentation/ folder. Or have a self-documenting build tool, like Waf. :)

fgsfdsfgs commented 1 year ago

@fgsfdsfgs can you add build instructions to readme yet?

Done.

nekonomicon commented 1 year ago

LGTM