package jbuilder

  1. Overview
  2. Docs
Fast, portable and opinionated build system

Install

Dune Dependency

Authors

Maintainers

Sources

jbuilder-1.0+beta20.1.tbz
sha256=5af70da8fe53d9199a6b48e30ac2f1041f30a27f8bd52282575fdcfeb8f8ba83
md5=a15fbc90091002e7970d49914a984ce2

Description

jbuilder is a build system that was designed to simplify the release of Jane Street packages. It reads metadata from "jbuild" files following a very simple s-expression syntax.

jbuilder is fast, it has very low-overhead and support parallel builds on all platforms. It has no system dependencies, all you need to build jbuilder and packages using jbuilder is OCaml. You don't need or make or bash as long as the packages themselves don't use bash explicitely.

jbuilder supports multi-package development by simply dropping multiple repositories into the same directory.

It also supports multi-context builds, such as building against several opam roots/switches simultaneously. This helps maintaining packages across several versions of OCaml and gives cross-compilation for free.

Published: 02 Dec 2019

README

Dune (Jbuilder) - A composable build system

Jbuilder has been renamed to Dune. A full renaming of the documentation and the tool will be done as part of the 1.0 release.

Jbuilder is a build system designed for OCaml/Reason projects only. It focuses on providing the user with a consistent experience and takes care of most of the low-level details of OCaml compilation. All you have to do is provide a description of your project and Jbuilder will do the rest.

The scheme it implements is inspired from the one used inside Jane Street and adapted to the open source world. It has matured over a long time and is used daily by hundreds of developers, which means that it is highly tested and productive.

Jbuilder comes with a manual. If you want to get started without reading too much, you can look at the quick start guide or watch this introduction video.

The example directory contains examples of projects using jbuilder.

Overview

Jbuilder reads project metadata from jbuild files, which are either static files in a simple S-expression syntax or OCaml scripts. It uses this information to setup build rules, generate configuration files for development tools such as merlin, handle installation, etc...

Jbuilder itself is fast, has very low overhead and supports parallel builds on all platforms. It has no system dependencies: all you need to build jbuilder and packages using jbuilder is OCaml. You don't need make or bash as long as the packages themselves don't use bash explicitly.

Especially, one can install OCaml on Windows with a binary installer and then use only the Windows Console to build Jbuilder and packages using Jbuilder.

Strengths

Composable

Take n repositories that use Jbuilder, arrange them in any way on the file system and the result is still a single repository that Jbuilder knows how to build at once.

This make simultaneous development on multiple packages trivial.

Gracefully handles multi-package repositories

Jbuilder knows how to handle repositories containing several packages. When building via opam, it is able to correctly use libraries that were previously installed even if they are already present in the source tree.

The magic invocation is:

$ jbuilder build --only-packages <package-name> @install

Building against several configurations at once

Jbuilder is able to build a given source code repository against several configurations simultaneously. This helps maintaining packages across several versions of OCaml as you can tests them all at once without hassle.

This feature should make cross-compilation easy, see details in the roadmap.

This feature requires opam.

Jenga bridge

Jenga is another build system for OCaml that has more advanced features such as polling or much better editor integration. Jenga is more powerful and more complex and as a result has many more dependencies. It is planned to implement a small bridge between the two so that a Jbuilder project can build with Jenga using this bridge.

Requirements

Jbuilder requires OCaml version 4.02.3 or greater.

installation

The recommended way to install jbuilder is via the opam package manager:

$ opam install jbuilder

You can also build it manually with:

$ make release
$ make install

Note however that make install requires the opam-installer tool. Running simply make will build jbuilder using the development settings.

If you do not have make, you can do the following:

$ ocaml bootstrap.ml
$ ./boot.exe
$ ./_build/default/bin/main.exe install

Support

If you have questions about jbuilder, you can send an email to ocaml-core@googlegroups.com or open a ticket on github.

Status

Dune is now fairly stable and is used by the majority of packages on opam. The package is still in beta version as we are waiting for the renaming from Jbuilder to Dune before releasing version 1.0.0. Note that Dune will have backward compatiblity with Jbuilder, in particular existing Jbuilder projects will continue to be buildable with Dune. Additionally, Dune will be able to automatically convert a Jbuilder project into a Dune project.

Dependencies (1)

  1. ocaml >= "4.02.3" & < "5.0"

Dev Dependencies

