2021-01-24 15:27:03 +00:00
|
|
|
cabal-version: 3.0
|
|
|
|
name: dear-imgui
|
|
|
|
version: 1.0.0
|
|
|
|
build-type: Simple
|
2021-02-05 20:57:17 +00:00
|
|
|
data-files:
|
|
|
|
imgui/imgui.h
|
2021-01-24 15:27:03 +00:00
|
|
|
|
2021-01-24 18:25:40 +00:00
|
|
|
flag opengl
|
|
|
|
description:
|
|
|
|
Enable OpenGL backend.
|
|
|
|
default:
|
|
|
|
True
|
|
|
|
manual:
|
|
|
|
False
|
|
|
|
|
2021-01-26 20:45:21 +00:00
|
|
|
flag vulkan
|
|
|
|
description:
|
|
|
|
Enable Vulkan backend.
|
|
|
|
default:
|
|
|
|
False
|
|
|
|
manual:
|
|
|
|
True
|
|
|
|
|
2021-01-24 18:25:40 +00:00
|
|
|
flag sdl
|
|
|
|
description:
|
|
|
|
Enable SDL backend.
|
|
|
|
default:
|
|
|
|
True
|
|
|
|
manual:
|
|
|
|
False
|
|
|
|
|
2021-02-05 21:44:52 +00:00
|
|
|
flag glfw
|
|
|
|
description:
|
|
|
|
Enable GLFW backend.
|
|
|
|
default:
|
|
|
|
False
|
|
|
|
manual:
|
|
|
|
True
|
|
|
|
|
2021-02-05 20:57:17 +00:00
|
|
|
common common
|
|
|
|
build-depends:
|
|
|
|
base
|
|
|
|
>= 4.12 && < 4.17
|
|
|
|
default-language:
|
|
|
|
Haskell2010
|
|
|
|
ghc-options:
|
|
|
|
-Wall
|
|
|
|
|
2021-01-24 15:27:03 +00:00
|
|
|
library
|
2021-02-05 20:57:17 +00:00
|
|
|
import: common
|
|
|
|
hs-source-dirs:
|
|
|
|
src
|
2021-01-24 18:25:40 +00:00
|
|
|
exposed-modules:
|
|
|
|
DearImGui
|
2021-02-05 20:57:17 +00:00
|
|
|
other-modules:
|
2021-01-24 20:46:01 +00:00
|
|
|
DearImGui.Context
|
2021-02-05 20:57:17 +00:00
|
|
|
DearImGui.Enums
|
|
|
|
DearImGui.Structs
|
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:
|
2021-02-05 20:57:17 +00:00
|
|
|
dear-imgui-generator
|
2021-01-24 20:46:01 +00:00
|
|
|
, containers
|
2021-01-28 23:38:59 +00:00
|
|
|
, managed
|
2021-01-24 18:25:40 +00:00
|
|
|
, 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
|
2021-01-26 11:01:41 +00:00
|
|
|
if os(darwin)
|
|
|
|
frameworks:
|
|
|
|
OpenGL
|
|
|
|
else
|
|
|
|
extra-libraries:
|
|
|
|
GL
|
2021-01-24 18:25:40 +00:00
|
|
|
|
2021-01-26 20:45:21 +00:00
|
|
|
if flag(vulkan)
|
|
|
|
exposed-modules:
|
|
|
|
DearImGui.Vulkan
|
|
|
|
other-modules:
|
|
|
|
DearImGui.Vulkan.Types
|
|
|
|
build-depends:
|
|
|
|
vulkan
|
|
|
|
, unliftio
|
|
|
|
cxx-sources:
|
|
|
|
imgui/backends/imgui_impl_vulkan.cpp
|
|
|
|
if os(windows)
|
|
|
|
extra-libraries:
|
|
|
|
vulkan-1
|
|
|
|
else
|
|
|
|
if os(darwin)
|
|
|
|
extra-libraries:
|
|
|
|
vulkan
|
|
|
|
else
|
|
|
|
pkgconfig-depends:
|
|
|
|
vulkan
|
|
|
|
|
2021-01-24 18:25:40 +00:00
|
|
|
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:
|
2021-01-25 16:42:31 +00:00
|
|
|
SDL2
|
2021-01-24 18:25:40 +00:00
|
|
|
else
|
|
|
|
pkgconfig-depends:
|
|
|
|
sdl2
|
|
|
|
|
|
|
|
if flag(opengl)
|
|
|
|
exposed-modules:
|
|
|
|
DearImGui.SDL.OpenGL
|
2021-01-24 15:27:03 +00:00
|
|
|
|
2021-01-26 20:45:21 +00:00
|
|
|
if flag(vulkan)
|
|
|
|
exposed-modules:
|
|
|
|
DearImGui.SDL.Vulkan
|
|
|
|
|
2021-02-05 21:44:52 +00:00
|
|
|
if flag(glfw)
|
|
|
|
exposed-modules:
|
|
|
|
DearImGui.GLFW
|
|
|
|
build-depends:
|
|
|
|
GLFW-b
|
|
|
|
cxx-sources:
|
|
|
|
imgui/backends/imgui_impl_glfw.cpp
|
|
|
|
|
|
|
|
if os(linux) || os(darwin)
|
|
|
|
pkgconfig-depends:
|
|
|
|
glfw3
|
|
|
|
|
|
|
|
if flag(opengl)
|
|
|
|
exposed-modules:
|
|
|
|
DearImGui.GLFW.OpenGL
|
|
|
|
|
|
|
|
if flag(vulkan)
|
|
|
|
exposed-modules:
|
|
|
|
DearImGui.GLFW.Vulkan
|
|
|
|
|
2021-02-05 20:57:17 +00:00
|
|
|
library dear-imgui-generator
|
|
|
|
import: common
|
|
|
|
hs-source-dirs: generator
|
|
|
|
exposed-modules:
|
|
|
|
DearImGui.Generator
|
|
|
|
, DearImGui.Generator.Parser
|
|
|
|
, DearImGui.Generator.Tokeniser
|
|
|
|
, DearImGui.Generator.Types
|
|
|
|
build-depends:
|
|
|
|
template-haskell
|
|
|
|
>= 2.15 && < 2.19
|
|
|
|
, directory
|
|
|
|
>= 1.3 && < 1.4
|
|
|
|
, filepath
|
|
|
|
>= 1.4 && < 1.5
|
|
|
|
, megaparsec
|
|
|
|
>= 9.0 && < 9.1
|
|
|
|
, parser-combinators
|
|
|
|
>= 1.2.0 && < 1.3
|
|
|
|
, scientific
|
|
|
|
>= 0.3.6.2 && < 0.3.7
|
|
|
|
, text
|
|
|
|
>= 1.2.4 && < 1.3
|
|
|
|
, th-lift
|
|
|
|
>= 0.7 && < 0.9
|
|
|
|
, transformers
|
|
|
|
>= 0.5.6 && < 0.6
|
|
|
|
, unordered-containers
|
|
|
|
>= 0.2.11 && < 0.2.14
|
2021-01-24 15:27:03 +00:00
|
|
|
|
|
|
|
executable test
|
2021-02-05 20:57:17 +00:00
|
|
|
import: common
|
2021-01-24 15:27:03 +00:00
|
|
|
main-is: Main.hs
|
2021-02-05 21:44:52 +00:00
|
|
|
default-language: Haskell2010
|
|
|
|
build-depends: base, sdl2, gl, dear-imgui
|
|
|
|
ghc-options: -Wall
|
|
|
|
|
|
|
|
executable glfw
|
|
|
|
main-is: Main.hs
|
|
|
|
hs-source-dirs: examples/glfw
|
|
|
|
default-language: Haskell2010
|
|
|
|
build-depends: base, GLFW-b, gl, dear-imgui, managed
|
|
|
|
ghc-options: -Wall
|
2021-01-24 19:50:21 +00:00
|
|
|
|
|
|
|
executable readme
|
2021-02-05 20:57:17 +00:00
|
|
|
import: common
|
2021-01-24 19:50:21 +00:00
|
|
|
main-is: Readme.hs
|
|
|
|
hs-source-dirs: examples
|
2021-02-05 20:57:17 +00:00
|
|
|
build-depends: sdl2, gl, dear-imgui, managed
|
2021-01-26 20:45:21 +00:00
|
|
|
|
|
|
|
executable vulkan
|
2021-02-05 20:57:17 +00:00
|
|
|
import: common
|
2021-01-26 20:45:21 +00:00
|
|
|
main-is: Main.hs
|
|
|
|
other-modules: Attachments, Backend, Input, Util
|
|
|
|
hs-source-dirs: examples/vulkan
|
|
|
|
default-language: Haskell2010
|
|
|
|
build-depends:
|
|
|
|
dear-imgui
|
|
|
|
, bytestring
|
|
|
|
>= 0.10.10.0 && < 0.12
|
|
|
|
, containers
|
|
|
|
^>= 0.6.2.1
|
|
|
|
, logging-effect
|
|
|
|
^>= 1.3.12
|
|
|
|
, resourcet
|
|
|
|
^>= 1.2.4.2
|
|
|
|
, sdl2
|
|
|
|
^>= 2.5.3.0
|
|
|
|
, text-short
|
|
|
|
^>= 0.1.3
|
|
|
|
, transformers
|
|
|
|
^>= 0.5.6.2
|
|
|
|
, unliftio
|
|
|
|
>= 0.2.13 && < 0.2.15
|
|
|
|
, unliftio-core
|
|
|
|
^>= 0.2.0.1
|
|
|
|
, vector
|
|
|
|
^>= 0.12.1.2
|
|
|
|
, vulkan
|
|
|
|
^>= 3.9
|
|
|
|
, vulkan-utils
|
|
|
|
^>= 0.4.1
|
|
|
|
ghc-options: -Wall
|