Skip to content

Commit

Permalink
Get rid of calls to opam when using opam
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Jun 11, 2020
1 parent 9d78d93 commit 419cbe1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 0 additions & 4 deletions lib/cflags.sh

This file was deleted.

10 changes: 8 additions & 2 deletions lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@

(include_subdirs unqualified)

(rule (with-stdout-to cflags.sexp (run ./cflags.sh)))
(rule
(with-stdout-to cflags.sexp
(progn
(echo "(")
(setenv PKG_CONFIG_PATH "%{lib:pkgconfig:}/../pkgconfig"
(run pkg-config --static ocaml-freestanding --cflags))
(echo ")"))))

(install
(section lib)
(files (bindings/mirage-solo5.pc as ../pkgconfig/mirage-solo5.pc)))
(files (bindings/mirage-solo5.pc as ../pkgconfig/mirage-solo5.pc)))

0 comments on commit 419cbe1

Please sign in to comment.