Passage à dune

This commit is contained in:
Matthieu Dubuget 2019-11-03 08:30:46 +01:00
parent 7b4930cf0d
commit e4b72227c4
5 changed files with 16 additions and 17 deletions

11
dune Normal file
View File

@ -0,0 +1,11 @@
(library
(name googleApps)
(public_name ocaml-google-apps)
(libraries gen_js_api)
)
(rule
(targets googleApps.ml)
(deps googleApps.mli)
(action (run %{bin:ocamlfind} gen_js_api/gen_js_api %{deps}))
)

1
dune-project Normal file
View File

@ -0,0 +1 @@
(lang dune 1.0)

13
jbuild
View File

@ -1,13 +0,0 @@
(jbuild_version 1)
(library(
(name googleApps)
(public_name ocaml-google-apps)
(libraries (gen_js_api))
))
(rule(
(targets (googleApps.ml))
(deps (googleApps.mli))
(action (run ${bin:ocamlfind} gen_js_api/gen_js_api ${<}))
))

View File

@ -1,14 +1,14 @@
opam-version: "2.0"
name: "ocaml-google-apps"
version: "0.3"
version: "0.4"
synopsis: "OCaml binding to Google Apps"
description: """
Binding to Google Apps using gen_js_api (https://github.com/LexiFi/gen_js_api):
to be used with js_of_ocaml.
Functions are added/adapted when I need it.
Functions are added/adapted when needed.
"""
maintainer: "Matthieu Dubuget <matthieu.dubuget@gmail.com>"
authors: ["Matthieu Dubuget <matthieu.dubuget@gmail.com>"]
build: [["jbuilder" "build" "-p" name "-j" jobs]]
depends: ["jbuilder" "gen_js_api"]
build: [["dune" "build" "-p" name "-j" jobs]]
depends: ["dune" {build} "gen_js_api"]