M1 primary view: wx-rs patched+extended (Linux/GTK3 build, widget bridge), vendored wx 3.3.3 + asic-rs in thirdparty/, UI-SPEC table+KPIs+dialogs, build scripts
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# Build the alkane-toolkit GUI for Windows (x86_64) from Linux, via mingw-w64.
|
||||
# wx-rs upstream supports MSW (it downloads and builds wx 3.2.2.1 with MSVC
|
||||
# via nmake, or links an msys2 mingw64 wx). Two supported routes:
|
||||
#
|
||||
# A) On Windows: install msys2/mingw64 wx + rust-gnu, run `cargo build
|
||||
# --release -p alkane-gui` there (wx-rs build.rs handles msys2 paths).
|
||||
# B) Cross from Linux: not automated yet - wxMSW needs the MSVC or msys2
|
||||
# toolchain; tracked as follow-up. The Rust side cross-compiles fine;
|
||||
# only the C++ bridge + wx need the Windows toolchain.
|
||||
#
|
||||
# This script documents route A and fails here if run on Linux.
|
||||
set -e
|
||||
if [ "$(uname -s)" = "Linux" ]; then
|
||||
echo "Route B (Linux cross to MSW) is not automated yet."
|
||||
echo "Run scripts/build-gui-windows.sh on Windows (msys2 mingw64 + rust),"
|
||||
echo "or use CI with a Windows runner."
|
||||
exit 1
|
||||
fi
|
||||
cd "$(dirname -- "$0")/.."
|
||||
cargo build --release -p alkane-gui
|
||||
echo "binary: target/release/alkane-toolkit.exe"
|
||||
Reference in New Issue
Block a user