packages feed

raylib-imgui-4.5.0.9: raylib-imgui.cabal

cabal-version:      2.4
name:               raylib-imgui
version:            4.5.0.9
synopsis:           Haskell bindings for rlImGui
description:
  This package contains simple bindings to the functions defined in rlImGui, allowing raylib and Dear ImGui interop

category:           graphics

bug-reports:        https://github.com/Anut-py/raylib-imgui/issues
license:            Apache-2.0
license-file:       LICENSE
author:             Anut
maintainer:         Anut
extra-doc-files:    README.md
extra-source-files:
  CHANGELOG.md
  lib/wrapper.h
  rlImGui/*.h
  rlImGui/extras/*.h
  rlImGui/imgui/*.h
  rlImGui/raylib/src/*.h
  rlImGui/raylib/src/external/glfw/include/GLFW/*.h

flag example
  description: Build example project
  default:     False
  manual:      True

executable example
  hs-source-dirs:   example
  default-language: Haskell2010
  main-is:          Main.hs

  if !flag(example)
    buildable: False

  else
    build-depends:
      , base
      , dear-imgui    ==1.2.2
      , gl
      , GLFW-b
      , h-raylib
      , raylib-imgui

-- This version of rlImGui only works with dear-imgui version 1.2.2
library
  exposed-modules:  Raylib.ImGui
  build-depends:
    , base      >=4.0     && <4.17.0
    , h-raylib  ==4.5.0.9

  hs-source-dirs:   src
  default-language: Haskell2010
  cxx-options:      -std=c++11
  cxx-sources:
    lib/wrapper.cpp
    rlImGui/rlImGui.cpp

  include-dirs:
    lib
    rlImGui
    rlImGui/imgui
    rlImGui/raylib/src
    rlImGui/raylib/src/external/glfw/include