File: build_macos.sh

package info (click to toggle)
milkytracker 1.03.00%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,844 kB
  • sloc: cpp: 172,622; objc: 557; python: 233; sh: 18; makefile: 8
file content (22 lines) | stat: -rwxr-xr-x 543 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# https://crascit.com/2016/04/03/scripting-cmake-builds/
unamestr=`uname`

if [[ "$unamestr" != 'Darwin' ]]; then
  echo "Platform is not macOS but $unamestr"
  exit 1
fi

pushd resources/pictures/docicons/osx
curl -O https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/docerator/docerator-2.0.zip
unzip -o docerator-2.0.zip -d docerator
rm docerator-2.0.zip
./genicons.py
popd

cmake -E make_directory build
pushd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --config Release
cpack .
popd