Skip to content

Commit

Permalink
Extract library specificaton to goblint_library dune library
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Dec 7, 2023
1 parent deb727b commit 9261b71
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion 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 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 goblint_config goblint_common goblint_domain goblint_incremental goblint_tracing
(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_config goblint_common goblint_domain goblint_library goblint_incremental goblint_tracing
; 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
3 changes: 3 additions & 0 deletions src/index.mld
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ This {{!page-common}unwrapped library} contains various common modules extracted
{2 Library goblint.domain}
This {{!page-domain}unwrapped library} contains various domain modules extracted from {!Goblint_lib}.

{2 Library goblint.library}
This {{!page-library}unwrapped library} contains various library specification modules extracted from {!Goblint_lib}.

{2 Library goblint.incremental}
This {{!page-incremental}unwrapped library} contains various incremental modules extracted from {!Goblint_lib}.

Expand Down
File renamed without changes.
18 changes: 18 additions & 0 deletions src/util/library/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
(include_subdirs no)

(library
(name goblint_library)
(public_name goblint.library)
(wrapped false) ; TODO: wrap
(libraries
batteries.unthreaded
goblint_common
goblint_domain
goblint_config
goblint-cil)
(preprocess
(pps
ppx_deriving.std
ppx_deriving_hash)))

(documentation)
14 changes: 14 additions & 0 deletions src/util/library/library.mld
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{0 Library goblint.library}
This library is unwrapped and provides the following top-level modules.
For better context, see {!Goblint_lib} which also documents these modules.


{1 Utilities}

{2 Library specification}
{!modules:
AccessKind
LibraryDesc
LibraryDsl
LibraryFunctions
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9261b71

Please sign in to comment.