2021-01-24 15:27:03 +00:00
|
|
|
cabal-version: 3.0
|
|
|
|
name: dear-imgui
|
|
|
|
version: 1.0.0
|
|
|
|
build-type: Simple
|
|
|
|
|
2021-01-24 18:25:40 +00:00
|
|
|
flag opengl
|
|
|
|
description:
|
|
|
|
Enable OpenGL backend.
|
|
|
|
default:
|
|
|
|
True
|
|
|
|
manual:
|
|
|
|
False
|
|
|
|
|
|
|
|
flag sdl
|
|
|
|
description:
|
|
|
|
Enable SDL backend.
|
|
|
|
default:
|
|
|
|
True
|
|
|
|
manual:
|
|
|
|
False
|
|
|
|
|
2021-01-24 15:27:03 +00:00
|
|
|
library
|
2021-01-24 18:25:40 +00:00
|
|
|
exposed-modules:
|
|
|
|
DearImGui
|
|
|
|
hs-source-dirs:
|
|
|
|
src
|
|
|
|
default-language:
|
|
|
|
Haskell2010
|
|
|
|
ghc-options:
|
|
|
|
-Wall
|
2021-01-24 15:27:03 +00:00
|
|
|
cxx-sources:
|
|
|
|
imgui/imgui.cpp
|
2021-01-24 18:25:40 +00:00
|
|
|
imgui/imgui_demo.cpp
|
|
|
|
imgui/imgui_draw.cpp
|
2021-01-24 15:27:03 +00:00
|
|
|
imgui/imgui_tables.cpp
|
|
|
|
imgui/imgui_widgets.cpp
|
2021-01-24 18:25:40 +00:00
|
|
|
cxx-options:
|
|
|
|
-std=c++11
|
|
|
|
extra-libraries:
|
|
|
|
stdc++
|
|
|
|
include-dirs:
|
|
|
|
imgui
|
|
|
|
build-depends:
|
|
|
|
base
|
|
|
|
, inline-c
|
|
|
|
, inline-c-cpp
|
|
|
|
, StateVar
|
|
|
|
|
|
|
|
if flag(opengl)
|
|
|
|
exposed-modules:
|
|
|
|
DearImGui.OpenGL
|
|
|
|
cxx-sources:
|
|
|
|
imgui/backends/imgui_impl_opengl2.cpp
|
|
|
|
if os(windows)
|
|
|
|
extra-libraries:
|
|
|
|
opengl32
|
|
|
|
else
|
|
|
|
extra-libraries:
|
|
|
|
GL
|
|
|
|
|
|
|
|
if flag(sdl)
|
|
|
|
exposed-modules:
|
|
|
|
DearImGui.SDL
|
|
|
|
build-depends:
|
|
|
|
sdl2
|
|
|
|
cxx-sources:
|
|
|
|
imgui/backends/imgui_impl_sdl.cpp
|
|
|
|
|
|
|
|
if os(windows) || os(darwin)
|
|
|
|
extra-libraries:
|
|
|
|
sdl2
|
|
|
|
else
|
|
|
|
pkgconfig-depends:
|
|
|
|
sdl2
|
|
|
|
|
|
|
|
if flag(opengl)
|
|
|
|
exposed-modules:
|
|
|
|
DearImGui.SDL.OpenGL
|
2021-01-24 15:27:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
executable test
|
|
|
|
main-is: Main.hs
|
|
|
|
default-language: Haskell2010
|
|
|
|
build-depends: base, sdl2, gl, dear-imgui
|
|
|
|
ghc-options: -Wall
|