this repo has no description
1opam-version: "2.0"
2maintainer: "Andi McClure <andi.m.mcclure@gmail.com>"
3authors: "Andi McClure <andi.m.mcclure@gmail.com>"
4homepage: "https://github.com/mcclure/ppx_const"
5bug-reports: "https://github.com/mcclure/ppx_const/issues"
6license: "CC0-1.0+"
7tags: "syntax"
8dev-repo: "git+https://github.com/mcclure/ppx_const.git"
9substs: "pkg/META"
10build: [
11 [
12 "ocaml"
13 "pkg/build.ml"
14 "native=%{ocaml:native}%"
15 "native-dynlink=%{ocaml:native-dynlink}%"
16 ]
17 [
18 "ocamlbuild"
19 "-classic-display"
20 "-use-ocamlfind"
21 "src_test/test_ppx_const.byte"
22 "--"
23 ] {with-test}
24]
25depends: [
26 "ocaml" {>= "4.02.0" & < "4.11"}
27 "ppx_tools" {>= "0.99.1"}
28 "ounit" {with-test}
29 "ocamlfind" {build}
30 "ocamlbuild" {build}
31]
32synopsis: "Compile-time \"if\" statement for conditional inclusion of code."
33description: """
34This is a ppx extension which adds `if#const` and `match#const` constructs to
35OCaml. They behave like normal `if` and `const`, but conditions are evaluated
36at compile time and AST sections not selected are excluded from the program
37completely. In conjunction with ppx_getenv, this can be used for conditional
38compilation of code."""
39url {
40 src: "https://github.com/mcclure/ppx_const/archive/ppx_const-1.1.tar.gz"
41 checksum: [
42 "sha256=882d6ba2b51b5087f74c77f4918a7e79db6e9dc88ff3e0ea365c4d81b1b7d8e2"
43 "md5=53f811ffb931d9b8242ee1ddf9bf4e47"
44 ]
45}