Skip to content

Commit

Permalink
include LibPoly in build
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomhmpereira committed Apr 25, 2024
1 parent 9a5c9fe commit a3f3d56
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion api/dune
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
(extra_deps ../vendor/cvc5/include/cvc5/cvc5_export.h)
(flags :standard -std=c++17 -I/opt/homebrew/include)
(include_dirs ../vendor/cvc5/include))
(foreign_archives ../cvc5 ../cadical)
(foreign_archives ../cvc5 ../cadical ../picpoly ../picpolyxx)
(c_library_flags :standard -std=c++17 -L/opt/homebrew/lib -lgmp))
37 changes: 19 additions & 18 deletions dune
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
(env
(_
(env-vars
(CMAKE_INCLUDE_PATH "../../cadical/src/:../../libpoly/include/:../../")
(CMAKE_INCLUDE_PATH "../../cadical/src/:../../libpoly/:../../")
(CMAKE_LIBRARY_PATH "../../cadical/build/:../../libpoly/build/src/"))))

(rule
(deps
(source_tree vendor))
(targets libcadical.a libcvc5.a cvc5_export.h)
(targets libpicpolyxx.a libpicpoly.a libcadical.a libcvc5.a cvc5_export.h)
(action
(no-infer
(progn
Expand All @@ -17,24 +17,25 @@
(run ./configure)
(run make -j 4)))
(copy vendor/cadical/build/libcadical.a libcadical.a)
;(chdir
; vendor/libpoly
; (progn
; (run
; cmake
; -B
; build
; -DCMAKE_BUILD_TYPE=$type
; -DCMAKE_INSTALL_PREFIX=$prefix)
; (chdir
; build
; (run make -j 4))))
;(copy vendor/libpoly/build/src/libpicpoly.a libpicpoly.a)
;(copy vendor/libpoly/build/src/libpicpolyxx.a libpicpolyxx.a)
(chdir
vendor/libpoly
(progn
(run
cmake
-B
build
-DCMAKE_BUILD_TYPE=$type
-DCMAKE_INSTALL_PREFIX=$prefix)
(chdir
build
(run make -j 4))
(run mv include poly)))
(copy vendor/libpoly/build/src/libpicpoly.a libpicpoly.a)
(copy vendor/libpoly/build/src/libpicpolyxx.a libpicpolyxx.a)
(chdir
vendor/cvc5
(progn
(run ./configure.sh --static --no-poly)
(run ./configure.sh --static)
(run make -C build -j 4)))
(copy vendor/cvc5/build/src/libcvc5.a libcvc5.a)
(copy vendor/cvc5/build/include/cvc5/cvc5_export.h cvc5_export.h)))))
Expand All @@ -57,7 +58,7 @@
(names cvc5_stubs)
(flags :standard -std=c++17 -I/opt/homebrew/include)
(include_dirs vendor/cvc5/include vendor/cvc5/src vendor/cvc5/src/lib))
(foreign_archives cvc5 cadical)
(foreign_archives cvc5 cadical picpoly picpolyxx)
(c_library_flags :standard -std=c++17 -L/opt/homebrew/lib -lgmp))

(rule
Expand Down

0 comments on commit a3f3d56

Please sign in to comment.