Skip to content

Commit

Permalink
Split into 3 opam packages
Browse files Browse the repository at this point in the history
  • Loading branch information
tperami committed Feb 14, 2025
1 parent ce417fc commit 9335476
Show file tree
Hide file tree
Showing 8 changed files with 107 additions and 15 deletions.
2 changes: 1 addition & 1 deletion ArchSem/dune
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
CandidateExecutions
GenPromising
)
(theories SailStdpp ASCommon)
(theories stdpp Hammer RecordUpdate Equations Ltac2 SailStdpp ASCommon)
(coqdoc_flags :standard --utf8
--external https://plv.mpi-sws.org/coqdoc/stdpp/ stdpp
--external ../../Common/ASCommon.html ASCommon
Expand Down
4 changes: 2 additions & 2 deletions ArchSemArm/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(coq.theory
(name ArchSemArm)
(package coq-archsem)
(package coq-archsem-arm)
(modules
SailArmInstTypes
ArmInst
Expand All @@ -13,7 +13,7 @@
VMSA22Arm
VMUMEquivThm
)
(theories ASCommon ArchSem)
(theories stdpp Hammer RecordUpdate Equations Ltac2 SailStdpp ASCommon ArchSem)
(coqdoc_flags :standard --utf8
--external https://plv.mpi-sws.org/coqdoc/stdpp stdpp
--external ../../Common/ASCommon.html ASCommon
Expand Down
2 changes: 1 addition & 1 deletion Common/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(coq.theory
(name ASCommon)
(package coq-archsem)
(package coq-archsem-common)
(modules
Common
CBase
Expand Down
1 change: 0 additions & 1 deletion Extraction/dune
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@

(library
(name Archsem_ocaml) ; TODO might change
(public_name coq-archsem)
(libraries zarith))
38 changes: 38 additions & 0 deletions coq-archsem-arm.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis:
"Coq infrastructure to reason about hardware CPU architecture semantics, Arm instantiation"
maintainer: ["Thibaut Pérami <[email protected]>"]
authors: [
"Thibaut Pérami"
"Zonguyan Liu"
"Nils Lauermann"
"Jean Pichon-Pharabod"
"Brian Campbell"
"Alasdair Armstrong"
"Ben Simner"
"Peter Sewell"
]
license: "BSD-2-Clause"
homepage: "https://github.com/rems-project/archsem"
bug-reports: "https://github.com/rems-project/archsem/issues"
depends: [
"dune" {>= "3.8"}
"coq-archsem"
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/rems-project/archsem.git"
44 changes: 44 additions & 0 deletions coq-archsem-common.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis:
"Common infrastructure and definition for the ArchSem project, includes CDestruct and a free monad library"
maintainer: ["Thibaut Pérami <[email protected]>"]
authors: [
"Thibaut Pérami"
"Zonguyan Liu"
"Nils Lauermann"
"Jean Pichon-Pharabod"
"Brian Campbell"
"Alasdair Armstrong"
"Ben Simner"
"Peter Sewell"
]
license: "BSD-2-Clause"
homepage: "https://github.com/rems-project/archsem"
bug-reports: "https://github.com/rems-project/archsem/issues"
depends: [
"dune" {>= "3.8"}
"coq" {>= "8.19.2"}
"coq-stdlib"
"coq-equations" {>= "1.3"}
"coq-record-update" {>= "0.3.4"}
"coq-hammer-tactics" {>= "1.3.2"}
"coq-stdpp" {= "1.10.0"}
"coq-stdpp-bitvector" {= "1.10.0"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/rems-project/archsem.git"
10 changes: 2 additions & 8 deletions coq-archsem.opam
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis:
"Coq infrastructure to reason about hardware CPU architecture semantics"
"Coq infrastructure to reason about hardware CPU architecture semantics, architecture generic part"
maintainer: ["Thibaut Pérami <[email protected]>"]
authors: [
"Thibaut Pérami"
Expand All @@ -18,13 +18,7 @@ homepage: "https://github.com/rems-project/archsem"
bug-reports: "https://github.com/rems-project/archsem/issues"
depends: [
"dune" {>= "3.8"}
"coq" {>= "8.19.2"}
"coq-stdlib"
"coq-equations" {>= "1.3"}
"coq-record-update" {>= "0.3.4"}
"coq-hammer-tactics" {>= "1.3.2"}
"coq-stdpp" {= "1.10.0"}
"coq-stdpp-bitvector" {= "1.10.0"}
"coq-archsem-common"
"coq-sail-stdpp" {dev}
"odoc" {with-doc}
]
Expand Down
21 changes: 19 additions & 2 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
(maintainers "Thibaut Pérami <[email protected]>")

(package
(name coq-archsem)
(synopsis "Coq infrastructure to reason about hardware CPU architecture semantics")
(name coq-archsem-common)
(synopsis "Common infrastructure and definition for the ArchSem project, includes CDestruct and a free monad library")
(depends
(coq (>= 8.19.2))
coq-stdlib
Expand All @@ -27,8 +27,25 @@
(coq-hammer-tactics (>= 1.3.2))
(coq-stdpp (= 1.10.0))
(coq-stdpp-bitvector (= 1.10.0))
)
)

(package
(name coq-archsem)
(synopsis "Coq infrastructure to reason about hardware CPU architecture semantics, architecture generic part")
(depends
coq-archsem-common ; need same commit
(coq-sail-stdpp :dev) ; See INSTALL.md for the commit number
)
)

(package
(name coq-archsem-arm)
(synopsis "Coq infrastructure to reason about hardware CPU architecture semantics, Arm instantiation")
(depends
coq-archsem
)
)


(generate_opam_files)

0 comments on commit 9335476

Please sign in to comment.