Name: VyConf
Version: 0.1
Synopsis: Appliance configuration framework
Authors: VyOS maintainers <maintainers@vyos.net>
License: LGPL with OCaml linking exception

Description: VyConf
Homepage: http://vyos.net

OASISFormat: 0.4
BuildTools: ocamlbuild
Plugins: META (0.4), DevFiles (0.4)

Library "vyconf"
  Path: src
  Modules: Vytree, Vylist, Value_checker, Vyconf_config
  Install: false

Library "vytree"
  Path: src
  Modules: Vytree
  FindlibParent: vyconf

Library "reference_tree"
  Path: src
  Modules: Reference_tree
  FindlibParent: vyconf
  BuildDepends: xml-light, pcre

Library "config_tree"
  Path: src
  Modules: Config_tree
  FindlibParent: vyconf

Library "value_checker"
  Path: src
  Modules: Value_checker
  FindlibParent: vyconf
  BuildDepends: pcre

Library "util"
  Path: src
  Modules: Util
  FindlibParent: vyconf
  BuildDepends: xml-light

Library "session"
  Path: src
  Modules: Session
  FindlibParent: vyconf

Library "vyconf_config"
  Path: src
  Modules: Vyconf_config
  FindlibParent: vyconf
  BuildDepends: ppx_deriving_yojson

Library "message"
  Path: src
  Modules: Message
  FindlibParent: vyconf
  BuildDepends: ppx_deriving_yojson

Executable "vyconfd"
  Path: src
  MainIs: vyconfd.ml
  CompiledObject: best
  BuildDepends: ppx_deriving.runtime, ppx_deriving_yojson.runtime, lwt, lwt.unix, lwt.ppx, vyconf

Executable "vytree_test"
  Path: test
  MainIs: vytree_test.ml
  Build$: flag(tests)
  CompiledObject: best
  Install: false
  BuildDepends: oUnit, vyconf

Executable "reference_tree_test"
  Path: test
  MainIs: reference_tree_test.ml
  Build$: flag(tests)
  CompiledObject: best
  Install: false
  BuildDepends: oUnit, xml-light, pcre, vyconf

Executable "config_tree_test"
  Path: test
  MainIs: config_tree_test.ml
  Build$: flag(tests)
  CompiledObject: best
  Install: false
  BuildDepends: oUnit, vyconf

Executable "vylist_test"
  Path: test
  MainIs: vylist_test.ml
  Build$: flag(tests)
  CompiledObject: best
  Install: false
  BuildDepends:  oUnit, vyconf

Executable "value_checker_test"
  Path: test
  MainIs: value_checker_test.ml
  Build$: flag(tests)
  CompiledObject: best
  Install: false
  BuildDepends:  oUnit, pcre, vyconf

Executable "util_test"
  Path: test
  MainIs: util_test.ml
  Build$: flag(tests)
  CompiledObject: best
  Install: false
  BuildDepends: oUnit, vyconf, xml-light

Executable "vytree_load_test"
  Path: test
  MainIs: vytree_load_test.ml
  Build$: flag(tests)
  CompiledObject: best
  Install: false
  BuildDepends: vyconf

Test "vytree_test"
  Run$: flag(tests)
  TestTools: vytree_test
  Command: $vytree_test
  WorkingDirectory: test

Test "reference_tree_test"
  Run$: flag(tests)
  TestTools: reference_tree_test
  Command: $reference_tree_test
  WorkingDirectory: test

Test "config_tree_test"
  Run$: flag(tests)
  TestTools: config_tree_test
  Command: $config_tree_test
  WorkingDirectory: test

Test "vylist_test"
  Run$: flag(tests)
  TestTools: vylist_test
  Command: $vylist_test
  WorkingDirectory: test

Test "value_checker_test"
  Run$: flag(tests)
  TestTools: value_checker_test
  Command: $value_checker_test
  WorkingDirectory: test

Test "util_test"
  Run$: flag(tests)
  TestTools: util_test
  Command: $util_test
  WorkingDirectory: test