Skip to content

Commit

Permalink
Extract widely used modules to common dune library
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Oct 5, 2023
1 parent 7b76751 commit d723fde
Show file tree
Hide file tree
Showing 34 changed files with 29 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions src/common/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
(include_subdirs no)

(library
(name goblint_common)
(public_name goblint.common)
(wrapped false) ; TODO: wrap
(libraries
batteries
zarith
goblint_std
goblint-cil
fpath
yojson
json-data-encoding
cpu
goblint_timing
goblint_build_info
goblint.sites
qcheck-core.runner)
(flags :standard -open Goblint_std)
(preprocess
(pps
ppx_deriving.std
ppx_deriving_hash
ppx_deriving_yojson
ppx_blob))
(preprocessor_deps (file options.schema.json)))

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(name goblint_lib)
(public_name goblint.lib)
(modules :standard \ goblint mainspec privPrecCompare apronPrecCompare messagesCompare)
(libraries goblint.sites goblint.build-info goblint-cil.all-features batteries.unthreaded qcheck-core.runner sha json-data-encoding jsonrpc cpu arg-complete fpath yaml yaml.unix uuidm goblint_timing catapult goblint_backtrace fileutils goblint_std
(libraries goblint.sites goblint.build-info goblint-cil.all-features batteries.unthreaded qcheck-core.runner sha json-data-encoding jsonrpc cpu arg-complete fpath yaml yaml.unix uuidm goblint_timing catapult goblint_backtrace fileutils goblint_std goblint_common
; Conditionally compile based on whether apron optional dependency is installed or not.
; Alternative dependencies seem like the only way to optionally depend on optional dependencies.
; See: https://dune.readthedocs.io/en/stable/concepts.html#alternative-dependencies.
Expand Down Expand Up @@ -61,7 +61,6 @@
(ocamlopt_flags :standard -no-float-const-prop)
(preprocess
(pps ppx_deriving.std ppx_deriving_hash ppx_deriving_yojson ppx_blob))
(preprocessor_deps (file util/options.schema.json))
(instrumentation (backend bisect_ppx))
)

Expand Down

0 comments on commit d723fde

Please sign in to comment.