name         : vrpn
version      : 0.3.0.0
synopsis     : Bindings to VRPN.
description  : See \<<https://github.com/vrpn/vrpn/wiki>\> for information on VRPN.  This has been tested using VRPN 07.30 on Linux.
               .
               If the VRPN libraries are static and this package is used from Template Haskell, then the package needs to be configured with the QuatStatic flag.
license      : MIT
license-file : LICENSE
author       : Brian W Bush <code@functionally.io>
maintainer   : Brian W Bush <code@functionally.io>
copyright    : (c) 2015-19 Brian W Bush
category     : Network
build-type   : Simple
cabal-version: >= 1.10
homepage     : https://bitbucket.org/functionally/vrpn
bug-reports  : https://bwbush.atlassian.net/projects/HVRPN/issues/
package-url  : https://bitbucket.org/functionally/vrpn/vrp-$version.tar.gz

extra-source-files: ReadMe.md
                    default.nix

source-repository head
  type    : git
  location: https://bitbucket.org/functionally/vrpn.git

flag QuatStatic
  description: Explicitly link with static library libquat.a, which is required when using this package with Template Haskell.
  default    : True
 
library
  exposed-modules  : Network.VRPN
  build-depends    : base >= 4.8 && < 5
  hs-source-dirs   : src
  ghc-options      : -Wall
  default-language : Haskell2010
  C-sources        : src/vrpn.cpp
  if flag(QuatStatic)
    extra-libraries: vrpn quat stdc++
  else
    extra-libraries: vrpn stdc++

executable test-vrpn
  main-is          : Main.hs
  other-modules    : Network.VRPN
  build-depends    : base >= 4.8 && < 5
  hs-source-dirs   : src
  ghc-options      : -threaded -Wall
  default-language : Haskell2010
  C-sources        : src/vrpn.cpp
  if flag(QuatStatic)
    extra-libraries: vrpn quat stdc++
  else
    extra-libraries: vrpn stdc++