forked from sbcl/sbcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make-target-contrib-android.sh
71 lines (59 loc) · 2 KB
/
make-target-contrib-android.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/sh
set -e
export SBCL_TOP="../.."
export SBCL_HOME="$SBCL_TOP/obj/sbcl-home"
export SBCL="$SBCL_TOP/src/runtime/sbcl --noinform --core $SBCL_TOP/output/sbcl.core \
--lose-on-corruption --disable-debugger --no-sysinit --no-userinit"
export UNAME=Linux
export DEST=$SBCL_TOP/obj/sbcl-home/contrib
build_asdf () {
export ASDF_FASL=$DEST/asdf.fasl
export UIOP_FASL=$DEST/uiop.fasl
FROB_READTABLE="(setf (sb-ext:readtable-base-char-preference *readtable*) :both)"
export FASL="$ASDF_FASL $UIOP_FASL"
cd contrib/asdf
mkdir -p $DEST
$SBCL --eval "$FROB_READTABLE" \
--eval "(compile-file #p\"SYS:CONTRIB;ASDF;UIOP.LISP\" \
:print nil :output-file (merge-pathnames (parse-native-namestring \"$UIOP_FASL\")))" </dev/null
$SBCL --eval "$FROB_READTABLE" \
--eval "(compile-file #p\"SYS:CONTRIB;ASDF;ASDF.LISP\" \
:print nil :output-file (merge-pathnames (parse-native-namestring \"$ASDF_FASL\")))" </dev/null
# if [ -d asdf-upstream ] ; then rm -rf asdf-upstream ; fi FIXME
cd $SBCL_TOP
}
build_system () {
SYSTEM="$1"
MODULE_REQUIRES="$2 $3"
export FASL=$DEST/$SYSTEM.fasl
export ASD=$DEST/$SYSTEM.asd
cd contrib/$SYSTEM
$SBCL --load ../make-contrib.lisp "$SYSTEM" $MODULE_REQUIRES </dev/null
cd $SBCL_TOP
}
build_asdf
build_system sb-posix
build_system sb-bsd-sockets
build_system sb-introspect
build_system sb-cltl2
build_system sb-aclrepl
build_system sb-sprof
if [ -f android-libs/libcapstone.so ]; then
build_system sb-capstone
fi
build_system sb-rotate-byte
build_system sb-md5 sb-rotate-byte
build_system sb-executable
if [ -f android-libs/libgmp.so ]; then
build_system sb-gmp
if [ -f android-libs/libmpfr.so ]; then
build_system sb-mpfr sb-gmp
fi
fi
build_system sb-concurrency
build_system sb-queue sb-concurrency
build_system sb-rt
build_system sb-simple-streams sb-posix sb-bsd-sockets
build_system sb-cover sb-md5
# build_system sb-simd
build_system sb-grovel asdf