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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
(library
(name dev)
(public_name coq-core.dev)
(synopsis "Coq's Debug Printers")
(wrapped false)
(modules top_printers vm_printers)
(libraries coq-core.toplevel coq-core.plugins.ltac))
(library
(name debugger_support)
(public_name coq-core.debugger_support)
(synopsis "Coq Support for ocamldebug")
(wrapped false)
(modules debugger_support)
(libraries coq-core.dev))
(rule
(targets dune-dbg)
(deps
dune-dbg.in
../checker/coqchk.bc
../topbin/coqc_byte_bin.bc
../topbin/coqnative_bin.bc
../ide/coqide/coqide_main.bc
../tools/coqdep/coqdep.bc
; We require all the OCaml libs to be in place and searchable
; by OCamlfind, this is a bit of a hack but until Dune gets
; proper ocamldebug support we have to live with that.
%{lib:coq-core.config:config.cma}
%{lib:coq-core.clib:clib.cma}
%{lib:coq-core.lib:lib.cma}
%{lib:coq-core.kernel:kernel.cma}
%{lib:coq-core.vm:coqrun.cma}
%{lib:coq-core.vm:../../stublibs/dllcoqrun_stubs.so}
%{lib:coq-core.library:library.cma}
%{lib:coq-core.engine:engine.cma}
%{lib:coq-core.pretyping:pretyping.cma}
%{lib:coq-core.gramlib:gramlib.cma}
%{lib:coq-core.interp:interp.cma}
%{lib:coq-core.proofs:proofs.cma}
%{lib:coq-core.parsing:parsing.cma}
%{lib:coq-core.printing:printing.cma}
%{lib:coq-core.tactics:tactics.cma}
%{lib:coq-core.vernac:vernac.cma}
%{lib:coq-core.stm:stm.cma}
%{lib:coq-core.sysinit:sysinit.cma}
%{lib:coq-core.toplevel:toplevel.cma}
%{lib:coq-core.plugins.ltac:ltac_plugin.cma}
%{lib:coq-core.dev:dev.cma}
%{lib:coq-core.debugger_support:debugger_support.cmi}
%{lib:coq-core.debugger_support:debugger_support.cma}
%{lib:coq-core.debugger_support:../META})
(action (copy dune-dbg.in dune-dbg)))
(alias
(name ml_toplevel_files)
(deps (glob_files ml_toplevel/**)))
(install
(section lib)
(package coq-core)
(files
(ml_toplevel/include as dev/ml_toplevel/include)
(ml_toplevel/include_directories as dev/ml_toplevel/include_directories)
(ml_toplevel/include_printers as dev/ml_toplevel/include_printers)
(ml_toplevel/include_utilities as dev/ml_toplevel/include_utilities)))
; TODO: the above can be written as follow:
; (files (glob_files (ml_toplevel/** with_prefix dev)))
; , but this is only possible with dune language 3.11 or later
|