interplane.Get Omega
Read in your language

interplane-mv

INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority.

Brought by drakestapleton

branch main Branches Tags History

interplane-mv / docs / external / nightdriver / 666 / harness / host / build.sh

14 lines · 662 bytes Raw Blame History
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.
6set -e
7H=$(cd "$(dirname "$0")/.." && pwd)
8V=$1; SRC=$2; OUT=$3; shift 3
9OV=$(mktemp -d)
10cp -r "$SRC/include" "$OV/include"
11cp -r "$H/stubs/$V/." "$OV/include/"
12g++ -std=gnu++20 -O1 -g -w "$@" -I"$OV/include" \
13 "$SRC/src/socketserver.cpp" "$H/host/ndhost_$V.cpp" -o "$OUT" -lpthread
14rm -rf "$OV"