An open API service indexing awesome lists of open source software.

https://github.com/cedlemo/ocaml-glib2

OCaml bindings to GLib2 based on OCaml Ctypes?
https://github.com/cedlemo/ocaml-glib2

Last synced: 3 months ago
JSON representation

OCaml bindings to GLib2 based on OCaml Ctypes?

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/cedlemo/OCaml-GLib2.svg?branch=master)](https://travis-ci.org/cedlemo/OCaml-GLib2)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![GitHub issues](https://img.shields.io/github/issues/cedlemo/OCaml-GLib2.svg)](https://github.com/cedlemo/OCaml-GLib2/issues)
[![GitHub stars](https://img.shields.io/github/stars/cedlemo/OCaml-GLib2.svg)](https://github.com/cedlemo/OCaml-GLib2/stargazers)

# OCaml-GLib2

Autogenerated OCaml bindings of the GLib2 library based on Ctypes.

## Dependencies

This library relies on the OCaml package gobject-instropection:
```
opam install gobject-introspection
```

and on a bindings generator:

```
opam pin add --yes gi-bindings-generator https://github.com/cedlemo/OCaml-GI-ctypes-bindings-generator.git
```

## Clone and test

The idea is to generate the bindings and to compile the library

```
git clone https://github.com/cedlemo/OCaml-GLib2
cd OCaml-GLib2
dune exec generator/gen.exe
dune run test --profile=release
```