Skip to content

Commit

Permalink
Reduce ppx dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbin committed Feb 27, 2024
1 parent fe90870 commit 4ba189a
Show file tree
Hide file tree
Showing 17 changed files with 80 additions and 37 deletions.
4 changes: 1 addition & 3 deletions bin/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
(name main)
(public_name bopkit)
(libraries bopkit_command command-unix-for-opam)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a)
(preprocess
(pps ppx_jane ppx_js_style -check-doc-comments)))
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a))
4 changes: 1 addition & 3 deletions lib/bopkit_process_syntax/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
(name bopkit_process_syntax)
(public_name bopkit.process-syntax)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a -open Core)
(libraries bopkit_process core parsing-utils)
(preprocess
(pps ppx_jane)))
(libraries bopkit_process core parsing-utils))
4 changes: 1 addition & 3 deletions lib/bopkit_syntax/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@
(name bopkit_syntax)
(public_name bopkit.syntax)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a -open Core)
(libraries bopkit core parsing-utils)
(preprocess
(pps ppx_jane)))
(libraries bopkit core parsing-utils))
11 changes: 10 additions & 1 deletion project/digital-watch/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@
(flags -w +a-4-40-42-44-66 -warn-error +a -open Core)
(libraries core command-unix-for-opam graphics threads)
(preprocess
(pps ppx_jane ppx_js_style -check-doc-comments)))
(pps
ppx_compare
ppx_enumerate
ppx_hash
ppx_here
ppx_let
ppx_sexp_conv
ppx_sexp_value
ppx_js_style
-check-doc-comments)))

(rule
(alias digital-watch-simulation)
Expand Down
4 changes: 1 addition & 3 deletions project/subleq/bin/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
(name main)
(public_name subleq)
(libraries command-unix-for-opam subleq_command)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a)
(preprocess
(pps ppx_jane ppx_js_style -check-doc-comments)))
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a))
11 changes: 10 additions & 1 deletion project/subleq/circuit/dune
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@
unix
threads)
(preprocess
(pps ppx_jane ppx_js_style -check-doc-comments)))
(pps
ppx_compare
ppx_enumerate
ppx_hash
ppx_here
ppx_let
ppx_sexp_conv
ppx_sexp_value
ppx_js_style
-check-doc-comments)))

(rule
(alias subleq-simulation)
Expand Down
4 changes: 1 addition & 3 deletions project/visa/bin/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
(names visa)
(public_names visa)
(libraries command-unix-for-opam visa_command)
(flags -w +a-4-40-42-44-66 -warn-error +a)
(preprocess
(pps ppx_jane ppx_js_style -check-doc-comments)))
(flags -w +a-4-40-42-44-66 -warn-error +a))
11 changes: 10 additions & 1 deletion project/visa/circuit/dune
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,16 @@
(flags -w +a-4-40-42-44-66 -warn-error +a -open Core)
(libraries command-unix-for-opam core unix threads bopkit_block)
(preprocess
(pps ppx_jane ppx_js_style -check-doc-comments)))
(pps
ppx_compare
ppx_enumerate
ppx_hash
ppx_here
ppx_let
ppx_sexp_conv
ppx_sexp_value
ppx_js_style
-check-doc-comments)))

(cram
(deps
Expand Down
4 changes: 1 addition & 3 deletions project/visa/lib/visa_debugger/bin/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
(names main)
(public_names visa-debugger)
(libraries command-unix-for-opam visa_debugger)
(flags -w +a-4-40-42-44-66 -warn-error +a)
(preprocess
(pps ppx_jane ppx_js_style -check-doc-comments)))
(flags -w +a-4-40-42-44-66 -warn-error +a))
4 changes: 1 addition & 3 deletions project/visa/lib/visa_syntax/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
(name visa_syntax)
(public_name bopkit.visa-syntax)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a -open Core)
(libraries core parsing-utils visa)
(preprocess
(pps ppx_jane)))
(libraries core parsing-utils visa))
11 changes: 10 additions & 1 deletion stdlib/7-segment/bin/dune
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@
graphics
threads)
(preprocess
(pps ppx_jane ppx_js_style -check-doc-comments)))
(pps
ppx_compare
ppx_enumerate
ppx_hash
ppx_here
ppx_let
ppx_sexp_conv
ppx_sexp_value
ppx_js_style
-check-doc-comments)))

(install
(section
Expand Down
4 changes: 1 addition & 3 deletions stdlib/bopboard/bin/dune
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
(executables
(names main)
(flags -w +a-40-42-44-66 -warn-error +a)
(libraries command-unix-for-opam bopboard)
(preprocess
(pps ppx_jane ppx_js_style -check-doc-comments)))
(libraries command-unix-for-opam bopboard))

(install
(section
Expand Down
4 changes: 1 addition & 3 deletions stdlib/counter/bin/dune
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
(executables
(names counter)
(libraries command-unix-for-opam bopkit_counter)
(preprocess
(pps ppx_jane ppx_js_style -check-doc-comments)))
(libraries command-unix-for-opam bopkit_counter))

(install
(section
Expand Down
11 changes: 10 additions & 1 deletion stdlib/memories/bin/dune
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@
unix
threads)
(preprocess
(pps ppx_jane ppx_js_style -check-doc-comments)))
(pps
ppx_compare
ppx_enumerate
ppx_hash
ppx_here
ppx_let
ppx_sexp_conv
ppx_sexp_value
ppx_js_style
-check-doc-comments)))

(install
(section
Expand Down
4 changes: 1 addition & 3 deletions stdlib/pulse/bin/dune
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
(executables
(names pulse)
(libraries command-unix-for-opam bopkit_pulse)
(preprocess
(pps ppx_jane ppx_js_style -check-doc-comments)))
(libraries command-unix-for-opam bopkit_pulse))

(install
(section
Expand Down
11 changes: 10 additions & 1 deletion test/bop2c/gen-dune/dune
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,13 @@
eio_main
parsing-utils)
(preprocess
(pps ppx_jane ppx_js_style -check-doc-comments)))
(pps
ppx_compare
ppx_enumerate
ppx_hash
ppx_here
ppx_let
ppx_sexp_conv
ppx_sexp_value
ppx_js_style
-check-doc-comments)))
11 changes: 10 additions & 1 deletion tutorial/bdd/division/dune
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@
(flags -w +a-4-40-41-42-44-66 -warn-error +a -open Core)
(libraries core graphics unix threads bopkit_block)
(preprocess
(pps ppx_jane ppx_js_style -check-doc-comments)))
(pps
ppx_compare
ppx_enumerate
ppx_hash
ppx_here
ppx_let
ppx_sexp_conv
ppx_sexp_value
ppx_js_style
-check-doc-comments)))

(rule
(deps
Expand Down

0 comments on commit 4ba189a

Please sign in to comment.