-
Notifications
You must be signed in to change notification settings - Fork 8
/
ocaml-canvas.opam
62 lines (60 loc) · 2.64 KB
/
ocaml-canvas.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
opam-version: "2.0"
name: "ocaml-canvas"
version: "1.0.0"
synopsis: "The OCaml-Canvas library"
description: """
The OCaml-Canvas library provides a portable Canvas for OCaml.
"""
authors: ["David Declerck <[email protected]>"]
maintainer: ["David Declerck <[email protected]>"]
license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
dev-repo: "git+https://github.com/OCamlPro/ocaml-canvas.git"
bug-reports: "https://github.com/OCamlPro/ocaml-canvas/issues"
homepage: "https://ocamlpro.github.io/ocaml-canvas/"
doc: "https://ocamlpro.github.io/ocaml-canvas/sphinx"
depends: [
"ocaml" { >= "4.03" }
"dune" { >= "2.2" }
"dune-configurator" { >= "1.11" }
"react" { >= "1.0" }
"odoc" { >= "1.4" & with-doc }
"conf-freetype" { os != "macos" & os != "win32" }
"conf-libfontconfig" { os != "macos" & os != "win32" }
"conf-xkbcommon" { os != "macos" & os != "win32" }
"conf-libxcb" { os != "macos" & os != "win32" }
"conf-libxcb-shm" { os != "macos" & os != "win32" }
"conf-libxcb-image" { os != "macos" & os != "win32" }
"conf-libxcb-xkb" { os != "macos" & os != "win32" }
"conf-libxcb-keysyms" { os != "macos" & os != "win32" }
]
depopts: [
"js_of_ocaml" { >= "3.6" }
("conf-libwayland" { os != "macos" & os != "win32" } &
"conf-wayland-protocols" { os != "macos" & os != "win32" })
]
post-messages: [
"Javascript support: YES"
{ js_of_ocaml:installed & js_of_ocaml:version >= "3.6" }
"Javascript support: NO (requires js_of_ocaml >= 3.6)"
{ !js_of_ocaml:installed | js_of_ocaml:version < "3.6" }
"Wayland support: YES"
{ conf-libwayland:installed & conf-wayland-protocols:installed }
"Wayland support: NO (requires conf-libwayland, conf-wayland-protocols)"
{ os != "macos" & os != "win32" &
!(conf-libwayland:installed & conf-wayland-protocols:installed) }
"X11 support: YES"
{ conf-libxcb:installed & conf-libxcb-shm:installed &
conf-libxcb-image:installed & conf-libxcb-xkb:installed &
conf-libxcb-keysyms:installed }
"X11 support: NO (requires conf-libxcb, conf-libxcb-shm, conf-libxcb-image, conf-libxcb-xkb, conf-libxcb-keysyms)"
{ os != "macos" & os != "win32" &
!(conf-libxcb:installed & conf-libxcb-shm:installed &
conf-libxcb-image:installed & conf-libxcb-xkb:installed &
conf-libxcb-keysyms:installed) }
]
build: [
["dune" "subst"] { dev }
["sh" "-c" "dune build -p %{name}% @configure --auto-promote || true" ]
["dune" "build" "-p" name "-j" jobs
"@install" "@runtest" { with-test } "@doc" { with-doc }]
]