2173e366ea
Splits socket/tracking into their own subdirectories and pulls the hello action registration out into its own module, matching the one-module-per- folder pattern; build.sh now outputs into build/macos instead of the repo root. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
31 lines
619 B
Bash
Executable File
31 lines
619 B
Bash
Executable File
#!/bin/sh
|
|
# Builds extension-reaper-macos as a REAPER extension .dylib.
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
|
|
NAME="reaper_extension-reaper-macos.dylib"
|
|
OUT_DIR="build/macos"
|
|
OUT="$OUT_DIR/$NAME"
|
|
|
|
mkdir -p "$OUT_DIR"
|
|
|
|
clang++ \
|
|
-std=c++17 \
|
|
-fvisibility=hidden \
|
|
-dynamiclib \
|
|
-arch arm64 \
|
|
-Ivendor/reaper-sdk/sdk \
|
|
-Ivendor/reaper-sdk/WDL \
|
|
-Isrc \
|
|
-o "$OUT" \
|
|
src/main.cpp \
|
|
src/hello/hello.cpp \
|
|
src/tracking/tracking.cpp \
|
|
src/socket/socket.cpp
|
|
|
|
echo "Built $OUT"
|
|
|
|
DEST="$HOME/Library/Application Support/REAPER/UserPlugins/$NAME"
|
|
cp "$OUT" "$DEST"
|
|
echo "Copied to $DEST (restart REAPER to reload)"
|