OASISFormat: 0.3
Name:        cohttp
Version:     0.11.2
Synopsis:    HTTP library for Lwt, Async and Mirage
Authors:     Anil Madhavapeddy, Stefano Zacchiroli, David Sheets, Thomas Gazagnaire, David Scott, Rudi Grinberg
License:     ISC
Plugins:     META (0.3)
BuildTools:  ocamlbuild

Library cohttp
  Path: cohttp
  Findlibname: cohttp
  Pack: true
  Modules: IO, Code, Header, Cookie, Request, Response, Transfer, Accept, Accept_parser,
           Accept_lexer, Accept_types, Base64, Auth, Header_io, Transfer_io, Client, Connection, Body
  BuildDepends:	re.emacs, stringext ,uri (>= 1.3.13), uri.services, fieldslib, fieldslib.syntax, sexplib, sexplib.syntax

Flag lwt
  Description: build the Lwt library
  Default: false

Flag lwt_unix
  Description: build the Lwt-unix library
  Default: false

Flag async
  Description: build the Core/Async library
  Default: false

Flag nettests
  Description: run the internet-using tests
  Default: false

Library cohttp_lwt
  Build$: flag(lwt)
  Install$: flag(lwt)
  Path: lwt
  Findlibname: lwt-core
  FindlibParent: cohttp
  BuildDepends: lwt, uri, cohttp, lwt.syntax, conduit.lwt
  Modules: Cohttp_lwt_body, Cohttp_lwt

Library cohttp_lwt_unix
  Build$: flag(lwt_unix)
  Install$: flag(lwt_unix)
  Path: lwt
  Findlibname: lwt
  FindlibParent: cohttp
  BuildDepends: cohttp.lwt-core, unix, lwt.unix, lwt.ssl
  Modules: Cohttp_lwt_unix_io, Cohttp_lwt_unix, Cohttp_lwt_unix_net

Library cohttp_async
  Build$: flag(async)
  Install$: flag(async)
  Path: async
  Findlibname: async
  FindlibParent: cohttp
  BuildDepends: uri, cohttp, threads, async, conduit.async
  Modules: Cohttp_async_io, Cohttp_async

Document cohttp
  Title:                Cohttp docs
  Type:                 ocamlbuild (0.3)
  BuildTools+:          ocamldoc
  Install:		true
  XOCamlbuildPath:      cohttp
  XOCamlbuildLibraries: cohttp

Document cohttp_lwt_unix
  Title:                Cohttp Lwt UNIX docs
  Type:                 ocamlbuild (0.3)
  BuildTools+:          ocamldoc
  Build$:               flag(lwt_unix)
  Install:		true
  XOCamlbuildPath:      lwt
  XOCamlbuildLibraries: cohttp.lwt

Document cohttp_async
  Title:                Cohttp Async docs
  Type:                 ocamlbuild (0.3)
  BuildTools+:          ocamldoc
  Build$:               flag(async)
  Install:		true
  XOCamlbuildPath:      async
  XOCamlbuildLibraries: cohttp.async

Executable test_parser
  Path:               lib_test
  MainIs:             test_parser.ml
  Build$:             flag(tests) && flag(lwt_unix)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       cohttp, cohttp.lwt, oUnit (>= 1.0.2)

Executable test_accept
  Path:               lib_test
  MainIs:             test_accept.ml
  Build$:             flag(tests)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       cohttp, oUnit (>= 1.0.2)

Executable test_header
  Path:               lib_test
  MainIs:             test_header.ml
  Build$:             flag(tests)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       cohttp, oUnit (>= 1.0.2)

Executable test_net_lwt
  Path:               lib_test
  MainIs:             test_net_lwt.ml
  Build$:             flag(tests) && flag(lwt_unix)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       cohttp, cohttp.lwt, oUnit (>= 1.0.2)

Executable test_net_lwt_google
  Path:               lib_test
  MainIs:             test_net_lwt_google.ml
  Build$:             flag(tests) && flag(lwt_unix)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       cohttp.lwt

Executable test_net_lwt_lastminute
  Path:               lib_test
  MainIs:             test_net_lwt_lastminute.ml
  Build$:             flag(tests) && flag(lwt_unix)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       cohttp.lwt

Executable test_net_lwt_server
  Path:               lib_test
  MainIs:             test_net_lwt_server.ml
  Build$:             flag(tests) && flag(lwt_unix)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       cohttp, cohttp.lwt

Executable test_net_lwt_multi_get
  Path:               lib_test
  MainIs:             test_net_lwt_multi_get.ml
  Build$:             flag(tests) && flag(lwt_unix)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       cohttp, cohttp.lwt

Executable test_net_lwt_client_and_server
  Path:               lib_test
  MainIs:             test_net_lwt_client_and_server.ml
  Build$:             flag(tests) && flag(lwt_unix)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       cohttp, cohttp.lwt

Executable test_net_async
  Path:               lib_test
  MainIs:             test_net_async.ml
  Build$:             flag(tests) && flag(async)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       cohttp, cohttp.async, oUnit (>= 1.0.2)

Executable test_net_async_http10
  Path:               lib_test
  MainIs:             test_net_async_http10.ml
  Build$:             flag(tests) && flag(async)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       cohttp, cohttp.async, oUnit (>= 1.0.2)

Executable test_net_async_multi_get
  Path:               lib_test
  MainIs:             test_net_async_multi_get.ml
  Build$:             flag(tests) && flag(async)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       cohttp, cohttp.async, oUnit (>= 1.0.2)

Executable test_net_async_server
  Path:               lib_test
  MainIs:             test_net_async_server.ml
  Build$:             flag(tests) && flag(async)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       cohttp, cohttp.async, oUnit (>= 1.0.2)

Executable "cohttp-server-async"
  Path:               bin
  MainIs:             cohttp_server_async.ml
  Build$:             flag(async)
  Custom:             true
  CompiledObject:     best
  Install:            true
  BuildDepends:       cohttp, cohttp.async

Executable "cohttp-server-lwt"
  Path:               bin
  MainIs:             cohttp_server_lwt.ml
  Build$:             flag(lwt) && flag(lwt_unix)
  Custom:             true
  CompiledObject:     best
  Install:            true
  BuildDepends:       cohttp, cohttp.lwt

Executable "async-hello-world"
  Path:               examples/async
  MainIs:             hello_world.ml
  Build$:             flag(async)
  Custom:             true
  CompiledObject:     best
  Install:            false
  BuildDepends:       cohttp, cohttp.async

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

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

Test test_parser
  Run$:               flag(tests) && flag(lwt_unix)
  Command:            $test_parser
  WorkingDirectory:   lib_test

Test test_net_lwt
  Run$:               flag(nettests) && flag(lwt_unix)
  Command:            $test_net_lwt
  WorkingDirectory:   lib_test

Test test_net_async
  Run$:               flag(nettests) && flag(async)
  Command:            $test_net_async
  WorkingDirectory:   lib_test
