mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2025-02-17 01:02:43 +00:00
Disable build-depends when not building executables (#43)
This change follows up on https://github.com/haskell-game/dear-imgui.hs/pull/41 where it seems like cabal still need the examples dependency even when they are not buildable, e.g.: `next goal: vulkan-utils (dependency of dear-imgui)` with cabal-install version 3.2.0.0.
This commit is contained in:
parent
b0337eb084
commit
3949882060
@ -210,19 +210,21 @@ executable test
|
|||||||
import: common
|
import: common
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
build-depends: base, sdl2, gl, dear-imgui
|
|
||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
||||||
if (!flag(examples) || !flag(sdl) || !flag(opengl2))
|
if (!flag(examples) || !flag(sdl) || !flag(opengl2))
|
||||||
buildable: False
|
buildable: False
|
||||||
|
else
|
||||||
|
build-depends: base, sdl2, gl, dear-imgui
|
||||||
|
|
||||||
executable glfw
|
executable glfw
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
hs-source-dirs: examples/glfw
|
hs-source-dirs: examples/glfw
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
build-depends: base, GLFW-b, gl, dear-imgui, managed
|
|
||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
||||||
if (!flag(examples) || !flag(glfw) || !flag(opengl2))
|
if (!flag(examples) || !flag(glfw) || !flag(opengl2))
|
||||||
buildable: False
|
buildable: False
|
||||||
|
else
|
||||||
|
build-depends: base, GLFW-b, gl, dear-imgui, managed
|
||||||
|
|
||||||
executable readme
|
executable readme
|
||||||
import: common
|
import: common
|
||||||
@ -238,6 +240,10 @@ executable vulkan
|
|||||||
other-modules: Attachments, Backend, Input, Util
|
other-modules: Attachments, Backend, Input, Util
|
||||||
hs-source-dirs: examples/vulkan
|
hs-source-dirs: examples/vulkan
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
|
ghc-options: -Wall
|
||||||
|
if (!flag(examples) || !flag(sdl) || !flag(vulkan))
|
||||||
|
buildable: False
|
||||||
|
else
|
||||||
build-depends:
|
build-depends:
|
||||||
dear-imgui
|
dear-imgui
|
||||||
, bytestring
|
, bytestring
|
||||||
@ -264,6 +270,3 @@ executable vulkan
|
|||||||
^>= 3.9
|
^>= 3.9
|
||||||
, vulkan-utils
|
, vulkan-utils
|
||||||
^>= 0.4.1
|
^>= 0.4.1
|
||||||
ghc-options: -Wall
|
|
||||||
if (!flag(examples) || !flag(sdl) || !flag(vulkan))
|
|
||||||
buildable: False
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user