Skip to content

Commit

Permalink
Add opam files for cross compilation on OSX and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lefessan committed Sep 17, 2023
1 parent 2368621 commit 3799001
Show file tree
Hide file tree
Showing 21 changed files with 1,200 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Makefile.header
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,5 @@ compile-release:

opam-cross:
drom dep --cross osx
rm -f opam/osx/*vscode*.opam
rm -f opam/osx/*-js-*.opam
drom dep --cross windows
rm -f opam/windows/*vscode*.opam
rm -f opam/windows/*-js-*.opam

57 changes: 57 additions & 0 deletions opam/osx/interop-js-stubs-osx.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# This file was generated by `drom` from `drom.toml`.
# Do not modify, or add to the `skip` field of `drom.toml`.
opam-version: "2.0"
name: "interop-js-stubs"
version: "0.1.0"
license: "MIT"
synopsis: "The superbol-vscode-platform project"
description: """\
This is the description
of the superbol-vscode-platform OCaml project
"""
authors: [
"Fabrice Le Fessant <[email protected]>"
"Emilien Lemaire <[email protected]>"
]
maintainer: [
"Fabrice Le Fessant <[email protected]>"
"Emilien Lemaire <[email protected]>"
]
homepage: "https://ocamlpro.github.io/superbol-vscode-platform"
doc: "https://ocamlpro.github.io/superbol-vscode-platform/sphinx"
bug-reports: "https://github.com/ocamlpro/superbol-vscode-platform/issues"
dev-repo: "git+https://github.com/ocamlpro/superbol-vscode-platform.git"
tags: "org:ocamlpro"
build: [
["dune" "subst"] {dev}
["sh" "-c" "./scripts/before.sh build '%{name}%'"]
[
"dune"
"build"
"-p"
"interop-js-stubs"
"-x"
"osx"
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["sh" "-c" "./scripts/after.sh build '%{name}%'"]
]
install: [
["sh" "-c" "./scripts/before.sh install '%{name}%'"]
]
depends: [
"ocaml" {>= "4.13.0"}
"dune" {>= "2.7.0"}
"js_of_ocaml-osx" {>= "4"}
"gen_js_api-osx" {>= "1.1.1" & < "2.0.0"}
"js_of_ocaml-ppx" {>= "4"}
"ppx_inline_test" {with-test}
"ppx_expect" {with-test}
"odoc" {with-doc}
"ocamlformat" {with-test}
]
# Content of `opam-trailer` field:
60 changes: 60 additions & 0 deletions opam/osx/node-js-stubs-osx.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# This file was generated by `drom` from `drom.toml`.
# Do not modify, or add to the `skip` field of `drom.toml`.
opam-version: "2.0"
name: "node-js-stubs"
version: "0.1.0"
license: "MIT"
synopsis: "The superbol-vscode-platform project"
description: """\
This is the description
of the superbol-vscode-platform OCaml project
"""
authors: [
"Fabrice Le Fessant <[email protected]>"
"Emilien Lemaire <[email protected]>"
]
maintainer: [
"Fabrice Le Fessant <[email protected]>"
"Emilien Lemaire <[email protected]>"
]
homepage: "https://ocamlpro.github.io/superbol-vscode-platform"
doc: "https://ocamlpro.github.io/superbol-vscode-platform/sphinx"
bug-reports: "https://github.com/ocamlpro/superbol-vscode-platform/issues"
dev-repo: "git+https://github.com/ocamlpro/superbol-vscode-platform.git"
tags: "org:ocamlpro"
build: [
["dune" "subst"] {dev}
["sh" "-c" "./scripts/before.sh build '%{name}%'"]
[
"dune"
"build"
"-p"
"node-js-stubs"
"-x"
"osx"
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["sh" "-c" "./scripts/after.sh build '%{name}%'"]
]
install: [
["sh" "-c" "./scripts/before.sh install '%{name}%'"]
]
depends: [
"ocaml" {>= "4.13.0"}
"dune" {>= "2.7.0"}
"promise_jsoo-osx" {>= "0.3.1" & < "1.0.0"}
"jsonoo-osx" {>= "0.2.1" & < "1.0.0"}
"js_of_ocaml-osx" {>= "4"}
"interop-js-stubs-osx" {= version}
"gen_js_api-osx" {>= "1.1.1" & < "2.0.0"}
"js_of_ocaml-ppx" {>= "4"}
"ppx_inline_test" {with-test}
"ppx_expect" {with-test}
"odoc" {with-doc}
"ocamlformat" {with-test}
]
# Content of `opam-trailer` field:
61 changes: 61 additions & 0 deletions opam/osx/polka-js-stubs-osx.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# This file was generated by `drom` from `drom.toml`.
# Do not modify, or add to the `skip` field of `drom.toml`.
opam-version: "2.0"
name: "polka-js-stubs"
version: "0.1.0"
license: "MIT"
synopsis: "The superbol-vscode-platform project"
description: """\
This is the description
of the superbol-vscode-platform OCaml project
"""
authors: [
"Fabrice Le Fessant <[email protected]>"
"Emilien Lemaire <[email protected]>"
]
maintainer: [
"Fabrice Le Fessant <[email protected]>"
"Emilien Lemaire <[email protected]>"
]
homepage: "https://ocamlpro.github.io/superbol-vscode-platform"
doc: "https://ocamlpro.github.io/superbol-vscode-platform/sphinx"
bug-reports: "https://github.com/ocamlpro/superbol-vscode-platform/issues"
dev-repo: "git+https://github.com/ocamlpro/superbol-vscode-platform.git"
tags: "org:ocamlpro"
build: [
["dune" "subst"] {dev}
["sh" "-c" "./scripts/before.sh build '%{name}%'"]
[
"dune"
"build"
"-p"
"polka-js-stubs"
"-x"
"osx"
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["sh" "-c" "./scripts/after.sh build '%{name}%'"]
]
install: [
["sh" "-c" "./scripts/before.sh install '%{name}%'"]
]
depends: [
"ocaml" {>= "4.13.0"}
"dune" {>= "2.7.0"}
"promise_jsoo-osx" {>= "0.3.1" & < "1.0.0"}
"node-js-stubs-osx" {= version}
"jsonoo-osx" {>= "0.2.1" & < "1.0.0"}
"js_of_ocaml-osx" {>= "4"}
"interop-js-stubs-osx" {= version}
"gen_js_api-osx" {>= "1.1.1" & < "2.0.0"}
"js_of_ocaml-ppx" {>= "4"}
"ppx_inline_test" {with-test}
"ppx_expect" {with-test}
"odoc" {with-doc}
"ocamlformat" {with-test}
]
# Content of `opam-trailer` field:
64 changes: 64 additions & 0 deletions opam/osx/superbol-vscode-platform-osx.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# This file was generated by `drom` from `drom.toml`.
# Do not modify, or add to the `skip` field of `drom.toml`.
opam-version: "2.0"
name: "superbol-vscode-platform"
version: "0.1.0"
license: "MIT"
synopsis: "The superbol-vscode-platform project"
description: """\
This is the description
of the superbol-vscode-platform OCaml project
"""
authors: [
"Fabrice Le Fessant <[email protected]>"
"Emilien Lemaire <[email protected]>"
]
maintainer: [
"Fabrice Le Fessant <[email protected]>"
"Emilien Lemaire <[email protected]>"
]
homepage: "https://ocamlpro.github.io/superbol-vscode-platform"
doc: "https://ocamlpro.github.io/superbol-vscode-platform/sphinx"
bug-reports: "https://github.com/ocamlpro/superbol-vscode-platform/issues"
dev-repo: "git+https://github.com/ocamlpro/superbol-vscode-platform.git"
tags: "org:ocamlpro"
build: [
["dune" "subst"] {dev}
["sh" "-c" "./scripts/before.sh build '%{name}%'"]
[
"dune"
"build"
"-p"
"superbol-vscode-platform"
"-x"
"osx"
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["sh" "-c" "./scripts/after.sh build '%{name}%'"]
]
install: [
["sh" "-c" "./scripts/before.sh install '%{name}%'"]
]
depends: [
"ocaml" {>= "4.13.0"}
"dune" {>= "2.7.0"}
"vscode-languageclient-js-stubs-osx" {= version}
"vscode-js-stubs-osx" {= version}
"promise_jsoo-osx" {>= "0.3.1" & < "1.0.0"}
"polka-js-stubs-osx" {= version}
"ocplib_stuff-osx" {>= "0.4.0" & < "1.0.0"}
"node-js-stubs-osx" {= version}
"jsonoo-osx" {>= "0.2.1" & < "1.0.0"}
"js_of_ocaml-osx" {>= "4"}
"gen_js_api-osx" {>= "1.1.1" & < "2.0.0"}
"js_of_ocaml-ppx" {>= "4"}
"ppx_inline_test" {with-test}
"ppx_expect" {with-test}
"odoc" {with-doc}
"ocamlformat" {with-test}
]
# Content of `opam-trailer` field:
62 changes: 62 additions & 0 deletions opam/osx/vscode-debugadapter-osx.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# This file was generated by `drom` from `drom.toml`.
# Do not modify, or add to the `skip` field of `drom.toml`.
opam-version: "2.0"
name: "vscode-debugadapter"
version: "0.1.0"
license: "MIT"
synopsis: "The superbol-vscode-platform project"
description: """\
This is the description
of the superbol-vscode-platform OCaml project
"""
authors: [
"Fabrice Le Fessant <[email protected]>"
"Emilien Lemaire <[email protected]>"
]
maintainer: [
"Fabrice Le Fessant <[email protected]>"
"Emilien Lemaire <[email protected]>"
]
homepage: "https://ocamlpro.github.io/superbol-vscode-platform"
doc: "https://ocamlpro.github.io/superbol-vscode-platform/sphinx"
bug-reports: "https://github.com/ocamlpro/superbol-vscode-platform/issues"
dev-repo: "git+https://github.com/ocamlpro/superbol-vscode-platform.git"
tags: "org:ocamlpro"
build: [
["dune" "subst"] {dev}
["sh" "-c" "./scripts/before.sh build '%{name}%'"]
[
"dune"
"build"
"-p"
"vscode-debugadapter"
"-x"
"osx"
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["sh" "-c" "./scripts/after.sh build '%{name}%'"]
]
install: [
["sh" "-c" "./scripts/before.sh install '%{name}%'"]
]
depends: [
"ocaml" {>= "4.13.0"}
"dune" {>= "2.7.0"}
"vscode-debugprotocol-osx" {= version}
"promise_jsoo-osx" {>= "0.3.1" & < "1.0.0"}
"node-js-stubs-osx" {= version}
"jsonoo-osx" {>= "0.2.1" & < "1.0.0"}
"js_of_ocaml-osx" {>= "4"}
"interop-js-stubs-osx" {= version}
"gen_js_api-osx" {>= "1.1.1" & < "2.0.0"}
"js_of_ocaml-ppx" {>= "3.0"}
"ppx_inline_test" {with-test}
"ppx_expect" {with-test}
"odoc" {with-doc}
"ocamlformat" {with-test}
]
# Content of `opam-trailer` field:
60 changes: 60 additions & 0 deletions opam/osx/vscode-debugprotocol-osx.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# This file was generated by `drom` from `drom.toml`.
# Do not modify, or add to the `skip` field of `drom.toml`.
opam-version: "2.0"
name: "vscode-debugprotocol"
version: "0.1.0"
license: "MIT"
synopsis: "The superbol-vscode-platform project"
description: """\
This is the description
of the superbol-vscode-platform OCaml project
"""
authors: [
"Fabrice Le Fessant <[email protected]>"
"Emilien Lemaire <[email protected]>"
]
maintainer: [
"Fabrice Le Fessant <[email protected]>"
"Emilien Lemaire <[email protected]>"
]
homepage: "https://ocamlpro.github.io/superbol-vscode-platform"
doc: "https://ocamlpro.github.io/superbol-vscode-platform/sphinx"
bug-reports: "https://github.com/ocamlpro/superbol-vscode-platform/issues"
dev-repo: "git+https://github.com/ocamlpro/superbol-vscode-platform.git"
tags: "org:ocamlpro"
build: [
["dune" "subst"] {dev}
["sh" "-c" "./scripts/before.sh build '%{name}%'"]
[
"dune"
"build"
"-p"
"vscode-debugprotocol"
"-x"
"osx"
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["sh" "-c" "./scripts/after.sh build '%{name}%'"]
]
install: [
["sh" "-c" "./scripts/before.sh install '%{name}%'"]
]
depends: [
"ocaml" {>= "4.13.0"}
"dune" {>= "2.7.0"}
"promise_jsoo-osx" {>= "0.3.1" & < "1.0.0"}
"jsonoo-osx" {>= "0.2.1" & < "1.0.0"}
"js_of_ocaml-osx" {>= "4"}
"interop-js-stubs-osx" {= version}
"gen_js_api-osx" {>= "1.1.1" & < "2.0.0"}
"js_of_ocaml-ppx" {>= "3.0"}
"ppx_inline_test" {with-test}
"ppx_expect" {with-test}
"odoc" {with-doc}
"ocamlformat" {with-test}
]
# Content of `opam-trailer` field:
Loading

0 comments on commit 3799001

Please sign in to comment.