Stop saying 'can't open-code test of unknown type'.
[sbcl.git] / make-target-contrib-android.sh
blobf850744c21b43b924271fb86865ea324fb350d8d
1 #!/bin/sh
2 set -e
4 export SBCL_TOP="../.."
5 export SBCL_HOME="$SBCL_TOP/obj/sbcl-home"
6 export SBCL="$SBCL_TOP/src/runtime/sbcl --noinform --core $SBCL_TOP/output/sbcl.core \
7 --lose-on-corruption --disable-debugger --no-sysinit --no-userinit"
8 export UNAME=Linux
9 export DEST=$SBCL_TOP/obj/sbcl-home/contrib
11 build_asdf () {
12 export ASDF_FASL=$DEST/asdf.fasl
13 export UIOP_FASL=$DEST/uiop.fasl
14 FROB_READTABLE="(setf (sb-ext:readtable-base-char-preference *readtable*) :both)"
15 export FASL="$ASDF_FASL $UIOP_FASL"
17 cd contrib/asdf
18 mkdir -p $DEST
20 $SBCL --eval "$FROB_READTABLE" \
21 --eval "(compile-file #p\"SYS:CONTRIB;ASDF;UIOP.LISP\" \
22 :print nil :output-file (merge-pathnames (parse-native-namestring \"$UIOP_FASL\")))" </dev/null
23 $SBCL --eval "$FROB_READTABLE" \
24 --eval "(compile-file #p\"SYS:CONTRIB;ASDF;ASDF.LISP\" \
25 :print nil :output-file (merge-pathnames (parse-native-namestring \"$ASDF_FASL\")))" </dev/null
26 # if [ -d asdf-upstream ] ; then rm -rf asdf-upstream ; fi FIXME
28 cd $SBCL_TOP
31 build_system () {
32 SYSTEM="$1"
33 MODULE_REQUIRES="$2 $3"
35 export FASL=$DEST/$SYSTEM.fasl
36 export ASD=$DEST/$SYSTEM.asd
38 cd contrib/$SYSTEM
39 $SBCL --load ../make-contrib.lisp "$SYSTEM" $MODULE_REQUIRES </dev/null
41 cd $SBCL_TOP
44 build_asdf
46 build_system sb-posix
47 build_system sb-bsd-sockets
49 build_system sb-introspect
50 build_system sb-cltl2
51 build_system sb-aclrepl
52 build_system sb-sprof
53 if [ -f android-libs/libcapstone.so ]; then
54 build_system sb-capstone
56 build_system sb-rotate-byte
57 build_system sb-md5 sb-rotate-byte
58 build_system sb-executable
59 if [ -f android-libs/libgmp.so ]; then
60 build_system sb-gmp
61 if [ -f android-libs/libmpfr.so ]; then
62 build_system sb-mpfr sb-gmp
65 build_system sb-concurrency
66 build_system sb-queue sb-concurrency
67 build_system sb-rt
68 build_system sb-simple-streams sb-posix sb-bsd-sockets
69 build_system sb-cover sb-md5
70 # build_system sb-simd
71 build_system sb-grovel asdf