aboutsummaryrefslogtreecommitdiff
path: root/config/dune
blob: 777201f29f51f472dd17e8b858f403c0bc8d01fd (plain)
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
(library
 (name config)
 (synopsis "Coq Configuration Variables")
 (public_name coq-core.config)
 (modules :standard \ list_plugins)
 (wrapped false))

(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_config.py Makefile dune.c_flags)
 (mode fallback)
 (deps
   %{project_root}/configure.ml
   %{project_root}/dev/ocamldebug-coq.run
   %{project_root}/dev/header.c
   ; Needed to generate include lists for coq_makefile
   plugin_list
  (env_var COQ_CONFIGURE_PREFIX))
 (action (chdir %{project_root} (run %{ocaml} configure.ml -no-ask -native-compiler no -bin-annot))))