Update build chain, more build tooling

This commit is contained in:
2025-11-17 15:28:11 -07:00
parent 0687da9d99
commit f0a3bbe739
6 changed files with 197 additions and 201 deletions

22
build.sh Executable file
View File

@@ -0,0 +1,22 @@
#! /bin/bash
set -e
export RUSTFLAGS="--remap-path-prefix=${PWD}=. --remap-path-prefix=${HOME}/.cargo=~/.cargo"
# -- Build for Native (Linux x86-64) --
echo "Building native (Linux x86-64) executable..."
cargo build --release --target=x86_64-unknown-linux-gnu
echo "Native build complete."
echo "--------------------"
# -- Build for Windows (x86-64) --
echo "Building Windows (x86-64) dll and executable..."
cargo build --release --target=x86_64-pc-windows-gnu
echo "Windows build successful."
echo "--------------------"
echo "All builds successful"
echo "Linux executable at target/x86_64-unknown-linux-gnu/release/slang"
echo "Windows .exe at target/x86_64-pc-windows-gnu/release/slang.exe"
echo "Windows .dll at target/x86_64-pc-windows-gnu/release/slang.dll"