packages feed

tidal-link-1.2.2: tidal-link.cabal

cabal-version:       2.4
name:                tidal-link
version:             1.2.2
synopsis:            Ableton Link integration for Tidal
-- description:
homepage:            http://tidalcycles.org/
license:             GPL-3.0-only
license-file:        LICENSE
author:              Pierre Krafft
maintainer:          Pierre Krafft <kpierre@outlook.com>, Alex McLean <alex@slab.org>
Stability:           Experimental
Copyright:           (c) Pierre Krafft and contributors, 2021
category:            Sound
build-type:          Simple
tested-with:         GHC == 9.8.2

extra-source-files:
  README.md
  link/**/*.hpp
  link/**/*.ipp
  link/**/*.h

description: Ableton Link integration for Tidal, to let Tidal sync with external clocks

library
  ghc-options: -Wall
  hs-source-dirs: src/hs

  default-language:    Haskell2010

  exposed-modules:     Sound.Tidal.Link
                       Sound.Tidal.Clock

  build-depends:
      base >=4.8 && < 5,
      hosc >= 0.21 && < 0.22,
      mtl >= 2.2 && < 2.4,
      stm >= 2.5 && < 2.6

  if os(windows)
    extra-libraries:
      iphlpapi
      winmm
      ws2_32
    cxx-options:
      -DLINK_PLATFORM_WINDOWS=1 -Wno-multichar
  elif os(darwin)
    cxx-options:
      -DLINK_PLATFORM_MACOSX=1 -std=c++14 -Wno-multichar -Wno-subobject-linkage
  else
    cxx-options:
      -DLINK_PLATFORM_LINUX=1 -std=c++14 -Wno-multichar -Wno-subobject-linkage

  if impl(ghc >= 9.4)
    build-depends: system-cxx-std-lib
  else
    if os(darwin)
      extra-libraries: c++
    else
      extra-libraries: stdc++

  cxx-sources: link/extensions/abl_link/src/abl_link.cpp
  include-dirs:
    link/include
    link/modules/asio-standalone/asio/include
    link/extensions/abl_link/include

source-repository head
  type:     git
  location: https://codeberg.org/uzu/tidal

executable tidal-linktest
  ghc-options: -Wall
  hs-source-dirs:
                 src/hs
  main-is: Main.hs

  default-language:    Haskell2010

  Build-depends:
      base >=4.8 && <5,
      tidal-link