Skip to content

Commit

Permalink
Merge pull request #115 from nberth/fix-cross-compilation
Browse files Browse the repository at this point in the history
Hack opam files generated for cross-compilation
  • Loading branch information
nberth authored Nov 9, 2023
2 parents 3022bdd + 87648ba commit 74e613f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
10 changes: 10 additions & 0 deletions Makefile.header
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,25 @@ clean-execs:

.PHONY: opam-cross

# Generates opam files for cross-compilation. We don't generate
# specific files for js-only packages. As a result we also forcibly
# remove a dependency to `superbol-vscode-platform` (which is js-only)
# from the platform-specific version of `superbol-studio-oss`. This is
# ok as those files are only there to grab external dependencies
# before cross-compiling.
opam-cross:
drom dep --cross osx
rm -f opam/osx/*-js-*.opam
rm -f opam/osx/vscode-debug*.opam
rm -f opam/osx/*-vscode-*.opam
sed -i '/"superbol-vscode-platform-osx"/ d' \
opam/osx/superbol-studio-oss-osx.opam
drom dep --cross windows
rm -f opam/windows/*-js-*.opam
rm -f opam/windows/vscode-debug*.opam
rm -f opam/windows/*-vscode-*.opam
sed -i '/"superbol-vscode-platform-windows"/ d' \
opam/windows/superbol-studio-oss-windows.opam

# emacs-lsp:
emacs/lsp-superbol-customs.el: $(LSP_MODE_SRCDIR) package.json
Expand Down
1 change: 0 additions & 1 deletion opam/osx/superbol-studio-oss-osx.opam
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ install: [
depends: [
"ocaml" {>= "4.14.0"}
"dune" {>= "2.8.0"}
"superbol-vscode-platform-osx" {= version}
"superbol-free-osx" {= version}
"odoc" {with-doc}
]
Expand Down
1 change: 0 additions & 1 deletion opam/windows/superbol-studio-oss-windows.opam
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ install: [
depends: [
"ocaml" {>= "4.14.0"}
"dune" {>= "2.8.0"}
"superbol-vscode-platform-windows" {= version}
"superbol-free-windows" {= version}
"odoc" {with-doc}
]
Expand Down

0 comments on commit 74e613f

Please sign in to comment.