albatross/stats/dune

33 lines
870 B
Plaintext
Raw Normal View History

2019-03-27 23:11:43 +00:00
(* -*- tuareg -*- *)
let freebsd = try Sys.command "uname -s | grep -c FreeBSD > /dev/null" = 0 with _ -> false
let () =
Jbuild_plugin.V1.send @@ Printf.sprintf {|
(library
(name albatross_stats)
(public_name albatross.stats)
2019-10-10 20:26:36 +00:00
(libraries albatross albatross.cli)
2019-03-27 23:11:43 +00:00
(wrapped false)
(c_names albatross_stats_stubs)
(modules albatross_stats_pure))
(executable
(name albatross_stats)
(public_name albatross-stats)
(package albatross)
(modules albatross_stats)
%s
(libraries albatross.cli albatross.stats albatross))
(executable
(name albatross_stat_client)
(public_name albatross-stat-client)
(package albatross)
(modules albatross_stat_client)
%s
(libraries albatross.cli albatross.stats albatross)) |}
(if freebsd then "(link_flags (-ccopt \"-lvmmapi\"))" else "")
(if freebsd then "(link_flags (-ccopt \"-lvmmapi\"))" else "")