1
0
Fork 0

Rename swift-gtk-gen to gobject-generator with generator binary

This commit is contained in:
Brendan Szymanski 2026-07-21 18:51:15 -04:00
parent d6fabd56ed
commit f305df0eff
44 changed files with 67 additions and 69 deletions

View file

@ -14,13 +14,13 @@
# --fresh remove the tier's output directory before generating (use when
# the generated file set shrinks and stale files would linger)
#
# Output goes to ${TMPDIR:-/tmp}/swift-gtk-gen-gate/tier-N; a stable path so
# Output goes to ${TMPDIR:-/tmp}/gobject-generator-gate/tier-N; a stable path so
# incremental swift builds stay fast between runs.
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
GATE_ROOT="${TMPDIR:-/tmp}/swift-gtk-gen-gate"
GATE_ROOT="${TMPDIR:-/tmp}/gobject-generator-gate"
TIER_ARG="${1:-}"
FRESH=0
@ -39,7 +39,7 @@ fi
echo "==> Building generator"
swift build --package-path "$ROOT"
BIN="$(swift build --package-path "$ROOT" --show-bin-path)/swift-gtk-gen"
BIN="$(swift build --package-path "$ROOT" --show-bin-path)/generator"
FAILED=0

View file

@ -12,7 +12,7 @@
# tier 1..6 (default 1). tier1 = GLib+GObject, tier2 = +GModule+Gio, …
# --fresh wipe the tier's output directory before generating
#
# Output goes to ${TMPDIR:-/tmp}/swift-gtk-gen-smoke/tier-<N> (a stable path so
# Output goes to ${TMPDIR:-/tmp}/gobject-generator-smoke/tier-<N> (a stable path so
# incremental swift builds stay fast between runs).
set -euo pipefail
@ -30,7 +30,7 @@ for arg in "$@"; do
done
CONFIG="$ROOT/configs/tier${TIER}.toml"
OUT="${TMPDIR:-/tmp}/swift-gtk-gen-smoke/tier-${TIER}"
OUT="${TMPDIR:-/tmp}/gobject-generator-smoke/tier-${TIER}"
if [[ ! -f "$CONFIG" ]]; then
echo "!! missing $CONFIG" >&2
@ -42,7 +42,7 @@ mkdir -p "$OUT"
echo "==> Building generator"
swift build --package-path "$ROOT"
BIN="$(swift build --package-path "$ROOT" --show-bin-path)/swift-gtk-gen"
BIN="$(swift build --package-path "$ROOT" --show-bin-path)/generator"
echo "==> Generating tier $TIER bindings (with SmokeTests target) into $OUT"
"$BIN" --monorepo-config "$CONFIG" --output "$OUT" --smoke-target >"$OUT/generate.log" 2>&1