Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] use dune ctypes stanza support to eliminate boilerplate #114

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ Once you get the REPL prompt, try running `Luv.Env.environ ();;`
You can tell Luv to ignore its vendored libuv, and build against an external one
by setting `LUV_USE_SYSTEM_LIBUV=yes` during the build. This requires libuv to
be findable by `-luv`, `uv.h` to be in the header path, and the Luv version to
be at least 0.5.7.
be at least 0.5.7. Alternatively, to use `pkg-config` to probe for the
appropriate build and link flags, set `LUV_USE_SYSTEM_LIBUV=pkg_config`.

The external libuv can be considerably older than what Luv vendors — at
the moment, Luv supports compilation against libuv versions all the way down to
Expand Down
6 changes: 5 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
(lang dune 2.0)
(lang dune 3.0)

(using ctypes 0.1)

(use_standard_c_and_cxx_flags true)
11 changes: 3 additions & 8 deletions src/c.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
details, or visit https://github.com/aantron/luv/blob/master/LICENSE.md. *)



module Types = Luv_c_types
module Functions =
Luv_c_function_descriptions.Descriptions
(Luv_c_generated_functions.Non_blocking)
module Blocking =
Luv_c_function_descriptions.Blocking
(Luv_c_generated_functions.Blocking)
module Types = Luv_c.C.Types
module Functions = Luv_c.C.Non_blocking
module Blocking = Luv_c.C.Blocking
Loading