File: build-mac

package info (click to toggle)
wine 10.0~repack-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, forky-proposed-updates
  • size: 326,452 kB
  • sloc: ansic: 4,155,993; perl: 23,800; yacc: 22,031; javascript: 15,872; makefile: 12,352; pascal: 9,519; objc: 6,923; lex: 5,273; xml: 3,219; python: 2,688; cpp: 1,741; sh: 895; java: 750; asm: 299; cs: 62
file content (46 lines) | stat: -rwxr-xr-x 1,196 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash

echo "Building $(git log -1)"
echo "---"

set -Eeuxo pipefail

X86_BREW_HOME='/usr/local'
if [ "$(arch)" = 'arm64' ]; then
    ARCH_BREW_HOME='/opt/homebrew'
    ARCH_CMD='arch -x86_64'

    # On the ARM runner, use Xcode's SDK. SDKROOT is independent of
    # DEVELOPER_DIR/xcode-select, and will default to the command line tools.
    # That's what we want on the old Intel runner.
    export SDKROOT="$(xcode-select -p)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
else
    ARCH_BREW_HOME="$X86_BREW_HOME"
    ARCH_CMD=
fi

# Pick up dependencies from homebrew.
export PATH="$X86_BREW_HOME/bin:$ARCH_BREW_HOME/bin:$PATH"
export LIBRARY_PATH="$X86_BREW_HOME/lib"

# x86 ccache wrappers. These need to go at the front of PATH.
export PATH="$X86_BREW_HOME/opt/ccache/libexec:$PATH"

./tools/make_requests
./tools/make_specfiles
./tools/make_makefiles
autoreconf -f

cd build64
$ARCH_CMD ../configure -C --enable-win64 --with-mingw BISON="$ARCH_BREW_HOME/opt/bison/bin/bison"
$ARCH_CMD make -s -j$(sysctl -n hw.activecpu)
cd ..

if ! test -s .git/rebase-merge/git-rebase-todo
then
    make -s -C build64 install-lib install-test DESTDIR=$BASEDIR
fi

git reset --hard

sleep 2