aboutsummaryrefslogtreecommitdiff
path: root/scripts/install_deps_macos.sh
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2025-09-26 12:23:19 +0200
committersrdusr <trevorgray@srdusr.com>2025-09-26 12:23:19 +0200
commite4a0432383331e013808a97b7c24707e4ddc4726 (patch)
tree3ef4465be03bc7b92a0b048f02f76475045404b6 /scripts/install_deps_macos.sh
parent105732dde10b317a81d5a10a3f66b315d6f85015 (diff)
downloadsrdwm-e4a0432383331e013808a97b7c24707e4ddc4726.tar.gz
srdwm-e4a0432383331e013808a97b7c24707e4ddc4726.zip
Initial Commit
Diffstat (limited to 'scripts/install_deps_macos.sh')
-rw-r--r--scripts/install_deps_macos.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/install_deps_macos.sh b/scripts/install_deps_macos.sh
new file mode 100644
index 0000000..a341cf2
--- /dev/null
+++ b/scripts/install_deps_macos.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Ensure Command Line Tools
+if ! xcode-select -p >/dev/null 2>&1; then
+ xcode-select --install || true
+fi
+
+# Install Homebrew if missing
+if ! command -v brew >/dev/null 2>&1; then
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
+fi
+
+brew update
+brew install cmake ninja lua pkg-config git
+
+echo "Dependencies installed."