OASISFormat: 0.3
Name:        passwd
Version:     0.9.3
Synopsis:    OCaml interface to Unix password library
Authors:     Mike McClurg
License:     ISC
LicenseFile: LICENSE
Plugins:     META (0.3)
BuildTools:  ocamlbuild

Flag extra_debugging
  Default:     false
  Description: Build ocaml-opasswd with debugging

Library oPasswd
  Path:         lib
  FindlibName:  oPasswd
  Pack:         true
  Modules:      Passwd, Shadow, Common
  BuildDepends: unix, ctypes, ctypes.foreign
  ByteOpt:      -warn-error +a -bin-annot -short-paths
  if flag(extra_debugging)
    ByteOpt+:   -g -runtime-variant d -verbose
  NativeOpt:    -warn-error +a -bin-annot -short-paths
  if flag(extra_debugging)
    NativeOpt+: -g -runtime-variant d -verbose

Executable opasswd_test
  Path:           test
  BuildTools:     ocamlbuild
  MainIs:         opasswd_test.ml
  BuildDepends:   oPasswd
  NativeOpt:      -warn-error +a -bin-annot -short-paths
  if flag(extra_debugging)
    NativeOpt+:   -g -runtime-variant d -verbose
  CompiledObject: best
  Install:        false

Test opasswd_test
  Command: sudo _build/test/opasswd_test.native
