File: dune

package info (click to toggle)
ocaml-dune 3.20.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,564 kB
  • sloc: ml: 175,178; asm: 28,570; ansic: 5,251; sh: 1,096; lisp: 625; makefile: 148; python: 125; cpp: 48; javascript: 10
file content (87 lines) | stat: -rw-r--r-- 1,687 bytes parent folder | download
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))