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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
(include_subdirs unqualified)
(executable
(name main)
(public_name dune)
(package dune)
(enabled_if
(<> %{profile} dune-bootstrap))
(libraries
memo
promote
ocaml
ocaml_config
dune_lang
predicate_lang
fiber
fiber_event_bus
stdune
dune_console
unix
install
dune_findlib
dune_metrics
dune_digest
dune_cache
dune_cache_storage
dune_graph
dune_rules
dune_vcs
dune_engine
dune_targets
dune_util
dune_upgrader
dune_pkg
cmdliner
threads
; Kept to keep implicit_transitive_deps false working in 4.x
threads.posix
build_info
dune_config
dune_config_file
chrome_trace
dune_stats
csexp
csexp_rpc
dune_rpc_impl
dune_rules_rpc
dune_rpc_private
dune_rpc_client
dune_spawn
opam_format
source
xdg)
(bootstrap_info bootstrap-info))
; Installing the dune binary depends on the kind of build:
; - for bootstrap builds, dune.exe is copied from ../dune.exe
; and installed using a manual install stanza
; - for non-bootstrap builds (building dune with another dune),
; the executable stanza does everything (and attached it to the
; right package, which is important for build-info to succeed)
; but we still need to setup a dummy dune.exe so that profiles
; agree on the targets.
(rule
(enabled_if
(<> %{profile} dune-bootstrap))
(action
(with-stdout-to dune.exe (progn))))
(rule
(action
(copy ../_boot/dune.exe dune.exe))
(enabled_if
(= %{profile} dune-bootstrap)))
(install
(section bin)
(enabled_if
(= %{profile} dune-bootstrap))
(package dune)
(files
(dune.exe as dune)))
(deprecated_library_name
(old_public_name dune.configurator)
(new_public_name dune-configurator))
|