diff --git a/META.bigstring.template b/META.bigstring.template new file mode 100644 index 0000000..fc6c18c --- /dev/null +++ b/META.bigstring.template @@ -0,0 +1 @@ +xen_linkopts = "-lbigstringaf_stubs_xen" diff --git a/bigstringaf.opam b/bigstringaf.opam index 47d75f7..d44bbd2 100644 --- a/bigstringaf.opam +++ b/bigstringaf.opam @@ -17,4 +17,7 @@ depends: [ "alcotest" {test} "base-bigarray" ] +depopts: [ + "mirage-xen-ocaml" +] available: [ ocaml-version >= "4.03.0" ] diff --git a/lib/jbuild b/lib/jbuild index 6ba32dc..02df6dc 100644 --- a/lib/jbuild +++ b/lib/jbuild @@ -12,3 +12,13 @@ (javascript_files (runtime.js)) )) )) + +(rule (copy# bigstringaf_stubs.c bigstringaf_stubs_xen.c)) + +(rule + (with-stdout-to cflags-xen.sexp + (progn + (echo "(") + (run pkg-config pkg-config --static mirage-xen --cflags) + (echo ")") + )))