package dune

  1. Overview
  2. Docs
Fast, portable and opinionated build system

Install

Dune Dependency

Authors

Maintainers

Sources

dune-1.6.3.tbz
sha256=bfd52160d88578c404af1267abfba6eb4928988e51aef0e92dbebdea1607ae36
md5=1212a36547d25269675d767c38fecf5f

doc/dune.configurator/Configurator/V1/C_define/index.html

Module V1.C_define

module Type : sig ... end
module Value : sig ... end
val import : t -> ?prelude:string -> ?c_flags:string list -> includes:string list -> (string * Type.t) list -> (string * Value.t) list

Import some #define from the given header files. For instance:

  # C.C_define.import c ~includes:"caml/config.h" ["ARCH_SIXTYFOUR", Switch];;
  - (string * Configurator.C_define.Value.t) list = ["ARCH_SIXTYFOUR", Switch true]
val gen_header_file : t -> fname:string -> ?protection_var:string -> (string * Value.t) list -> unit

Generate a C header file containing the following #define. protection_var is used to enclose the file with:

  #ifndef BLAH
  #define BLAH
  ...
  #endif

If not specified, it is inferred from the name given to create and the filename.

OCaml

Innovation. Community. Security.