1dune-external-lib-deps(1) Dune Manual dune-external-lib-deps(1)
2
3
4
6 dune-external-lib-deps - Print out external libraries needed to build
7 the given targets.
8
10 dune external-lib-deps [OPTION]... TARGET...
11
13 Print out the external libraries needed to build the given targets.
14
15 The output of jbuild external-lib-deps @install should be included in
16 what is written in your <package>.opam file.
17
19 --build-info
20 Show build information.
21
22 -f, --force
23 Force actions associated to aliases to be re-executed even if their
24 dependencies haven't changed.
25
26 --help[=FMT] (default=auto)
27 Show this help in format FMT. The value FMT must be one of `auto',
28 `pager', `groff' or `plain'. With `auto', the format is `pager` or
29 `plain' whenever the TERM env var is `dumb' or undefined.
30
31 --missing
32 Only print out missing dependencies
33
34 --sexp
35 Produce a s-expression output
36
37 --unstable-by-dir
38 Print dependencies per directory (this feature is currently
39 unstable)
40
41 --version
42 Show version information.
43
44 -w, --watch
45 Instead of terminating build after completion, wait continuously
46 for file changes.
47
49 These options are common to all commands.
50
51 --always-show-command-line
52 Always show the full command lines of programs executed by dune
53
54 --auto-promote
55 Automatically promote files. This is similar to running dune
56 promote after the build.
57
58 --build-dir=FILE (absent DUNE_BUILD_DIR env)
59 Specified build directory. _build if unspecified
60
61 --config-file=FILE
62 Load this configuration file instead of the default one.
63
64 --debug-backtraces
65 Always print exception backtraces.
66
67 --debug-dependency-path
68 In case of error, print the dependency path from the targets on the
69 command line to the rule that failed.
70
71 --debug-findlib
72 Debug the findlib sub-system.
73
74 --default-target=TARGET (absent=@@default)
75 Set the default target that when none is specified to dune build.
76
77 --dev
78 Same as --profile dev
79
80 --diff-command=VAL
81 Shell command to use to diff files. Use - to disable printing the
82 diff.
83
84 --display=MODE
85 Control the display mode of Dune. See dune-config(5) for more
86 details.
87
88 --ignore-promoted-rules
89 Ignore rules with (mode promote), except ones with (only ...). The
90 variable %{ignoring_promoted_rules} in dune files reflects whether
91 this option was passed or not.
92
93 -j JOBS
94 Run no more than JOBS commands simultaneously.
95
96 --no-buffer
97 Do not buffer the output of commands executed by dune. By default
98 dune buffers the output of subcommands, in order to prevent
99 interleaving when multiple commands are executed in parallel.
100 However, this can be an issue when debugging long running tests.
101 With --no-buffer, commands have direct access to the terminal. Note
102 that as a result their output won't be captured in the log file.
103 You should use this option in conjunction with -j 1, to avoid
104 interleaving. Additionally you should use --verbose as well, to
105 make sure that commands are printed before they are being executed.
106
107 --no-config
108 Do not load the configuration file
109
110 --no-print-directory
111 Suppress "Entering directory" messages
112
113 --only-packages=PACKAGES
114 Ignore stanzas referring to a package that is not in PACKAGES.
115 PACKAGES is a comma-separated list of package names. Note that this
116 has the same effect as deleting the relevant stanzas from jbuild
117 files. It is mostly meant for releases. During development, it is
118 likely that what you want instead is to build a particular
119 <package>.install target.
120
121 -p PACKAGES, --for-release-of-packages=PACKAGES
122 Shorthand for --root . --only-packages PACKAGE
123 --ignore-promoted-rules --no-config --profile release. You must use
124 this option in your <package>.opam files, in order to build only
125 what's necessary when your project contains multiple packages as
126 well as getting reproducible builds.
127
128 --profile=VAL (absent DUNE_PROFILE env)
129 Select the build profile, for instance dev or release. The default
130 is dev.
131
132 --root=DIR
133 Use this directory as workspace root instead of guessing it. Note
134 that this option doesn't change the interpretation of targets given
135 on the command line. It is only intended for scripts.
136
137 --store-orig-source-dir (absent DUNE_STORE_ORIG_SOURCE_DIR env)
138 Store original source location in dune-package metadata
139
140 --trace-file=FILE
141 Output trace data in catapult format (compatible with
142 chrome://tracing)
143
144 --verbose
145 Same as --display verbose
146
147 --workspace=FILE (absent DUNE_WORKSPACE env)
148 Use this specific workspace file instead of looking it up.
149
150 -x VAL
151 Cross-compile using this toolchain.
152
154 Use `dune COMMAND --help' for help on a single command.
155
157 These environment variables affect the execution of external-lib-deps:
158
159 DUNE_BUILD_DIR
160 Specified build directory. _build if unspecified
161
162 DUNE_PROFILE
163 Build profile. dev if unspecified or release if -p is set.
164
165 DUNE_STORE_ORIG_SOURCE_DIR
166 Store original source location in dune-package metadata
167
168 DUNE_WORKSPACE
169 Use this specific workspace file instead of looking it up.
170
172 Check bug reports at https://github.com/ocaml/dune/issues
173
174
175
176Dune n/a dune-external-lib-deps(1)