OASISFormat:  0.3
Name:         extunix
Version:      0.0.6
License:      LGPL-2.1 with OCaml linking exception
Authors:      ygrek, Sylvain Le Gall, Stéphane Glondu, Kaustuv Chaudhuri, Joshua Smith, Niki Yoshiuchi, Gerd Stolpmann, Goswin von Brederlow, Andre Nathan, Zhenya Lykhovyd
Copyrights:
              (C) 2010 ygrek,
              (C) 2009 Sylvain Le Gall,
              (C) 2008-2009 Talend Inc.,
              (C) 2010 Stéphane Glondu,
              (C) 2005 Joshua Smith,
              (C) 2010 Niki Yoshiuchi,
              (C) 2001 Gerd Stolpmann,
              (C) 2012 Goswin von Brederlow,
              (C) 2012 Andre Nathan,
              (C) 2013 Zhenya Lykhovyd
Homepage:     http://extunix.forge.ocamlcore.org/
BuildTools:   ocamlbuild, camlp4
Plugins:      DevFiles (0.3), META (0.3)

Synopsis: Extended functions for OCaml Unix module 
Description:
  Thin bindings to various low-level system APIs (often non-portable)
  which are not covered by Unix module.
  .
  Some of the implemented functions : uname, statvfs, fsync, fadvise,
    fallocate, openat, dirfd, eventfd, signalfd, setrlimit, mlockall, etc

PostConfCommand: ocaml src/discover.ml -ocamlc $ocamlc -ext_obj $ext_obj
PreDistCleanCommand: $rm $(utoh "src/config.h")
PostDistCleanCommand: $rm $(utoh "src/config.ml") # [FORGE#742]

Flag strict
  Description: Strict compile-time checks
  Default: true

Library extunix
  Path: src/
  Modules: ExtUnix
  InternalModules: ExtUnixAll, ExtUnixSpecific
  if flag(strict) && ccomp_type(cc)
    CCOpt: -std=c89 -pedantic -Wno-long-long -Wextra
  CSources: config.h,
            eventfd.c, dirfd.c, fsync.c, statvfs.c, atfile.c,
            ioctl_siocgifconf.c, uname.c, fadvise.c, fallocate.c,
            tty_ioctl.c, unistd.c, stdlib.c, signalfd.c, ptrace.c,
            resource.c, mman.c, time.c, pts.c, execinfo.c, malloc.c,
            endian.c, read_cred.c, fexecve.c, sendmsg.c,
            memalign.c, endianba.c, pread_pwrite_ba.c, bigarray.c,
            common.c, common.h
  BuildDepends: unix, bigarray

Executable test
  Path: test/
  Install: false
  Build$: flag(tests)
  Custom: true
  CompiledObject: best
  MainIs: test.ml
  BuildDepends: extunix, oUnit (>= 1.0.3)

Executable testba
  Path: test/
  Install: false
  Build$: flag(tests)
  Custom: true
  CompiledObject: best
  MainIs: testba.ml
  BuildDepends: extunix, oUnit (>= 1.0.3)

Test main
  Command: $test && $testba
  TestTools: test, testba

Document api
  Title: API reference for extunix
  Type: ocamlbuild (0.3)
  Authors: ygrek, Sylvain Le Gall, Stéphane Glondu, Kaustuv Chaudhuri, Joshua Smith, Niki Yoshiuchi, Gerd Stolpmann, Goswin von Brederlow, Andre Nathan, Zhenya Lykhovyd
  BuildTools: ocamldoc
  Format: HTML
  Index: index.html
  XOCamlbuildPath:      src/
  XOCamlbuildLibraries: extunix
  XOCamlbuildModules: ExtUnixAll, ExtUnixSpecific

#Document changelog
#  Title: Changelog
#  Path: CHANGES.txt

