Draw a border around thumbnail
[llpp.git] / build.ninja
blobdd7067c41e5b301d42169d6fa779d56d4a428c93
1 cc = gcc
2 include .config
3 ocamlc = ocamlc.opt
4 ocamlflags = -w a -g
5 libs = -lmupdf $mujs -lpthread -L$mupdf/build/$buildtype
7 cflags =$cflags  -Wall -Werror -I$mupdf/include -I$freetype $
8        -I$mupdf/include -g
10 rule cc
11      deps = gcc
12      depfile = $out.d
13      command = $ocamlc -cc $cc -ccopt "$cflags -MMD -MF $out.d -o $out" -c $in
14      description = cc $out
16 rule ocamlc
17      command = sh $srcdir/doocaml $out $in -c $ocamlflags
18      description = ocamlc $out
20 rule genhelp
21      command = sh $srcdir/mkhelp.sh $srcdir/keystoml.ml $srcdir/KEYS >$out
22      description = genhelp
24 sedcmd = sed -f $srcdir/pp.sed
26 build $builddir/help.ml: genhelp
27 build $builddir/link.o: cc $srcdir/link.c
28       cflags = $cflags -D_GNU_SOURCE -DOBSCURED_OPT -DFFP $
29              -DUSE_FONTCONFIGg
30 build $builddir/help.cmo: ocamlc $builddir/help.ml
31 build $builddir/utils.cmo: ocamlc $srcdir/utils.ml
32 build $builddir/bo.cmo: ocamlc $srcdir/le/bo.ml
33 build $builddir/wsi.cmi: ocamlc $srcdir/wsi.mli
34 build $builddir/wsi.cmo: ocamlc $srcdir/wsi.ml | $
35       $builddir/wsi.cmi $builddir/bo.cmo
36 build $builddir/parser.cmo: ocamlc $srcdir/parser.ml
37 build $builddir/config.cmo: ocamlc $srcdir/config.ml
38       ocamlflags = $ocamlflags -I +lablGL
39 build $builddir/main.cmo: ocamlc $srcdir/main.ml
40       ocamlflags = $ocamlflags -I +lablGL -pp "$sedcmd"
42 cmos = $builddir/help.cmo $
43      $builddir/utils.cmo $
44      $builddir/parser.cmo $
45      $builddir/bo.cmo $
46      $builddir/wsi.cmo $
47      $builddir/config.cmo $
48      $builddir/main.cmo
50 rule linkso
51      command = $cc -o $out -shared $in $libs
52      description = linkso $out
54 build $builddir/link.so: linkso $builddir/link.o
56 rule link
57      command = $ocamlc -custom -g $
58              -cclib "$absbuilddir/link.so $lflags" $
59              -o $out -I +lablGL str.cma unix.cma lablgl.cma $cmos
60      description = link $out
62 build $builddir/llpp: link | $
63       $builddir/help.cmo $
64       $builddir/utils.cmo $
65       $builddir/parser.cmo $
66       $builddir/bo.cmo $
67       $builddir/wsi.cmo $
68       $builddir/config.cmo $
69       $builddir/main.cmo $
70       $builddir/link.so
72 default $builddir/llpp