forked from Unity-Technologies/mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_runtime_qnx.sh
executable file
·41 lines (26 loc) · 780 Bytes
/
build_runtime_qnx.sh
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
#!/bin/bash
# Set up QNX dev environment
# Taken from/opt/bbndk/NativeSDK-env-1_0_7.2942.sh
PREFIX=`pwd`/../builds/qnx
OUTDIR=../builds/embedruntimes/qnx
perl PrepareBB10NDK.pl -ndk=r09 -env=envsetup.sh && source envsetup.sh
source $BB10_NDK_ROOT/bbndk-env.sh
make clean && make distclean
rm -r *.cache config.status nto-arm-le-v7 libgc/config.status autom4te.cache Makefile
NOCONFIGURE=1 ./autogen.sh
cd eglib; NOCONFIGURE=1 ./autogen.sh
cd ..
addvariant nto arm le-v7
cd nto-arm-le-v7
# Run Make
make && echo "Build SUCCESS!" || exit 1
rm -rf ../builds
mkdir -p $OUTDIR
cp -f mono/mini/.libs/libmono.a $OUTDIR
if [ -d ../builds/monodistribution ] ; then
rm -r ../builds/monodistribution
fi
# Clean up for next build
cd ..
make clean && make distclean
rm Makefile