opam-version: "2.0" maintainer: "Andi McClure " authors: "Andi McClure " 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 an `if#const` construct to OCaml. It behaves like normal `if`, but the condition is evaluated at compile time and the AST section not selected is 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.0.tar.gz" checksum: [ "sha256=86bae9587a974199397459f0b08a5affd1d260a2f65c0e0f80308cdd58eba20d" "md5=c1351efbb013eb656b0202ed021ee42b" ] }