diff --git a/bin_byte/dune b/bin_byte/dune new file mode 100644 index 0000000..9bc3027 --- /dev/null +++ b/bin_byte/dune @@ -0,0 +1,12 @@ +(executable + (name test_glfw_byte) + (preprocess (pps lwt_ppx)) + (modes byte) + (public_name test_glfw_byte) + (libraries + lwt + lwt.unix + reglm + EsyGlfwExamples + reglfw + )) diff --git a/bin_byte/test_glfw_byte.re b/bin_byte/test_glfw_byte.re new file mode 100644 index 0000000..2f1dfe9 --- /dev/null +++ b/bin_byte/test_glfw_byte.re @@ -0,0 +1,3 @@ +open EsyGlfwExamples; + +Lwt_main.run(Basic.run()); diff --git a/package.json b/package.json index 9fbb995..54ec645 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,13 @@ ], "install": [ "esy-installer" - ] + ], + "exportedEnv": { + "CAML_LD_LIBRARY_PATH": { + "val": "#{self.lib / 'reason-glfw' : $CAML_LD_LIBRARY_PATH}", + "scope": "global" + } + } }, "peerDependencies": { "ocaml": "^4.6.0"