#								-*-conf-*-
OASISFormat: 0.4
Name:        csv
Version:     1.7
Synopsis:    A pure OCaml library to read and write CSV files.
Description: This is a pure OCaml library to read and write CSV files, 
  including all extensions used by Excel — e.g. quotes, newlines, 
  8 bit characters in fields, \"0 etc.  A special representation of rows
  of CSV files with a header is provided.  The library comes with a handy
  command line tool called csvtool for handling CSV files from shell scripts.
Authors:     Richard Jones, Christophe Troestler
Maintainers: Christophe Troestler <Christophe.Troestler@umons.ac.be>
Tags:        csv, database, science
License:     LGPL-2.1 with OCaml linking exception
Homepage:    https://github.com/Chris00/ocaml-csv
BugReports:  https://github.com/Chris00/ocaml-csv/issues
Plugins:     META (0.4), StdFiles (0.4)
OCamlVersion: >= 4.00.1
PreConfCommand: ocaml pp.ml

Flag lwt
  Description: Whether the Lwt package is present
  Default: false

Library csv
  Path:       src
  BuildTools: ocamlbuild
  Modules:    Csv
  InternalModules: Csv_utils, Csv_row
  BuildDepends: bytes

Library csv_lwt
  Build$:     flag(lwt)
  Path:       src/lwt
  BuildTools: ocamlbuild
  Modules:    Csv_lwt
#  InternalModules: Csv_utils, Csv_row
  BuildDepends: lwt, bytes, csv
  FindlibName:   lwt
  FindlibParent: csv

Document API
  Title:           API reference for Csv
  Type:            OCamlbuild (0.4)
  InstallDir:      $docdir/api
  BuildTools:      ocamldoc, ocamlbuild
  XOCamlbuildPath: .
  XOCamlbuildLibraries: csv

# Examples
Executable csvtool
  Path:           examples/
  MainIs:         csvtool.ml
  BuildDepends:   csv, unix
  CompiledObject: best
  BuildTools:     ocamlbuild
  Install:        true

Executable example
  Build$:         flag(tests)
  Path:           examples/
  MainIs:         example.ml
  BuildDepends:   csv
  CompiledObject: best
  BuildTools:     ocamlbuild
  Install:        false

# Testing
Executable test
  Build$:         flag(tests)
  Path:           tests/
  MainIs:         test.ml
  BuildDepends:   csv
  CompiledObject: best
  BuildTools:     ocamlbuild
  Install:        false

Test conformity
  WorkingDirectory: tests/
  Command: $test
  Run: true

Executable test_header
  Build$:         flag(tests)
  Path:           tests/
  MainIs:         test_header.ml
  BuildDepends:   csv
  CompiledObject: best
  BuildTools:     ocamlbuild
  Install:        false

Test header
  Command: $test_header
  Run: true

Executable test_write
  Build$:         flag(tests)
  Path:           tests/
  MainIs:         test_write.ml
  BuildDepends:   csv
  CompiledObject: best
  BuildTools:     ocamlbuild
  Install:        false

Test write
  WorkingDirectory: tests/
  Command: $test_write
  Run: true

Executable test_fix
  Build$:         flag(tests)
  Path:           tests/
  MainIs:         test_fix.ml
  BuildDepends:   csv
  CompiledObject: best
  BuildTools:     ocamlbuild
  Install:        false

Test fix
  WorkingDirectory: tests/
  Command: $test_fix
  Run: true

Executable test_lwt
  Build$:         flag(tests) && flag(lwt)
  Path:           tests/
  MainIs:         test_lwt.ml
  BuildDepends:   csv.lwt, lwt.unix
  CompiledObject: best
  BuildTools:     ocamlbuild
  Install:        false

Test lwt
  WorkingDirectory: tests/
  Command: $test_lwt
  Run: true


SourceRepository master
  Type:       git
  Location:   https://github.com/Chris00/ocaml-csv.git
  Browser:    https://github.com/Chris00/ocaml-csv
