-
Notifications
You must be signed in to change notification settings - Fork 108
/
mvm
executable file
·43 lines (38 loc) · 1.2 KB
/
mvm
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
#!/bin/bash -e
# PharoVM with VM profiler and threaded heartbeat
THIRDPARTYLIBS="libsdl2 openssl libssh2 libgit2"
INSTALLDIR=assert/phcogspur64linuxht
if [ $# -ge 1 ]; then
INSTALLDIR="$1"; shift
fi
if ../../../../scripts/checkSCCSversion ; then exit 1; fi
echo -n "clean? "
read a
case $a in
n|no|N|NO) echo "ok but this isn't safe!!";;
*)
test -f Makefile && make clean
# for lib in ${THIRDPARTYLIBS}; do
# ../../third-party/mvm ${lib} clean
# done
esac
for lib in ${THIRDPARTYLIBS}; do
../../third-party/mvm ${lib}
done
LDFLAGS="-L../../../../.thirdparty-cache/linux/x86_64/lib" \
CC=clang \
CFLAGS="-I../../../../.thirdparty-cache/linux/x86_64/include -I../../../.thirdparty-cache/linux/x86_64/include/SDL2" \
cmake \
-DCMAKE_BUILD_TYPE=Assert \
-DBUILD_I386_VERSION=OFF \
-DSDL2_INCLUDE_DIR=../../../../.thirdparty-cache/linux/x86_64/include/SDL2 \
-DSDL2_LIBRARY_PATH=../../../../.thirdparty-cache/linux/x86_64/lib \
../../..
make
productDir=`find ../../../../products/$INSTALLDIR -name "5.0*"`
productDir=`(cd $productDir;pwd)`
for lib in ${THIRDPARTYLIBS}; do
../../third-party/mvm ${lib} install $productDir
done
cp dist/* $productDir
../../editpharoinstall.sh ../../../../products/$INSTALLDIR "$@"