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
|
(**************************************************************************)
(* *)
(* Copyright (C) Johannes Kanig, Stephane Lescuyer *)
(* Jean-Christophe Filliatre, Romain Bardou and Francois Bobot *)
(* *)
(* This software is free software; you can redistribute it and/or *)
(* modify it under the terms of the GNU Library General Public *)
(* License version 2.1, with the special exception on linking *)
(* described in file LICENSE. *)
(* *)
(* This software is distributed in the hope that it will be useful, *)
(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)
(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *)
(* *)
(**************************************************************************)
# 16 "version.ml.in"
let version = "@PACKAGE_VERSION@"
let date = "@TODAY@"
let ocamlopt = "@OCAMLOPT@"
let ocamlc = "@OCAMLC@"
let libdir = "@LIBDIR@"
let include_string = "@INCLUDELIBS@"
let cairolib = "@CAIROLIB@"
let bitstringlib = "@BITSTRINGLIB@"
let cairolablgtk2lib = "@CAIROLABLGTK2LIB@"
let lablgtk2lib = "@LABLGTK2LIB@"
let not_cairo = cairolib = ""
let not_bitstring = bitstringlib = ""
(* (contrib_name, (include_list,lib_list)) *)
(* The second second composante is linked in reversed order (cma,cmxa) *)
let append_dir dir suffix =
let dir =
if Filename.check_suffix dir "/"
then Filename.chop_suffix dir "/"
else dir in
dir^suffix
let libraries libdir =
[
"dot", ([append_dir libdir "_dot"],["mlpost_dot"]);
"lablgtk", ([append_dir libdir "_lablgtk";lablgtk2lib;cairolablgtk2lib],
["lablgtk"; "cairo_lablgtk"; "mlpost_lablgtk"; ]);
"cairo", ([cairolib], ["bigarray";"cairo";]);
"bitstring", ([bitstringlib], ["bitstring"]);
"mlpost", ([libdir], ["mlpost"]);
"mlpost_options", ([libdir], [ "mlpost_desc_options";"mlpost_options"]);
"unix" , ([],["unix"])
]
|