OASISFormat: 0.3
Name:        gnt
Version:     1.0.0
Synopsis:    Xen grant table bindings
Authors:     John Else
License:     LGPL-2.1 with OCaml linking exception
Plugins:     META (0.3)
BuildTools:  ocamlbuild

Flag xenctrl
  Description:        build Unix userspace bindings
  Default:            false

Library xen_gnt
  CompiledObject:     best
  Path:               lib
  Findlibname:        xen-gnt
  Modules:            Gnt
  ByteOpt:            -bin-annot
  NativeOpt:          -bin-annot
  BuildDepends:       unix, bigarray, io-page, lwt

Library xen_gnt_unix
  Build$:             flag(xenctrl)
  CompiledObject:     best
  Path:               lib
  Findlibparent:      xen_gnt
  Findlibname:        unix
  Modules:            Gnt_dummy # to ensure library is created
  CSources:           gntshr_stubs.c, gnttab_stubs.c
  CCLib:              -L/usr/lib/xen-4.2/lib -lxenctrl
  CCOpt:              -Wno-unused-function -g -ggdb
  BuildDepends:       unix, lwt, lwt.unix, bigarray, io-page.unix

Executable test_gntshr
  Build$:             flag(xenctrl)
  CompiledObject:     best
  Path:               test
  MainIs:             test_gntshr.ml
  Install:            false
  ByteOpt:            -bin-annot
  NativeOpt:          -bin-annot
  BuildDepends:       xen-gnt, xen-gnt.unix, cstruct

Document api
  Title: Grant table bindings' documentation and API reference
  Type: ocamlbuild (0.3)
  BuildTools+: ocamldoc
  XOcamlbuildModules: Gnt
  XOcamlbuildPath: doc
  Install: false
