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