Handle non utf8 paths on OCaml side too
[llpp/slowscroll.git] / build.sh
blob9019b5dd5daa9edca847cf1a946387b647f43321
1 srcpath=$(dirname $0)
3 mupdf=/home/malc/x/rcs/git/mupdf
5 mupdflibpath=$mupdf/build/release
6 mupdfincpath=$mupdf/fitz:$mupdf/pdf:$mupdf/xps:$mupdf/cbz
8 cclib="-lfitz"
9 cclib="$cclib -lz -ljpeg -lopenjpeg -ljbig2dec -lfreetype"
10 cclib="$cclib -lX11 -lpthread"
11 ccopt="$(freetype-config --cflags) -O -include ft2build.h -D_GNU_SOURCE"
12 export LIBRARY_PATH=$LIBRARY_PATH:$mupdflibpath
13 export CPATH=$CPATH:$mupdfincpath
15 sh $srcpath/mkhelp.sh $srcpath/keystoml.ml $srcpath/KEYS > help.ml
17 ocamlc -c -o link.o -ccopt "$ccopt" $srcpath/link.c
18 ocamlc -c -o help.cmo help.ml
19 ocamlc -c -o wsi.cmi $srcpath/wsi.mli
20 ocamlc -c -o wsi.cmo $srcpath/wsi.ml
21 ocamlc -c -o parser.cmo $srcpath/parser.ml
22 ocamlc -c -o main.cmo -I +lablGL $srcpath/main.ml
24 ocamlc -custom -o llpp \
25 -I +lablGL \
26 str.cma unix.cma lablgl.cma \
27 link.o \
28 -cclib "$cclib" \
29 help.cmo \
30 parser.cmo \
31 wsi.cmo \
32 main.cmo