diff options
author | Patryk Obara <dreamer.tan@gmail.com> | 2021-02-18 16:13:40 +0300 |
---|---|---|
committer | Patryk Obara <patryk.obara@gmail.com> | 2021-02-19 21:36:58 +0300 |
commit | 1965ada7b3de2b2440387ee5a4b0dc8c47acbe89 (patch) | |
tree | ae2e00250e2a70b2ec4f156f6a9ac633ec117d83 /BUILD.md | |
parent | cbd106d5fe69578e7d48ae24f2ac6207a91fca76 (diff) |
Move macOS-specific instructions to separate file
Diffstat (limited to 'BUILD.md')
-rw-r--r-- | BUILD.md | 69 |
1 files changed, 0 insertions, 69 deletions
@@ -15,12 +15,6 @@ notes below. - [Windows Procedures](#windows-procedures) - [Install MSYS2](#install-msys2) - [Clone and Build a Windows Binary](#clone-and-build-a-windows-binary) - - [macOS Procedures](#macos-procedures) - - [Install Dependencies under macOS](#install-dependencies-under-macos) - - [Xcode Installation](#xcode-installation) - - [Brew Package Manager Installation](#brew-package-manager-installation) - - [MacPorts Package Manager Installation](#macports-package-manager-installation) - - [Clone and Build a macOS Binary](#clone-and-build-a-macos-binary) - [Linux Procedures](#linux-procedures) - [Install Dependencies under Linux](#install-dependencies-under-linux) - [Build a Linux Binary](#build-a-linux-binary) @@ -86,69 +80,6 @@ notes below. 1. To build a debug binary, use `-t debug` in place of `-t release`. -## macOS Procedures - -Builds on macOS can be performed with Clang or GCC. For general use, we -recommend building with `Clang` as it supports linking with Apple's CoreMidi -SDK. Developers interested in testing wider compiler coverage might also be -interested in building with GCC. The following sections describe how to install -and build with both compilers. - -### Install Dependencies under macOS - -Before installing either Brew or MacPorts, the Apple's Xcode tools need to be -installed and the license agreed to: - -#### Xcode Installation - -1. Install the command line tools: `xcode-select --install` -1. Accept the license agreement: `sudo xcodebuild -license` - -#### Install the Brew Package Manager and Dependencies - -1. Download and install brew per the instructions here: <https://brew.sh> -1. Update it with: `brew update` -1. Install git with: `brew install git` -1. Clone the repository: `git clone - https://github.com/dosbox-staging/dosbox-staging.git` -1. Change directories into the repo: `cd dosbox-staging` -1. Install dependencies: - - `brew install $(./scripts/list-build-dependencies.sh -m brew -c gcc)` - -#### Install the MacPorts Package Manager and Dependencies - -1. Build and install MacPorts along with dosbox-staging dependencies with the - following sequence: - - ``` shell - git clone --quiet --depth=1 https://github.com/macports/macports-base.git - cd macports-base - ./configure - make -j"$(sysctl -n hw.physicalcpu)" - sudo make install - PREFIX="/opt/local" - PATH="${PREFIX}/sbin:${PREFIX}/bin:${PATH}" - sudo port -q selfupdate - ``` -1. Clone the repository: `git clone - https://github.com/dosbox-staging/dosbox-staging.git` -1. Change directories into the repo: `cd dosbox-staging` -1. Install depedencies: - - `sudo port -q install $(./scripts/list-build-dependencies.sh -m macports -c gcc)` - -### Build a macOS Binary (common for Brew and MacPorts) - -1. Build an optimized binary with various compilers: - -- Clang: `./scripts/build.sh -c clang -t release -p /usr/local/bin` -- GCC (brew): `./scripts/build.sh -c gcc -v 9 -t release -p /usr/local/bin` -- GCC (macports): `./scripts/build.sh -c gcc -v mp-9 -t release -p - /opt/local/bin` - -1. To build a debug binary, use `-t debug` in place of `-t release`. - ## Linux Procedures ### Install Dependencies under Linux |