-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathlablqml.opam
36 lines (32 loc) · 1.74 KB
/
lablqml.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
opam-version: "2.0"
maintainer: "kakadu.hafanana@gmail.com"
authors: "kakadu.hafanana@gmail.com"
synopsis: "OCamlfind package and PPX extension to interface OCaml and QtQuick"
description: "Versions <= 0.4 are known as `lablqt`, >0.5 -- as `lablqml`."
homepage: "http://kakadu.github.io/lablqml/"
bug-reports: "https://github.com/kakadu/lablqml/issues"
dev-repo: "git+https://github.com/Kakadu/lablqml.git"
tags: [ "gui" "ui" "qt" ]
# TODO: hack build-env field https://opam.ocaml.org/doc/Manual.html#opamfield-build-env
build: [
["sh" "-exc" "PATH=/usr/lib64/qt5/bin:/usr/lib/qt5/bin:$PATH ./configure"] { os-distribution = "alpine" | os-distribution = "centos" | os-distribution = "fedora" }
["sh" "-exc" "PATH=/usr/lib64/qt5/bin:/usr/lib/qt5/bin:$PATH dune build -p lablqml" ] { os-distribution = "alpine" | os-distribution = "centos" | os-distribution = "fedora" }
["sh" "-exc" "PATH=/usr/lib64/qt5/bin:/usr/lib/qt5/bin:$PATH make demos" ] { (os-distribution = "alpine" | os-distribution = "centos" | os-distribution = "fedora") & with-test }
["./configure"] { os-distribution != "alpine" & os-distribution != "centos" & os-distribution != "fedora" }
["dune" "build" "-p" name "-j" jobs]
{ os-distribution != "alpine" & os-distribution != "centos" & os-distribution != "fedora" }
[make "demos"] { with-test & os-distribution != "alpine" & os-distribution != "centos" & os-distribution != "fedora" }
]
depends: [
"ocaml" { >= "4.03.0" }
"ocamlfind"
"dune" { >= "2.0.0" }
"dune-configurator"
"stdio"
"ppxlib" { >= "0.20.0" }
"conf-qt" { >= "5.2.1" & build }
"conf-pkg-config" { build }
"ppx_show"
"ppx_inline_test"
"ppx_string_interpolation"
]