# Mac OSX - SDL2 version
#
# This should build a `gsplus` executable and copy it to the project root dir.
# You can run it, though as always you need to supply an Apple IIgs ROM file.
# Have fun, and please note any errors on the issues page of the project.


# Prerequisite: You must install Xcode on your system from the App Store

# Also, install Xcode cli tools.
xcode-select --install

# Install 'brew'.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# Use brew to install dependencies.
brew install cmake pkg-config re2c sdl2 sdl2_image freetype

# Clone & Build.
git clone git@github.com:digarok/gsplus.git
mkdir build ; cd build
cmake ..
make
