aboutsummaryrefslogtreecommitdiff
path: root/scripts/install_deps_macos.sh
blob: a341cf25c6ac0ab6b1bfdf81223de833ab3536dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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."