1
1
cabal-version : 2.2
2
2
3
- -- This file has been generated from package.yaml by hpack version 0.35.2 .
3
+ -- This file has been generated from package.yaml by hpack version 0.36.0 .
4
4
--
5
5
-- see: https://github.com/sol/hpack
6
6
@@ -24,6 +24,11 @@ source-repository head
24
24
type : git
25
25
location : https://github.com/expipiplus1/vulkan
26
26
27
+ flag darwin-lib-dirs
28
+ description : Add default LunarG MoltenVK SDK paths to extra-lib-dirs when building on MacOS. Requires Cabal >= 3.10.3.
29
+ manual : True
30
+ default : True
31
+
27
32
flag generic-instances
28
33
description : Derive Generic instances for all structs. Disabled by default because of code size and compile time impact.
29
34
manual : True
@@ -673,26 +678,6 @@ library
673
678
UndecidableInstances
674
679
ViewPatterns
675
680
ghc-options : -Wall -Wno-unticked-promoted-constructors -Wno-missing-pattern-synonym-signatures -Wno-unused-imports -Wno-missing-signatures -Wno-partial-type-signatures
676
-
677
- -- The LunarG installation script (macOS) copies the vulkan dylibs to /usr/local/lib.
678
- --
679
- -- By adding this directory to the RPATH entries of the vulkan dylib
680
- -- built from this component, we can save a lot of headaches (ie loader
681
- -- errors) for macOS users for whom that path is not part of the default
682
- -- RPATH entries. This is justified by this being the default installation
683
- -- path of the vulkan SDK on macOS.
684
- --
685
- -- More specifically, vulkan-utils uses template haskell which forces the
686
- -- vulkan library to be loaded at compile time, resulting in an especially
687
- -- hard to diagnose loader error that is harder to fix than correcting the
688
- -- rpath of an executable (#501). This fixes that error for LunarG vulkan
689
- -- installations.
690
- --
691
- -- The caveat is that this fix is predicated on a Cabal bug being fixed: This
692
- -- will only work from Cabal 3.10.3+ (after cabal#9554 lands).
693
- if os(darwin)
694
- extra-lib-dirs : /usr/local/lib
695
-
696
681
build-depends :
697
682
base < 5
698
683
, bytestring
@@ -705,6 +690,9 @@ library
705
690
if os(darwin)
706
691
extra-libraries :
707
692
vulkan
693
+ if os(darwin) && flag(darwin-lib-dirs)
694
+ extra-lib-dirs :
695
+ /usr/local/lib
708
696
if !os(windows) && !os(darwin)
709
697
pkgconfig-depends :
710
698
vulkan
0 commit comments