interplane-mv
INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority.
Brought by drakestapleton
interplane-mv / docs / external / nightdriver / 666 / harness / host / build.sh
| 1 | #!/bin/sh |
| 2 | # Usage: build.sh <variant> <source-dir> <out> [extra g++ flags, e.g. -DENABLE_AUDIO=1] |
| 3 | # variant: modern | legacy |
| 4 | # source-dir: an UNMODIFIED NightDriverStrip tree at the SHA under test (needs include/ and src/socketserver.cpp) |
| 5 | # Platform headers are shadowed by stubs in an overlay copy of include/; socketserver.cpp is compiled from source-dir as-is. |
| 6 | set -e |
| 7 | H=$(cd "$(dirname "$0")/.." && pwd) |
| 8 | V=$1; SRC=$2; OUT=$3; shift 3 |
| 9 | OV=$(mktemp -d) |
| 10 | cp -r "$SRC/include" "$OV/include" |
| 11 | cp -r "$H/stubs/$V/." "$OV/include/" |
| 12 | g++ -std=gnu++20 -O1 -g -w "$@" -I"$OV/include" \ |
| 13 | "$SRC/src/socketserver.cpp" "$H/host/ndhost_$V.cpp" -o "$OUT" -lpthread |
| 14 | rm -rf "$OV" |