| 1 |
(library |
| 2 |
(name rocqshim) |
| 3 |
(public_name rocq-runtime.rocqshim) |
| 4 |
(synopsis "Rocq support for finding and exec-ing subcommands") |
| 5 |
(wrapped false) ; no point repeating the Rocqshim name |
| 6 |
(modules rocqshim) |
| 7 |
(libraries boot unix findlib)) |
| 8 |
|
| 9 |
(executable |
| 10 |
(public_name rocq) |
| 11 |
(package rocq-runtime) |
| 12 |
(modules rocq) |
| 13 |
(modes exe byte) |
| 14 |
; we statically link the "small" subcommands instead of having separate binaries |
| 15 |
(libraries rocqshim coqdeplib coqpp coqdoclib rocqwc rocqworkmgr rocqtex rocqmakefile)) |
| 16 |
|
| 17 |
(install |
| 18 |
(section bin) |
| 19 |
(package rocq-runtime) |
| 20 |
(files (rocq.bc as rocq.byte))) |
| 21 |
|
| 22 |
(executable |
| 23 |
(name coqtop_bin) |
| 24 |
(public_name coqtop) |
| 25 |
(package coq-core) |
| 26 |
(modules coqtop_bin) |
| 27 |
(libraries rocqshim)) |
| 28 |
|
| 29 |
(executable |
| 30 |
(name coqtop_byte_bin) |
| 31 |
(public_name coqtop.byte) |
| 32 |
(package coq-core) |
| 33 |
(modules coqtop_byte_bin) |
| 34 |
(libraries rocqshim)) |
| 35 |
|
| 36 |
(executable |
| 37 |
(name coqc_bin) |
| 38 |
(public_name coqc) |
| 39 |
(package coq-core) |
| 40 |
(modules coqc_bin) |
| 41 |
(libraries rocqshim)) |
| 42 |
|
| 43 |
(executable |
| 44 |
(name rocqnative) |
| 45 |
(modules rocqnative) |
| 46 |
(libraries rocq-runtime.kernel) |
| 47 |
(modes exe byte) ; NB byte not installed, just exists for debugger |
| 48 |
(link_flags -linkall)) |
| 49 |
|
| 50 |
(executable |
| 51 |
(name coqnative) |
| 52 |
(public_name coqnative) |
| 53 |
(package coq-core) |
| 54 |
(modules coqnative) |
| 55 |
(libraries rocqshim)) |
| 56 |
|
| 57 |
; Workers |
| 58 |
(executable |
| 59 |
(name rocqworker) |
| 60 |
(modules rocqworker) |
| 61 |
(modes exe byte) |
| 62 |
(libraries rocq-runtime.toplevel)) |
| 63 |
; Adding -ccopt -flto to links options could be interesting, however, |
| 64 |
; it doesn't work on Windows |
| 65 |
|
| 66 |
(executable |
| 67 |
(name rocqworker_with_drop) |
| 68 |
(modules rocqworker_with_drop) |
| 69 |
(modes byte) |
| 70 |
(libraries compiler-libs.toplevel rocq-runtime.config.byte rocq-runtime.toplevel rocq-runtime.dev findlib.top)) |
| 71 |
|
| 72 |
(install |
| 73 |
(section libexec) |
| 74 |
(package rocq-runtime) |
| 75 |
(files |
| 76 |
(rocqworker.exe as rocqworker) |
| 77 |
(rocqworker.bc as rocqworker.byte) |
| 78 |
(rocqworker_with_drop.bc as rocqworker_with_drop) |
| 79 |
(rocqnative.exe as rocqnative))) |