nano-ui-rgfw-0.2.0.0: nano-ui-rgfw.cabal
cabal-version: 3.4
name: nano-ui-rgfw
version: 0.2.0.0
synopsis: RGFW and OpenGL window backend for nano-ui
description:
Runs nano-ui views in a native window through RGFW and OpenGL 3.2, with
the Cozette bitmap font bundled for text.
license: MIT
license-files:
LICENSE
LICENSE-Cozette
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
extra-source-files: data/cozette.min.otb
source-repository head
type: git
location: https://github.com/goolord/nano-ui.git
subdir: packages/nano-ui-rgfw
common extensions
default-language: GHC2024
default-extensions:
OverloadedStrings
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: extensions
import: warnings
exposed-modules:
NanoUI.Backend.Rgfw
NanoUI.Rgfw.Internal.Context
NanoUI.Rgfw.Internal.Debug
NanoUI.Rgfw.Internal.Font.Cozette
NanoUI.Rgfw.Internal.Gl
NanoUI.Rgfw.Internal.Input
NanoUI.Rgfw.Internal.Session
c-sources: cbits/nano_ui_gl.c
build-depends:
base >=4.20 && <4.23,
bytestring ^>=0.12,
containers >=0.7 && <0.9,
file-embed ^>=0.0.16,
nano-ui ^>=0.2,
nano-ui-emit ^>=0.2,
nano-ui-rgfw-bindings ^>=0.2,
primitive ^>=0.9,
text ^>=2.1,
vector ^>=0.13
hs-source-dirs: lib
executable nano-ui-rgfw-demo
import: extensions
import: warnings
main-is: RgfwDemo.hs
other-modules: RgfwDemoCommon
-- Threaded, so background tasks run while the loop waits for events.
ghc-options: -threaded
build-depends:
base >=4.20 && <4.23,
hashable ^>=1.5,
nano-ui ^>=0.2,
nano-ui-emit ^>=0.2,
nano-ui-rgfw,
text ^>=2.1
hs-source-dirs: examples
executable nano-ui-rgfw-profile
import: extensions
import: warnings
main-is: RgfwProfile.hs
other-modules: RgfwDemoCommon
ghc-options: -rtsopts "-with-rtsopts=-A64m -T -I0"
build-depends:
base >=4.20 && <4.23,
bytestring ^>=0.12,
hashable ^>=1.5,
nano-ui ^>=0.2,
nano-ui-emit ^>=0.2,
nano-ui-rgfw,
nano-ui-rgfw-bindings ^>=0.2,
text ^>=2.1
hs-source-dirs: examples
test-suite nano-ui-rgfw-test
import: extensions
import: warnings
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
NanoUI.Rgfw.Render
NanoUI.Rgfw.Window
NanoUI.Rgfw.Wake
-- Threaded: the wake test's job and producer run while the loop blocks in RGFW.
ghc-options: -threaded
build-depends:
base >=4.20 && <4.23,
bytestring ^>=0.12,
nano-ui ^>=0.2,
nano-ui-emit ^>=0.2,
nano-ui-rgfw,
nano-ui-rgfw-bindings ^>=0.2,
nano-ui-shader ^>=0.2,
primitive ^>=0.9,
text ^>=2.1
hs-source-dirs: test