OASISFormat: 0.4
Name:        re
Version:     1.6.1
Synopsis:    Pure OCaml regular expression library
Authors:     Jerome Vouillon, Thomas Gazagnaire, Anil Madhavapeddy
License:     LGPL-2.0 with OCaml linking exception
Plugins:     META (0.4), DevFiles (0.4)
AlphaFeatures: compiled_setup_ml, ocamlbuild_more_args
BuildTools: ocamlbuild
XOCamlbuildExtraArgs: "-cflags '-w +a-40-42-44-3-4-48 -warn-error +1..49'"

Library re
  Path:       lib
  InternalModules: Re_fmt, Re_cset, Re_automata
  Modules: Re
  Findlibname: re
  BuildDepends: bytes

Library re_emacs
  Path: lib
  XMETADescription: Emacs-compatible regexps
  Modules: Re_emacs
  Findlibname: emacs
  FindlibParent: re
  BuildDepends: re

Library re_str
  Path: lib
  XMETADescription: Str-compatible regexps
  Modules: Re_str
  Findlibname: str
  FindlibParent: re
  BuildDepends: re,re.emacs

Library re_posix
  Path: lib
  Modules: Re_posix
  XMETADescription: POSIX-compatible regexps
  Findlibname: posix
  FindlibParent: re
  BuildDepends: re

Library re_glob
  Path: lib
  Modules: Re_glob
  XMETADescription: Shell glob regexps
  Findlibname: glob
  FindlibParent: re
  BuildDepends: re

Library re_perl
  Path: lib
  Modules: Re_perl
  XMETADescription: Perl-compatible regexps
  Findlibname: perl
  FindlibParent: re
  BuildDepends: re

Library re_pcre
  Path: lib
  Modules: Re_pcre
  XMETADescription: subset of PCRE using the Re engine
  Findlibname: pcre
  FindlibParent: re
  BuildDepends: re, re.perl

Library fort_unit
  Path: lib_test
  Build$: flag(tests)
  Modules: Fort_unit
  BuildDepends: oUnit
  Install: false

Executable re_match
  Path:               lib_test
  MainIs:             re_match.ml
  Build$:             flag(tests)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       re

Executable re_test_re
  Path:               lib_test
  MainIs:             test_re.ml
  Build$:             flag(tests)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       re, fort_unit

Executable re_test_perl
  Path:               lib_test
  MainIs:             test_perl.ml
  Build$:             flag(tests)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       re, fort_unit

Executable re_test_emacs
  Path:               lib_test
  MainIs:             test_emacs.ml
  Build$:             flag(tests)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       re, fort_unit

Executable re_test_glob
  Path:               lib_test
  MainIs:             test_glob.ml
  Build$:             flag(tests)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       re, fort_unit

Executable re_test_str
  Path:               lib_test
  MainIs:             test_str.ml
  Build$:             flag(tests)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       re, fort_unit, str

Executable test_pcre
  Path:               lib_test
  MainIs:             test_pcre.ml
  Build$:             flag(tests)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       re, oUnit

Test re_test_re
  Run$:             flag(tests)
  Command:          $re_test_re
  WorkingDirectory: lib_test

Test re_test_perl
  Run$:             flag(tests)
  Command:          $re_test_perl
  WorkingDirectory: lib_test

Test re_test_emacs
  Run$:             flag(tests)
  Command:          $re_test_emacs
  WorkingDirectory: lib_test

Test re_test_easy
  Run$: flag(tests)
  Command: $test_easy
  WorkingDirectory: lib_test

Test re_test_glob
  Run$: flag(tests)
  Command: $re_test_glob
  WorkingDirectory: lib_test

# Test re_test_str
#   Run$:             flag(tests)
#   Command:          $re_test_str
#   WorkingDirectory: lib_test

Executable test_easy
  Path:               lib_test
  MainIs:             test_easy.ml
  Build$:             flag(tests)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       re, oUnit

Test re_match
  Run$:               flag(tests)
  Command:            $re_match
  WorkingDirectory:   lib_test

Test test_pcre
  Run$:             flag(tests)
  Command:          $test_pcre
  WorkingDirectory: lib_test

Document "re-api"
  Title: API reference for Re
  Type: ocamlbuild (0.3)
  Install: true
  InstallDir: $htmldir/api
  BuildTools: ocamldoc
  XOCamlbuildPath: ./lib
  XOCamlbuildLibraries: re, re.emacs, re.glob, re.posix, re.perl, re.str, re.pcre
