packages feed

openal-ffi-0.0.2: openal-ffi.cabal

cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.39.1.
--
-- see: https://github.com/sol/hpack

name:           openal-ffi
version:        0.0.2
synopsis:       Low-level bindings to OpenAL.
category:       Sound
author:         IC Rainbow
maintainer:     aenor.realm@gmail.com
copyright:      2026 IC Rainbow
license:        BSD3
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md
    ChangeLog.md

source-repository head
  type: git
  location: https://gitlab.com/dpwiz/openal-ffi

flag system-openal
  description: Use the OpenAL provided by the system: the OpenAL framework on Apple platforms, the openal system library elsewhere. Disable to skip the framework and link -lopenal directly against a source distribution (e.g. openal-soft), pointing at it with --extra-include-dirs and --extra-lib-dirs.
  manual: True
  default: True

library
  exposed-modules:
      Sound.OpenAL.FFI.AL
      Sound.OpenAL.FFI.ALC
      Sound.OpenAL.FFI.Utils
  other-modules:
      Paths_openal_ffi
  hs-source-dirs:
      src
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints
  build-depends:
      base >=4.7 && <5
  default-language: Haskell2010
  if flag(system-openal) && (os(darwin) || os(ios))
    frameworks:
        OpenAL
  else
    extra-libraries:
        openal

test-suite openal-ffi-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Paths_openal_ffi
  hs-source-dirs:
      test
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base >=4.7 && <5
    , openal-ffi
  default-language: Haskell2010