Skip to content

Commit

Permalink
Be safe to use our OPAM files into orb (no usage of opam inside our s…
Browse files Browse the repository at this point in the history
…cripts)
  • Loading branch information
dinosaure committed Dec 31, 2023
1 parent 0b44abb commit e3b03b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
10 changes: 7 additions & 3 deletions com.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ license: "MIT"
synopsis: "A peer-to-peer file-transfer tool"

build: [
[ "dune" "build" "-x" "x86_64-esperanto" "-p" name "bin/bob.exe" "-j" jobs ]
[ "dune" "build" "-x" "aarch64-esperanto" "-p" name "bin/bob.exe" "-j" jobs ]
[ "sh" "link.sh" ]
[ "dune" "build" "-x" "x86_64_esperanto" "-p" name "bin/bob.exe" "-j" jobs ]
[ "dune" "build" "-x" "aarch64_esperanto" "-p" name "bin/bob.exe" "-j" jobs ]
[ "sh" "-c" "apelink -o bob.com -l %{bin}%/ape-x86_64.elf -l %{bin}%/ape-aarch64.elf -M %{bin}%/ape-m1.c _build/default.x86_64_esperanto/bin/bob.exe.dbg _build/default.aarch64_esperanto/bin/bob.exe.dbg" ]
]
run-test: [ "dune" "runtest" "-p" name "-j" jobs ]

install: [
[ "cp" "bob.com" "%{bin}%/bob.com" ]
]

depends: [
"ocaml" { build & >= "4.13.0" & < "5.0.0" }
"dune" { >= "3.3.0" }
Expand Down
6 changes: 0 additions & 6 deletions link.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,3 @@ opam exec -- apelink \
-M $(opam var bin)/ape-m1.c \
_build/default.x86_64_esperanto/bin/bob.exe.dbg \
_build/default.aarch64_esperanto/bin/bob.exe.dbg

cat >com.install <<EOF
bin: [
"bob.com"
]
EOF

0 comments on commit e3b03b7

Please sign in to comment.