-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathbuild
More file actions
executable file
·34 lines (27 loc) · 791 Bytes
/
build
File metadata and controls
executable file
·34 lines (27 loc) · 791 Bytes
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
#!/bin/bash
cd "$(dirname $0)"
platform=$(tools/unix/detect-platform)
arch=$1
if [ -n "$CRYPTOSHARK_ARCH" ]; then
if [ -n "$arch" ]; then
echo "Architecture cannot be specified when run inside environment." > /dev/stderr
exit 1
fi
else
if [ -n "$arch" ]; then
export CRYPTOSHARK_ARCH="$arch"
fi
. tools/$platform/activate-env || exit $?
fi
if ! command -v qmake > /dev/null; then
echo "Qt not found. Please ensure its bin directory is on your PATH." > /dev/stderr
exit 1
fi
"./bootstrap" "$CRYPTOSHARK_ARCH" || exit $?
cd "$CRYPTOSHARK_PARENTDIR"
mkdir -p "build-cryptoshark-$CRYPTOSHARK_ARCH" || exit $?
cd "build-cryptoshark-$CRYPTOSHARK_ARCH"
if [ ! -f Makefile ]; then
qmake CONFIG+=silent "$CRYPTOSHARK_SRCDIR" || exit $?
fi
make -j$CRYPTOSHARK_MAKEJ