mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2025-07-04 12:08:48 +02:00
Compare commits
3 Commits
ddaf41bf88
...
sharedLib
Author | SHA1 | Date | |
---|---|---|---|
0b87bd8519 | |||
03205f482e | |||
12c7aafaf6 |
@ -13,11 +13,10 @@ description:
|
||||
Set package flags according to your needs.
|
||||
|
||||
build-type: Simple
|
||||
extra-source-files:
|
||||
README.md,
|
||||
ChangeLog.md
|
||||
|
||||
extra-source-files:
|
||||
README.md,
|
||||
ChangeLog.md,
|
||||
imgui/*.h,
|
||||
imgui/backends/*.h,
|
||||
imgui/backends/*.mm,
|
||||
@ -148,6 +147,7 @@ library
|
||||
import: common
|
||||
hs-source-dirs:
|
||||
src
|
||||
generator
|
||||
exposed-modules:
|
||||
DearImGui
|
||||
DearImGui.FontAtlas
|
||||
@ -163,6 +163,13 @@ library
|
||||
DearImGui.Context
|
||||
DearImGui.Enums
|
||||
DearImGui.Structs
|
||||
DearImGui.Generator
|
||||
DearImGui.Generator.Parser
|
||||
DearImGui.Generator.Tokeniser
|
||||
DearImGui.Generator.Types
|
||||
ghc-options:
|
||||
-static -dynamic-too
|
||||
-- create both libHSdear-imgui... .a and .so
|
||||
cxx-options: -std=c++11
|
||||
cxx-sources:
|
||||
imgui/imgui.cpp
|
||||
@ -170,20 +177,47 @@ library
|
||||
imgui/imgui_draw.cpp
|
||||
imgui/imgui_tables.cpp
|
||||
imgui/imgui_widgets.cpp
|
||||
install-includes:
|
||||
imgui.h
|
||||
imgui_internal.h
|
||||
imstb_rectpack.h
|
||||
imstb_textedit.h
|
||||
imstb_truetype.h
|
||||
extra-libraries:
|
||||
stdc++
|
||||
include-dirs:
|
||||
imgui
|
||||
build-depends:
|
||||
dear-imgui-generator
|
||||
, containers
|
||||
, managed
|
||||
, inline-c
|
||||
managed
|
||||
, inline-c-cpp
|
||||
, StateVar
|
||||
, unliftio
|
||||
, vector
|
||||
-- for the generator:
|
||||
, template-haskell
|
||||
>= 2.15 && < 2.19
|
||||
, containers
|
||||
^>= 0.6.2.1
|
||||
, directory
|
||||
>= 1.3 && < 1.4
|
||||
, filepath
|
||||
>= 1.4 && < 1.5
|
||||
, inline-c
|
||||
>= 0.9.0.0 && < 0.10
|
||||
, megaparsec
|
||||
>= 9.0 && < 9.3
|
||||
, parser-combinators
|
||||
>= 1.2.0 && < 1.4
|
||||
, scientific
|
||||
>= 0.3.6.2 && < 0.3.8
|
||||
, text
|
||||
>= 1.2.4 && < 2.1
|
||||
, th-lift
|
||||
>= 0.7 && < 0.9
|
||||
, transformers
|
||||
>= 0.5.6 && < 0.6
|
||||
, unordered-containers
|
||||
>= 0.2.11 && < 0.3
|
||||
|
||||
if os(darwin)
|
||||
ghc-options:
|
||||
@ -281,40 +315,6 @@ library
|
||||
exposed-modules:
|
||||
DearImGui.GLFW.Vulkan
|
||||
|
||||
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
|
||||
, containers
|
||||
^>= 0.6.2.1
|
||||
, directory
|
||||
>= 1.3 && < 1.4
|
||||
, filepath
|
||||
>= 1.4 && < 1.5
|
||||
, inline-c
|
||||
>= 0.9.0.0 && < 0.10
|
||||
, megaparsec
|
||||
>= 9.0 && < 9.3
|
||||
, parser-combinators
|
||||
>= 1.2.0 && < 1.4
|
||||
, scientific
|
||||
>= 0.3.6.2 && < 0.3.8
|
||||
, text
|
||||
>= 1.2.4 && < 2.1
|
||||
, th-lift
|
||||
>= 0.7 && < 0.9
|
||||
, transformers
|
||||
>= 0.5.6 && < 0.6
|
||||
, unordered-containers
|
||||
>= 0.2.11 && < 0.3
|
||||
|
||||
executable test
|
||||
import: common, exe-flags
|
||||
main-is: Main.hs
|
||||
|
Reference in New Issue
Block a user