1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
(library
(name config)
(synopsis "Coq Configuration Variables")
(public_name coq-core.config)
(modules coq_config)
(wrapped false))
(library
(name byte_config)
(synopsis "Coq Configuration Variables (for bytecode only)")
(public_name coq-core.config.byte)
(modules coq_byte_config)
(wrapped false)
(libraries compiler-libs.toplevel)
(modes byte))
(executable (name list_plugins) (modules list_plugins))
(rule (targets plugin_list)
(deps (source_tree %{project_root}/plugins))
(action (with-stdout-to %{targets} (chdir %{project_root} (run config/list_plugins.exe)))))
; Dune doesn't use configure's output, but it is still necessary for
; some Coq files to work; will be fixed in the future.
(rule
(targets coq_config.ml coq_byte_config.ml coq_config.py dune.c_flags)
(mode fallback)
(deps
%{project_root}/dev/ocamldebug-coq.run
%{project_root}/dev/header.c
; Needed to generate include lists for coq_makefile
plugin_list
(env_var PWD) ; used in the fallback of COQ_CONFIGURE_PREFIX
(env_var COQ_CONFIGURE_PREFIX))
(action (chdir %{project_root} (run %{project_root}/tools/configure/configure.exe -no-ask))))
|