-
-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use (subdir ...) for vendored dependencies
Based on a similar approach in Piaf. See https://github.com/anmonteiro/piaf/blob/9863d1c82403cfddf5a04cfa93bbd10f8357cdfc/vendor/dune Thanks to @anmonteiro for suggesting it.
- Loading branch information
Showing
6 changed files
with
158 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1 @@ | ||
(lang dune 2.7) | ||
(implicit_transitive_deps false) | ||
|
||
; TODO LATER | ||
; Note: implicit_transitive_deps is useful during massive development, but is | ||
; probably best turned off when the project is in a steady state and for | ||
; releases, because of issues like: | ||
; | ||
; https://github.com/ocaml/dune/issues/3569 | ||
; | ||
; This seems like it could cause builds of Dream to break due to packaging | ||
; details changing in upstream deps. Even if this the underlying feature is | ||
; added to the compiler as discussed in the issue, builds of Dream with earlier | ||
; compiler versions will still be threatened. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
(data_only_dirs *) | ||
|
||
|
||
|
||
(subdir gluten/lib | ||
(library | ||
(name gluten) | ||
(public_name dream.gluten) | ||
(libraries | ||
bigstringaf | ||
faraday))) | ||
|
||
(subdir gluten/lwt | ||
(library | ||
(name gluten_lwt) | ||
(public_name dream.gluten-lwt) | ||
(libraries | ||
dream.gluten | ||
lwt))) | ||
|
||
(subdir gluten/lwt-unix | ||
(library | ||
(name gluten_lwt_unix) | ||
(public_name dream.gluten-lwt-unix) | ||
(libraries | ||
faraday-lwt-unix | ||
dream.gluten-lwt | ||
lwt.unix | ||
(select | ||
ssl_io.ml | ||
from | ||
(lwt_ssl -> ssl_io.real.ml) | ||
(-> ssl_io.dummy.ml)) | ||
(select | ||
tls_io.ml | ||
from | ||
(tls.lwt -> tls_io.real.ml) | ||
(-> tls_io.dummy.ml))) | ||
(modules gluten_lwt_unix tls_io ssl_io))) | ||
|
||
|
||
|
||
(subdir websocketaf/lib | ||
(library | ||
(name websocketaf) | ||
(public_name dream.websocketaf) | ||
(libraries | ||
angstrom | ||
base64 | ||
bigstringaf | ||
faraday | ||
dream.gluten | ||
httpaf | ||
result))) | ||
|
||
|
||
|
||
(subdir httpaf/lib | ||
(library | ||
(name httpaf) | ||
(public_name dream.httpaf) | ||
(libraries | ||
angstrom | ||
bigstringaf | ||
faraday | ||
result))) | ||
|
||
(subdir httpaf/lwt | ||
(library | ||
(name httpaf_lwt) | ||
(public_name dream.httpaf-lwt) | ||
(libraries | ||
dream.gluten | ||
dream.gluten-lwt | ||
dream.httpaf | ||
lwt))) | ||
|
||
(subdir httpaf/lwt-unix | ||
(library | ||
(name httpaf_lwt_unix) | ||
(public_name dream.httpaf-lwt-unix) | ||
(libraries | ||
faraday-lwt-unix | ||
dream.gluten-lwt-unix | ||
dream.httpaf | ||
dream.httpaf-lwt | ||
lwt.unix))) | ||
|
||
|
||
|
||
(subdir h2/hpack/util | ||
(executables | ||
(names gen_huffman gen_static) | ||
(libraries | ||
compiler-libs.common))) | ||
|
||
(subdir h2/hpack/src | ||
(library | ||
(name hpack) | ||
(public_name dream.hpack) | ||
(libraries | ||
angstrom | ||
faraday)) | ||
(rule | ||
(targets huffman_table.ml) | ||
(deps ../util/huffman_table.txt) | ||
(action | ||
(with-stdout-to | ||
%{targets} | ||
(run ../util/gen_huffman.exe %{deps}))))) | ||
|
||
(subdir h2/lib | ||
(library | ||
(name h2) | ||
(public_name dream.h2) | ||
(libraries | ||
angstrom | ||
base64 | ||
bigstringaf | ||
faraday | ||
dream.hpack | ||
dream.httpaf | ||
psq | ||
result))) | ||
|
||
(subdir h2/lwt | ||
(library | ||
(name h2_lwt) | ||
(public_name dream.h2-lwt) | ||
(libraries | ||
dream.gluten | ||
dream.gluten-lwt | ||
lwt | ||
dream.h2))) | ||
|
||
(subdir h2/lwt-unix | ||
(library | ||
(name h2_lwt_unix) | ||
(public_name dream.h2-lwt-unix) | ||
(libraries | ||
faraday-lwt-unix | ||
dream.gluten-lwt-unix | ||
dream.h2 | ||
dream.h2-lwt | ||
lwt.unix))) |
Submodule gluten
updated
8 files
+2 −2 | async/dune | |
+0 −0 | async/ssl_io.dummy.ml | |
+0 −0 | async/ssl_io.real.ml | |
+4 −4 | lwt-unix/dune | |
+0 −0 | lwt-unix/ssl_io.dummy.ml | |
+3 −3 | lwt-unix/ssl_io.real.ml | |
+0 −0 | lwt-unix/tls_io.dummy.ml | |
+0 −0 | lwt-unix/tls_io.real.ml |