None

  1. ANSITerminal = "0.8"
  2. ago >= "0.4"
  3. aifad < "2.2.1"
  4. amqp-client >= "1.1.0" & < "2.0.3"
  5. angstrom < "0.11.1"
  6. angstrom-async < "0.11.1"
  7. angstrom-lwt-unix < "0.11.1"
  8. angstrom-unix < "0.11.1"
  9. ascii85 >= "0.4"
  10. asl >= "0.11"
  11. atd >= "1.2.1" & < "2.2.1"
  12. atdgen >= "1.10.2" & < "2.2.1"
  13. atdgen-runtime < "2.2.1"
  14. atdj < "2.2.1"
  15. balancer
  16. base64 = "2.2.0"
  17. benchmark = "1.5"
  18. bigstring < "0.3"
  19. bigstringaf < "0.5.0"
  20. binbin
  21. biniou < "1.2.1"
  22. bip32
  23. bisect_ppx < "1.4.0"
  24. bisect_ppx-ocamlbuild
  25. bitstring < "3.1.1"
  26. bst < "6.0.0"
  27. build_path_prefix_map < "0.3"
  28. bun < "0.3.3"
  29. calculon < "0.4"
  30. camlimages < "5.0.2"
  31. camlon < "3.0.0"
  32. camomile < "1.0.2"
  33. capnp < "3.3.0"
  34. caqti < "1.0.0"
  35. caqti-async < "1.0.0"
  36. caqti-driver-postgresql < "1.0.0"
  37. caqti-driver-sqlite3 < "1.0.0"
  38. caqti-dynload < "1.0.0"
  39. caqti-lwt < "1.0.0"
  40. caqti-type-calendar < "1.0.0"
  41. cdrom = "0.9.3"
  42. cfg < "2.2.0"
  43. cfstream < "1.3.1"
  44. checkseum < "0.0.3"
  45. cinaps < "v0.12.0"
  46. cmdtui >= "0.4.3"
  47. cmdtui-lambda-term
  48. cohttp < "1.1.1"
  49. coin < "0.1.1"
  50. color < "0.2.0"
  51. configurator
  52. cow = "2.3.0"
  53. cowabloga < "0.5.0"
  54. cpm = "4.0.0"
  55. cppo < "1.6.6"
  56. cppo_ocamlbuild < "1.6.6"
  57. craml
  58. crc = "2.0.0"
  59. crlibm < "0.3"
  60. crowbar < "0.2"
  61. cryptodbm
  62. csv = "2.0"
  63. csv-lwt < "2.1"
  64. cuid < "0.2"
  65. curly < "0.2.0"
  66. datakit-server < "0.12.2"
  67. datakit-server-9p < "0.12.2"
  68. decoders < "0.1.2"
  69. decoders-ezjsonm < "0.1.2"
  70. decoders-yojson < "0.1.2"
  71. decompress < "0.8.1"
  72. diet < "0.2"
  73. digestif = "0.6.1"
  74. dispatch = "0.4.0"
  75. distributed < "0.6.0"
  76. distributed-lwt < "0.2.0"
  77. distributed-uwt < "0.2.0"
  78. dlm < "0.3.1"
  79. dns-forward
  80. dns-forward-lwt-unix
  81. dnssd
  82. dockerfile-opam < "8.2.7"
  83. dokeysto < "3.0.0"
  84. dokeysto_lz4 < "3.0.0"
  85. dryunit
  86. dtoa >= "0.3.0" & < "0.3.2"
  87. duff < "0.2"
  88. dune-release < "1.0.0"
  89. easy-format >= "1.3.0" & < "1.3.2"
  90. emile < "0.4"
  91. encore < "0.2"
  92. eqaf < "0.2"
  93. exenum >= "0.82.0" & < "0.86"
  94. ezgzip < "0.2.3"
  95. ezjsonm < "1.0.0"
  96. ezxmlm < "1.1.0"
  97. facile >= "1.1.4"
  98. faraday >= "0.3.0" & < "0.7.1"
  99. faraday-async < "0.7.1"
  100. faraday-lwt < "0.7.1"
  101. faraday-lwt-unix < "0.7.1"
  102. fat-filesystem < "0.13.0"
  103. fd-send-recv < "2.0.1"
  104. febusy
  105. fftw3 < "0.8.2"
  106. findlib_top
  107. freetds >= "0.5.2" & < "0.7"
  108. gammu >= "0.9.4"
  109. gdal >= "0.10.0"
  110. gdbprofiler < "0.4"
  111. gen = "0.5.1"
  112. genspio < "0.0.3"
  113. get_line = "4.0.0"
  114. github < "4.0.0"
  115. github-hooks-unix < "0.5.0"
  116. github-jsoo < "4.1.0"
  117. github-unix < "4.0.0"
  118. gnuplot < "0.6"
  119. gpr < "1.4.0"
  120. graphql < "0.8.0"
  121. graphql-async < "0.8.0"
  122. graphql-cohttp < "0.9.0"
  123. graphql-lwt < "0.8.0"
  124. graphql_parser < "0.9.0"
  125. grenier = "0.7"
  126. gsl >= "1.20.0" & < "1.24.0"
  127. hashids < "1.0.1"
  128. hex < "1.3.0"
  129. hidapi < "1.1"
  130. hiredis >= "0.8"
  131. hiredis-value
  132. httpaf < "0.6.0"
  133. httpaf-async < "0.6.0"
  134. hvsock < "2.0.0"
  135. integration1d < "0.5.1"
  136. interval = "1.4"
  137. inuit >= "0.4.1"
  138. ipaddr < "2.9.0"
  139. ipv6-multicast
  140. ipv6-multicast-lwt
  141. irc-client >= "0.6.0" & < "0.6.2"
  142. irc-client-lwt < "0.6.2"
  143. irc-client-tls < "0.6.2"
  144. irc-client-unix < "0.6.2"
  145. jane-street-headers < "v0.12.0"
  146. js_of_ocaml-camlp4
  147. js_of_ocaml-ocamlbuild < "3.5.0"
  148. json-derivers
  149. json_of_jsonm
  150. junit >= "1.0" & < "2.0.1"
  151. junit_alcotest < "2.0.1"
  152. junit_ounit < "2.0.1"
  153. kafka < "0.5"
  154. kicadsch < "0.4.0"
  155. kubecaml
  156. kyotocabinet
  157. lacaml >= "10.0.1" & < "11.0.2"
  158. lambda-term < "2.0"
  159. lambdasoup >= "0.6.2" & < "0.6.4"
  160. lbfgs < "0.9.1"
  161. ldap < "2.4.1"
  162. lens >= "1.2.1" & < "1.2.3"
  163. levenshtein
  164. libsvm = "0.9.4"
  165. linenoise = "1.1.0"
  166. llopt
  167. lwt_camlp4
  168. lwt_glib = "1.1.0"
  169. lwt_log < "1.1.1"
  170. lwt_ppx < "1.2.2"
  171. lwt_react >= "1.1.0" & < "1.1.2"
  172. lwt_ssl < "1.1.3"
  173. magic-mime >= "1.0.1" & < "1.1.1"
  174. markup >= "0.7.6" & < "0.8.0"
  175. mastodon-archive-viewer < "0.2"
  176. mccs < "1.1+5"
  177. mecab
  178. mesh >= "0.8.9" & < "0.9.5"
  179. mesh-display
  180. mesh-easymesh < "0.9.5"
  181. mesh-graphics < "0.9.5"
  182. mesh-triangle < "0.9.5"
  183. milter >= "1.0.4"
  184. minimal
  185. mirage-channel = "3.1.0"
  186. mirage-kv = "1.1.1"
  187. mirage-kv-lwt = "1.1.0"
  188. mirage-net-macosx = "1.4.0"
  189. mock < "0.1.1"
  190. mock-ounit < "0.1.1"
  191. modular-arithmetic
  192. monomorphic = "1.5"
  193. moss < "0.1.1"
  194. msgpck >= "1.3" & < "1.5"
  195. mstruct
  196. multipart-form-data < "0.3.0"
  197. mvar
  198. nonstd >= "0.0.3"
  199. notty_async < "v0.12.0"
  200. npy < "0.0.8"
  201. numalib
  202. obi
  203. oc45
  204. ocal >= "0.1.3" & < "0.2.2"
  205. ocaml-basics >= "0.5.0"
  206. ocaml-compiler-libs < "v0.12.0"
  207. ocaml-logicalform
  208. ocaml-monadic = "0.4.0"
  209. ocaml-r < "0.1.1"
  210. ocaml-top < "1.2.0"
  211. ocaml-version < "3.5.0"
  212. ocp-browser >= "1.1.7" & < "1.1.9"
  213. ocp-index < "1.1.9"
  214. octavius >= "1.1.0" & < "1.2.2"
  215. opaca
  216. opam-ci
  217. opam-client < "2.0.2"
  218. opam-core < "2.0.2"
  219. opam-devel < "2.0.2"
  220. opam-format < "2.0.2"
  221. opam-installer < "2.0.2"
  222. opam-lock
  223. opam-package-upgrade < "0.2"
  224. opam-publish >= "2.0.0" & < "2.0.2"
  225. opam-repository < "2.0.2"
  226. opam-solver < "2.0.2"
  227. opam-state < "2.0.2"
  228. open < "0.2.2"
  229. opium_kernel < "0.17.0"
  230. optimization1d < "0.6.1"
  231. orandforest
  232. oranger < "2.0.1"
  233. orec < "1.0.1"
  234. orsvm_e1071 < "3.0.2"
  235. orxgboost < "1.1.0"
  236. osbx
  237. oseq < "0.2"
  238. owl < "0.4.0"
  239. owl-base < "0.4.0"
  240. owl-top < "0.4.0"
  241. owl-zoo < "0.4.0"
  242. parsexp < "v0.12.0"
  243. partition_map
  244. passmaker
  245. passmakercmd
  246. pcre >= "7.3.0" & < "7.3.5"
  247. pds-reachability = "0.2.2"
  248. pecu < "0.2"
  249. pgx < "1.0"
  250. phantom-algebra < "1.0.1"
  251. phashtbl
  252. pla = "1.2"
  253. postgresql >= "4.1.0" & < "4.4.1"
  254. ppx_blob >= "0.3.0" & < "0.6.0"
  255. ppx_compose < "0.1.0"
  256. ppx_defer = "0.3.0"
  257. ppx_derivers < "1.2.1"
  258. ppx_deriving_madcast < "0.2"
  259. ppx_gen_rec < "1.1.0"
  260. ppx_nanocaml
  261. ppx_pipebang < "v0.12.0"
  262. ppx_regexp < "0.4.0"
  263. ppx_traverse_builtins
  264. ppx_type_conv
  265. ppxfind < "1.3"
  266. prometheus >= "0.2" & < "0.6"
  267. prometheus-app < "0.6"
  268. protocol-9p < "1.0.0"
  269. protocol-9p-tool < "1.0.0"
  270. protocol-9p-unix < "1.0.0"
  271. pumping
  272. qcow < "0.11.0"
  273. qcow-tool < "0.11.0"
  274. qtest = "2.9"
  275. radare2 < "0.0.3"
  276. re >= "1.7.2" & < "1.9.0"
  277. redis < "0.4"
  278. redis-lwt < "0.4"
  279. redis-sync < "0.4"
  280. reed-solomon-erasure < "1.0.2"
  281. res = "5.0.0"
  282. resp-server < "0.9"
  283. rfc1951 < "0.8.1"
  284. root1d = "0.5"
  285. rope < "0.6.2"
  286. safepass = "3.0"
  287. sanddb < "0.2"
  288. secp256k1 >= "0.2.5" & < "0.4.1"
  289. session = "0.4.0"
  290. session-cohttp < "0.4.1"
  291. session-cohttp-async < "0.4.1"
  292. session-cohttp-lwt < "0.4.1"
  293. session-postgresql < "0.4.1"
  294. session-redis-lwt < "0.4.1"
  295. session-webmachine < "0.4.1"
  296. sexplib < "v0.12.0"
  297. sexplib0 < "v0.12.0"
  298. sha = "1.12"
  299. spawn >= "v0.9.0" & < "v0.13.0"
  300. spf
  301. spotlib < "4.1.0"
  302. sqlite3 >= "4.2.0" & < "4.4.1"
  303. srs
  304. ssh-agent < "0.2.0"
  305. sslconf
  306. stdint = "0.5.1"
  307. stringext = "1.5.0"
  308. sugar
  309. swagger < "0.2.0"
  310. telegraml
  311. tiny_json
  312. topkg-jbuilder
  313. touist >= "3.5.0"
  314. traildb
  315. trax < "0.4.0"
  316. treeprint = "2.2.0"
  317. tube < "4.4.0"
  318. tyre >= "0.4" & < "0.5"
  319. unmagic
  320. uri < "2.2.1"
  321. uuuu < "0.1.1"
  322. varint
  323. vcardgen < "1.2"
  324. vecosek
  325. vecosek-engine
  326. vecosek-scene
  327. vhd-format < "0.12.0"
  328. vlq < "0.2.1"
  329. vpnkit
  330. vpt < "5.0.0"
  331. wall < "0.4"
  332. wamp >= "1.2"
  333. wamp-msgpck
  334. wamp-yojson
  335. wcs-api
  336. wcs-lib
  337. weberizer < "0.8"
  338. webmachine >= "0.5.0" & < "0.6.2"
  339. websocket < "2.12"
  340. win-error = "0.3"
  341. win-eventlog = "0.2"
  342. wtf8 < "1.0.2"
  343. xenstore_transport < "1.1.0"
  344. yaml < "1.0.0"
  345. yara < "0.2"
  346. yojson < "1.5.0"
  347. yuscii < "0.2.0"
  348. zed < "2.0.6"
  349. zmq = "5.0.0"
  350. zmq-async < "5.1.0"
  351. zmq-lwt < "5.1.0"

Conflicts

None

OCaml

Innovation. Community. Security.