Cygport Reference Manual

### TABLE OF CONTENTS

- ocaml-dune.cygclass

- OCAML_DUNE_BUILD_ARGS
- ocaml_dune_compile
- OCAML_DUNE_INSTALL_ARGS
- ocaml_dune_install
- OCAML_DUNE_TEST_TARGETS
- ocaml_dune_test
- src_compile (ocaml-dune)
- src_install (ocaml-dune)
- src_test (ocaml-dune)

## ocaml-dune.cygclass

[ Top ] [ Cygclasses ] [ Cygclasses ]

SYNOPSIS

      inherit ocaml-dune

DESCRIPTION

Dune is a relatively new, and increasingly popular, build system designed for OCaml projects.

This cygclass provides functions for building Dune-based OCaml packages.

INHERITS

ocaml.cygclass

REQUIRES

ocaml-dune

## OCAML_DUNE_BUILD_ARGS

[ Top ] [ ocaml-dune.cygclass ] [ Variables ]

DESCRIPTION

Arguments, usually build targets, to be passed to "dune build" by ocaml_dune_compile.

## ocaml_dune_compile

[ Top ] [ ocaml-dune.cygclass ] [ Compile Functions ]

DESCRIPTION

Runs "dune build", passing OCAML_DUNE_BUILD_ARGS and any given arguments.

## OCAML_DUNE_INSTALL_ARGS

[ Top ] [ ocaml-dune.cygclass ] [ Variables ]

DESCRIPTION

Arguments, usually install targets, to be passed to "dune install" by ocaml_dune_install.

## ocaml_dune_install

[ Top ] [ ocaml-dune.cygclass ] [ Install Functions ]

DESCRIPTION

Runs "dune install" with a destdir of $D.

## OCAML_DUNE_TEST_TARGETS

[ Top ] [ ocaml-dune.cygclass ] [ Variables ]

DESCRIPTION

Arguments, usually test targets, to be passed to "dune runtest" by ocaml_dune_test.

## ocaml_dune_test

[ Top ] [ ocaml-dune.cygclass ] [ Testsuite Functions ]

DESCRIPTION

Runs "dune runtest" with any given test directories.

## src_compile (ocaml-dune)

[ Top ] [ ocaml-dune.cygclass ] [ Overloads ]

DEFINITION

    src_compile() {
            cd ${S}
            ocaml_dune_compile
    }

## src_install (ocaml-dune)

[ Top ] [ ocaml-dune.cygclass ] [ Overloads ]

DEFINITION

    src_install() {
            cd ${S}
            ocaml_dune_install
    }

## src_test (ocaml-dune)

[ Top ] [ ocaml-dune.cygclass ] [ Overloads ]

DEFINITION

    src_test() {
            cd ${S}
            ocaml_dune_test
    }