Skip to content
Snippets Groups Projects
Commit 1818dc92 authored by erwan's avatar erwan
Browse files

Build: use dune instead of oasis

parent 0d6c37e1
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,8 @@ _build/ ...@@ -5,7 +5,8 @@ _build/
*.rif *.rif
*~ *~
#* #*
*.install
.merlin
log log
myocamlbuild.ml myocamlbuild.ml
setup.ml setup.ml
...@@ -25,3 +26,4 @@ linux64/ ...@@ -25,3 +26,4 @@ linux64/
Makefile.local Makefile.local
Makefile.version Makefile.version
bin/ bin/
lib/lutilsVersion.ml
\ No newline at end of file
all:build all:build
PREFIX=$(shell opam config var prefix) PREFIX=$(shell opam config var prefix)
-include ./Makefile.version -include ./Makefile.version
build: setup.data build: lib/lutilsVersion.ml
ocaml setup.ml -build dune build @install
setup.ml:_oasis
oasis setup
setup.data:configure
configure: setup.ml
ocaml setup.ml -configure --prefix $(PREFIX)
install: install:
ocaml setup.ml -install dune install
uninstall:
ocaml setup.ml -uninstall
reinstall:
ocaml setup.ml -reinstall
clean: clean:
ocaml setup.ml -clean dune clean
rm -f setup.data rm -f lib/lutilsVersion.ml
rm -f src/lutilsVersion.ml
distclean:
ocaml setup.ml -distclean
rm -rf _build/src
############################### ###############################
......
...@@ -5,10 +5,10 @@ BRANCH:=$(shell git branch | grep "*" | cut -d ' ' -f 2 || basename `pwd` | echo ...@@ -5,10 +5,10 @@ BRANCH:=$(shell git branch | grep "*" | cut -d ' ' -f 2 || basename `pwd` | echo
VERSION=$(shell git describe --tags || basename `pwd` | cut -d '.' -f2-4) VERSION=$(shell git describe --tags || basename `pwd` | cut -d '.' -f2-4)
del_version: del_version:
rm -f src/lutilsVersion.ml rm -f lib/lutilsVersion.ml
gen_version: del_version src/lutilsVersion.ml gen_version: del_version src/lutilsVersion.ml
src/lutilsVersion.ml: lib/lutilsVersion.ml:
echo "let str=\"$(VERSION)\"" > src/lutilsVersion.ml ; \ echo "let str=\"$(VERSION)\"" > lib/lutilsVersion.ml ; \
echo "let sha=\"$(SHA)\"" >> src/lutilsVersion.ml echo "let sha=\"$(SHA)\"" >> lib/lutilsVersion.ml
OASISFormat: 0.4
Name: lutils
Version: 1.49.5
Authors: Erwan Jahier
Maintainers: erwan.jahier@imag.fr
License: CeCILL
Plugins: DevFiles (0.4), META (0.4)
Synopsis: Tools and libs shared by Verimag/synchronous tools (lustre, lutin, rdbg).
Homepage: https://gricad-gitlab.univ-grenoble-alpes.fr/verimag/synchrone/lutils/
Description:
The gnuplot-rif tool vizualise RIF files using gnuplot.
The lutils library contains various modules shared between tools developped
at Verimag in the synchronous group. Those modules deal with:
- generate and parse RIF files
- generate dro files (to call luciole)
BuildTools: ocamlbuild
PreBuildCommand: make src/lutilsVersion.ml
OCamlVersion: >= 4.02
PostInstallCommand: cp emacs/*.el $prefix/lib/$pkg_name
# A simple data visualiser based on gnuplot
Executable "gnuplot-rif"
Path: src
CompiledObject: native
MainIs: gnuplotRifMain.ml
BuildDepends: unix,str,num
CompiledObject: native
Install: true
Library lutils
XMETADescription: shared by Verimag/synchronous tools (lustre, lutin, rdbg).
Path: src/
BuildDepends: unix,str,num
Modules: RifIO,Data,LocalGenlex,GnuplotRif,Mypervasives,Luciole,LutilsVersion
Install: true
XMETAEnable: true
SourceRepository "master"
Type: git
Location: https://gricad-gitlab.univ-grenoble-alpes.fr/verimag/synchrone/lutils.git
Branch: master
Browser: https://gricad-gitlab.univ-grenoble-alpes.fr/verimag/synchrone/lutils/
File moved
File moved
File moved
(library
(name lutils)
(public_name lutils)
(libraries unix str num)
(wrapped false)
(synopsis "A lib shared by Verimag/synchronous tools (lustre-v6, lutin, rdbg).")
)
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
etc: [
"setup.ml"
"setup.data"
"setup.log"
]
bin: [
"_build/src/gnuplotRifMain.native" {"gnuplot-rif"}
]
opam-version: "2.0"
synopsis: "Tools and libs shared by Verimag/synchronous tools (lustre, lutin, rdbg)."
description: """
The lutils library contains various modules shared between tools developped at
Verimag in the synchronous group. Those modules deal with:
- generate and parse RIF files
- generate dro files (to call luciole)
The gnuplot-rif tool vizualise RIF files using gnuplot.
"""
maintainer: "erwan.jahier@imag.fr"
authors: "Erwan Jahier"
license: "CeCILL"
homepage:
"https://gricad-gitlab.univ-grenoble-alpes.fr/verimag/synchrone/lutils/"
bug-reports:
"https://gricad-gitlab.univ-grenoble-alpes.fr/verimag/synchrone/lutils/"
depends: [
"ocaml" {>= "4.02"}
"base-unix"
"ocamlbuild" {build}
"ocamlfind"
"num"
]
build: [
["ocaml" "setup.ml" "-configure" "--prefix" prefix]
["ocaml" "setup.ml" "-build"]
["ocaml" "setup.ml" "-configure" "--enable-tests"] {with-test}
["ocaml" "setup.ml" "-build"] {with-test}
["ocaml" "setup.ml" "-test"] {with-test}
]
install: ["ocaml" "setup.ml" "-install"]
remove: [
"ocaml" "%{etc}%/lutils/setup.ml" "-C" "%{etc}%/lutils" "-uninstall"
]
post-messages:
"The last version can be obtained via (opam repo add) http://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/opam-repository/"
dev-repo:
"git+https://gricad-gitlab.univ-grenoble-alpes.fr/verimag/synchrone/lutils.git"
opam-version: "1.2"
maintainer: "erwan.jahier@imag.fr"
authors: [ "Erwan Jahier" ]
license: "CeCILL"
homepage: "https://gricad-gitlab.univ-grenoble-alpes.fr/verimag/synchrone/lutils/"
dev-repo: "https://gricad-gitlab.univ-grenoble-alpes.fr/verimag/synchrone/lutils.git"
bug-reports: "https://gricad-gitlab.univ-grenoble-alpes.fr/verimag/synchrone/lutils/"
build: [
["ocaml" "setup.ml" "-configure" "--prefix" prefix]
["ocaml" "setup.ml" "-build"]
]
install: ["ocaml" "setup.ml" "-install"]
remove: [
["ocaml" "%{etc}%/lutils/setup.ml" "-C" "%{etc}%/lutils" "-uninstall"]
]
build-test: [
["ocaml" "setup.ml" "-configure" "--enable-tests"]
["ocaml" "setup.ml" "-build"]
["ocaml" "setup.ml" "-test"]
]
depends: [
"base-unix"
"ocamlbuild" {build}
"ocamlfind"
"num"
]
available: [ ocaml-version >= "4.02" ]
post-messages: ["The last version can be obtained via (opam repo add) http://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/opam-repository/ "]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment