| 1 |
(library |
| 2 |
(name config) |
| 3 |
(synopsis "Rocq Configuration Variables") |
| 4 |
(public_name rocq-runtime.config) |
| 5 |
(modules coq_config) |
| 6 |
(wrapped false)) |
| 7 |
|
| 8 |
(library |
| 9 |
(name byte_config) |
| 10 |
(synopsis "Rocq Configuration Variables (for bytecode only)") |
| 11 |
(public_name rocq-runtime.config.byte) |
| 12 |
(modules coq_byte_config) |
| 13 |
(wrapped false) |
| 14 |
(libraries compiler-libs.toplevel) |
| 15 |
(modes byte)) |
| 16 |
|
| 17 |
(executable (name list_plugins) (modules list_plugins)) |
| 18 |
(rule (targets plugin_list) |
| 19 |
(deps (source_tree %{project_root}/plugins)) |
| 20 |
(action (with-stdout-to %{targets} (chdir %{project_root} (run config/list_plugins.exe))))) |
| 21 |
|
| 22 |
; add "-native-compiler yes" to the arguments of configure to enable native |
| 23 |
(rule |
| 24 |
(targets coq_config.ml coq_byte_config.ml coq_config.py dune.c_flags) |
| 25 |
(mode fallback) |
| 26 |
(deps |
| 27 |
%{project_root}/dev/ocamldebug-coq.run |
| 28 |
%{project_root}/dev/header.c |
| 29 |
; Needed to generate include lists for coq_makefile |
| 30 |
plugin_list) |
| 31 |
(action (chdir %{project_root} (run %{project_root}/tools/configure/configure.exe -quiet -relocatable)))) |