Skip to content

Various changes for building with dune #674

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

Merged
merged 9 commits into from
Mar 12, 2022
27 changes: 13 additions & 14 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

(license GPL-3.0-or-later)

(maintainers "maintainers")
(maintainers "[email protected]")

(authors "Trevor Jim, Benjamin C. Pierce and J\195\169r\195\180me Vouillon")
(authors "Trevor Jim" "Benjamin C. Pierce" "J\195\169r\195\180me Vouillon")

(source
(github bcpierce00/unison))
Expand All @@ -22,8 +22,8 @@
(package
(name unison)
(synopsis "File-synchronization tool for Unix and Windows")
(description "
Text based userinterface for Unison.
(description "\
Text based user interface for Unison.

Unison is a file-synchronization tool for Unix and Windows.
It allows two replicas of a collection of files and directories
Expand All @@ -33,15 +33,15 @@ the changes in each replica to the other.
")
(depends
(ocaml
(>= 4.03))
(>= 4.08))
(dune
(>= 2.3))))

(package
(name unison-gui)
(synopsis "File-synchronization tool for Unix and Windows")
(description "
Graphical userinterface for Unison.
(description "\
Graphical user interface for Unison.

Unison is a file-synchronization tool for Unix and Windows.
It allows two replicas of a collection of files and directories
Expand All @@ -51,18 +51,17 @@ the changes in each replica to the other.
")
(depends
(ocaml
(>= 4.03))
(>= 4.08))
(dune
(>= 2.3))
(lablgtk2
(>= 2.18.6))))
lablgtk))

(package
(name unison-fsmonitor)
(synopsis "File-synchronization tool for Unix and Windows")
(description "
This helper application monitors file system changes on all given
(relative to root) paths.
(description "\
This optional add-on for unison monitors file system changes
on all given (relative to root) paths.

Unison is a file-synchronization tool for Unix and Windows.
It allows two replicas of a collection of files and directories
Expand All @@ -72,6 +71,6 @@ the changes in each replica to the other.
")
(depends
(ocaml
(>= 4.03))
(>= 4.08))
(dune
(>= 2.3))))
4 changes: 2 additions & 2 deletions src/fsmonitor/linux/dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(copy_files# ../watchercommon.ml{,i})

(library
(name fswatcher)
(name fswatcher_linux)
(wrapped false)
(enabled_if
(or
Expand Down Expand Up @@ -30,4 +30,4 @@
(= %{system} "linux_eabi")))
(modules watcher)
(flags :standard -w -27)
(libraries fswatcher))
(libraries fswatcher_linux))
22 changes: 22 additions & 0 deletions src/fsmonitor/solaris/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
(copy_files# ../watchercommon.ml{,i})

(library
(name fswatcher_solaris)
(wrapped false)
(enabled_if (= %{system} "solaris"))
(modules :standard \ watcher)
(flags :standard -w -3-27-39)
(foreign_stubs
(language c)
(names fen_stubs))
(libraries unix lwt_lib))

(executable
(name watcher)
(public_name unison-fsmonitor)
(package unison-fsmonitor)
(enabled_if (= %{system} "solaris"))
(modules watcher)
(flags :standard -w -27)
(libraries fswatcher_solaris))