cabal-version: 3.4
name: nano-ui-rgfw-bindings
version: 0.2.0.0
synopsis: Haskell bindings to RGFW
description:
Bindings to RGFW, a single-header C library for windows, input, and
OpenGL contexts. The C source is bundled with the package, under RGFW's
zlib licence.
license: MIT AND Zlib
license-files:
LICENSE
LICENSE-RGFW
author: goolord
maintainer: zacharyachurchill@gmail.com
homepage: https://github.com/goolord/nano-ui
bug-reports: https://github.com/goolord/nano-ui/issues
category: Graphics
build-type: Simple
tested-with: GHC ==9.10.3 || ==9.14.1
extra-doc-files:
CHANGELOG.md
README.md
-- Listed so cabal rebuilds RGFW.c and the test's Events.c when the header
-- changes; install-includes alone is not tracked.
extra-source-files: cbits/RGFW.h
source-repository head
type: git
location: https://github.com/goolord/nano-ui.git
subdir: packages/nano-ui-rgfw-bindings
common warnings
ghc-options:
-Wall
-Wextra
-Wcompat
-Widentities
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wmissing-export-lists
-Wmissing-home-modules
-Wpartial-fields
-Wredundant-constraints
-Wunused-packages
library
import: warnings
default-language: GHC2024
exposed-modules:
RGFW
RGFW.Raw
include-dirs: cbits
install-includes: RGFW.h
c-sources: cbits/RGFW.c
build-tool-depends: hsc2hs:hsc2hs
build-depends:
base >=4.20 && <4.23,
bytestring ^>=0.12,
text ^>=2.1
hs-source-dirs: lib
if os(windows)
extra-libraries: gdi32 user32 shell32
elif os(osx)
frameworks: Cocoa CoreVideo IOKit OpenGL
else
extra-libraries: X11 Xcursor Xrandr Xi
test-suite nano-ui-rgfw-bindings-test
import: warnings
type: exitcode-stdio-1.0
default-language: GHC2024
hs-source-dirs: test
main-is: Events.hs
c-sources: test/Events.c
-- The cross-thread stop test needs the threaded RTS; otherwise the
-- blocking wait stalls the thread that sends the stop.
ghc-options: -threaded
include-dirs: cbits
build-depends: base >=4.20 && <4.23, nano-ui-rgfw-bindings
if os(windows)
ghc-options: -optl-mconsole