;; -*- mode: Scheme; -*- (define native-libraries (cond-expand (windows '(-ladvapi32)) (else '()))) (compile -s -O2 -d1 "tweetnacl.scm" "tweetnacl.impl.c" -j tweetnacl ,@native-libraries) (compile -s -O2 -d0 "tweetnacl.import.scm") (cond-expand (enable-static (compile -c -O2 -d1 "tweetnacl.scm" -unit tweetnacl) (compile -c -O2 -d1 "tweetnacl.impl.c")) (else )) (install-extension 'tweetnacl (append '("tweetnacl.so" "tweetnacl.import.so") (cond-expand (enable-static '("tweetnacl.o" "tweetnacl.impl.o")) (else '()))) (append '((version "1.1.0_20140427")) (cond-expand (enable-static `((static "tweetnacl.o" "tweetnacl.impl.o") (static-options ,(string-intersperse native-libraries)))) (else '()))))