mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2024-11-22 08:56:59 +00:00
15 lines
497 B
Haskell
15 lines
497 B
Haskell
|
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]
|