This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- Modified version of the wxcore Cabal setup.hs file which builds the C++ code in a buildhook | |
-- so that we have some control over how the linking works. | |
-- | |
import Control.Monad (when) | |
import Data.List (foldl', intercalate, nub, lookup) | |
import Data.Maybe (fromJust) | |
import Distribution.PackageDescription | |
import Distribution.Simple | |
import Distribution.Simple.LocalBuildInfo (LocalBuildInfo, localPkgDescr, withPrograms, buildDir) |