dear-imgui.hs/Setup.hs

15 lines
497 B
Haskell
Raw Normal View History

2022-07-19 21:33:57 +00:00
import Distribution.Simple
main :: IO ()
main = defaultMainWithHooks simpleUserHooks
{ postCopy = copyLib
}
copyLib :: :: Args -> CopyFlags -> PackageDescription -> LocalBuildInfo -> IO ()
copyExtLib _ flags pkg_descr lbi = do
let libPref = libdir . absoluteInstallDirs pkg_descr lbi
. fromFlag . copyDest
$ flags
let verbosity = fromFlag $ copyVerbosity flags
rawSystemExit verbosity "cp" ["libHSdear-imgui-2.0.0-inplace-ghc8.10.7.so", libPref]