Skip to content

Commit

Permalink
export header file dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomhmpereira committed Apr 5, 2024
1 parent adfe0b6 commit f4b9d9e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions api/dune
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
(foreign_stubs
(language cxx)
(names build_enums)
(extra_deps ../cvc5_export.h)
(flags :standard -std=c++17 -I/opt/homebrew/include)
(include_dirs
../vendor/cvc5/include))
Expand Down
5 changes: 3 additions & 2 deletions cvc5.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: "OCaml bindings for the CVC5 SMT solver"
description: "OCaml bindings for the CVC5 SMT solver"
synopsis: "OCaml bindings for the cvc5 SMT solver"
description: "OCaml bindings for the cvc5 SMT solver"
maintainer: ["João Pereira <joaomhmpereira@tecnico.ulisboa.pt>"]
authors: ["João Pereira <joaomhmpereira@tecnico.ulisboa.pt>"]
homepage: "https://github.com/formalsec/ocaml-cvc5"
Expand All @@ -12,6 +12,7 @@ depends: [
"conf-gcc" {build}
"conf-g++" {build}
"conf-gmp" {build}
"conf-cmake" {build}
"conf-python-3" {build}
"odoc" {with-doc}
]
Expand Down
2 changes: 1 addition & 1 deletion dune
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
(chdir vendor
(chdir cvc5
(progn
; (run pipx install -r contrib/requirements_build.txt)
(run ./configure.sh --auto-download --static)
(run make -C build -j 4))))
(copy vendor/cvc5/build/src/libcvc5.a libcvc5.a)
(copy vendor/cvc5/build/deps/lib/libcadical.a libcadical.a)
(copy vendor/cvc5/build/deps/lib/libpicpoly.a libpicpoly.a)
(copy vendor/cvc5/build/deps/lib/libpicpolyxx.a libpicpolyxx.a)
(copy vendor/cvc5/build/include/cvc5/cvc5_export.h vendor/cvc5/include/cvc5/cvc5_export.h)
(copy vendor/cvc5/build/include/cvc5/cvc5_export.h cvc5_export.h)))))

(library
Expand Down
5 changes: 3 additions & 2 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@

(package
(name cvc5)
(synopsis "OCaml bindings for the CVC5 SMT solver")
(description "OCaml bindings for the CVC5 SMT solver")
(synopsis "OCaml bindings for the cvc5 SMT solver")
(description "OCaml bindings for the cvc5 SMT solver")
(depends
dune
(ocaml (>= 4.12))
(conf-gcc :build)
(conf-g++ :build)
(conf-gmp :build)
(conf-cmake :build)
(conf-python-3 :build)))

0 comments on commit f4b9d9e

Please sign in to comment.