Added Brewfile and updated macOS compilation instructions

This commit is contained in:
Kreeblah 2022-08-14 19:36:02 -07:00
parent daebb32925
commit bfdeff93b2
No known key found for this signature in database
GPG Key ID: 6074237BF1AEEDFB
3 changed files with 23 additions and 9 deletions

4
.gitignore vendored
View File

@ -48,3 +48,7 @@ xcuserdata
# PyCharm generated files #
###########################
.idea
# Brewfile installation artifacts
#################################
Brewfile.lock.json

16
Brewfile Normal file
View File

@ -0,0 +1,16 @@
# This should already be tapped, but just in case
tap "homebrew/core"
# Install dependencies
brew "scons"
brew "sdl"
brew "sdl_image"
brew "sdl_mixer"
brew "sdl2"
brew "sdl2_image"
brew "sdl2_mixer"
brew "libpng"
brew "jpeg"
brew "physfs"
brew "pkg-config"
brew "dylibbundler"

View File

@ -127,15 +127,9 @@ from the Terminal. This may need to be done after each major OS upgrade as well
DXX-Rebirth can be built from the Terminal (via SCons) without Xcode; to build using Xcode requires Xcode to be installed.
##### [Homebrew](https://github.com/Homebrew/homebrew/)
* **brew install
scons
sdl
sdl\_image
sdl\_mixer
physfs
libpng
pkg-config
dylibbundler**
The project includes a Brewfile for installing all required dependencies, if you use Homebrew. You can install them with:
* **brew bundle**
### Building
Once prerequisites are installed, run **scons** *options* to build. By default, both D1X-Rebirth and D2X-Rebirth are built. To build only D1X-Rebirth, run **scons d1x=1**. To build only D2X-Rebirth, run **scons d2x=1**.