-
Notifications
You must be signed in to change notification settings - Fork 2
/
dkml-installer-ocaml-network.opam.template
53 lines (48 loc) · 1.94 KB
/
dkml-installer-ocaml-network.opam.template
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
build-env: [
OCAMLRUNPARAM = "b"
]
install: [
# Create the installer executable after `dune install` (which is after
# `build:[]` section) so Dune can do plugin rewriting since Dune edits (yes!)
# the executables.
# The installers will be in $OPAM/share/dkml-installer-ocaml/.
# For the benefit of Windows and macOS we keep the build directory name ("iw")
# small.
[ "install" "-d" "%{_:share}%/w" "%{_:share}%/t" ]
[
"_build/install/default/bin/dkml-installer-ocaml-network-create-installers%{exe}%"
# Debug logs
"-vv"
"--program-version"
"2.1.3"
"--component=ocamlcompiler-network"
"--component=offline-desktop-full"
"--component=offline-opamshim"
# Only Windows, Linux (dockcross manylinux2014) and Darwin Intel which
# corresponds to the build environments of GitHub workflow setup-dkml.yml.
# Later can add Dune cross-compiler to get Darwin ARM64.
"--abi=windows_x86"
"--abi=windows_x86_64"
"--abi=linux_x86"
"--abi=linux_x86_64"
"--abi=darwin_x86_64"
"--abi=darwin_arm64"
"--work-dir"
"%{_:share}%/w"
"--target-dir"
"%{_:share}%/t"
"--runner-admin-exe"
"_build/install/$(dune-context)/bin/dkml-installer-ocaml-network-admin-runner%{exe}%"
"--runner-user-exe"
"_build/install/$(dune-context)/bin/dkml-installer-ocaml-network-user-runner%{exe}%"
# $(dune-context) is a macro for the correct Dune context directory based on the target ABI
"--packager-install-exe"
"_build/install/$(dune-context)/bin/dkml-installer-ocaml-network-package-install%{exe}%"
"--packager-uninstall-exe"
"_build/install/$(dune-context)/bin/dkml-installer-ocaml-network-package-uninstall%{exe}%"
"--packager-setup-bytecode"
"_build/install/$(dune-context)/bin/dkml-installer-ocaml-network-package-setup.bc%{exe}%"
"--packager-uninstaller-bytecode"
"_build/install/$(dune-context)/bin/dkml-installer-ocaml-network-package-uninstaller.bc%{exe}%"
]
]