(lang dune 3.14)

(name multicore-magic)
(version 2.3.1)

(generate_opam_files true)

(implicit_transitive_deps false)

(source
 (github ocaml-multicore/multicore-magic))

(authors "Vesa Karvonen <vesa.a.j.k@gmail.com>")

(maintainers "Vesa Karvonen <vesa.a.j.k@gmail.com>")

(homepage "https://github.com/ocaml-multicore/multicore-magic")

(license ISC)

(package
 (name multicore-magic)
 (synopsis "Low-level multicore utilities for OCaml")
 (depends
  (ocaml
   (>= 4.12.0))
  ;; Test dependencies
  (domain_shims
   (and
    (>= 0.1.0)
    :with-test))
  (alcotest
   (and
    (>= 1.7.0)
    :with-test))
  (js_of_ocaml
   (and
    (>= 5.4.0)
    :with-test))
  (conf-npm
   (and
    (<> :arch "x86_32")
    (<> :os "win32")
    :with-test))
  ;; Documentation dependencies
  (sherlodoc
   (and
    (>= 0.2)
    :with-doc))
  (odoc
   (and
    (>= 2.4.1)
    :with-doc))))

(package
 (name multicore-magic-dscheck)
 (synopsis
  "An implementation of multicore-magic API using the atomic module of DScheck to make DScheck tests possible in libraries using multicore-magic")
 (allow_empty)
 (depends
  (ocaml
   (>= 4.12.0))
  (dscheck
   (>= 0.5.0))))
