shared lib

This commit is contained in:
Nicole Dresselhaus 2022-07-19 23:33:57 +02:00 committed by Drezil
parent 391d70dd94
commit 3b37a21470
2 changed files with 22 additions and 0 deletions

14
Setup.hs Normal file
View File

@ -0,0 +1,14 @@
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]

View File

@ -179,10 +179,18 @@ library
imgui/imgui_draw.cpp
imgui/imgui_tables.cpp
imgui/imgui_widgets.cpp
install-includes:
imgui.h
imgui_internal.h
imstb_rectpack.h
imstb_textedit.h
imstb_truetype.h
if impl(ghc >= 9.4)
build-depends: system-cxx-std-lib
else
extra-libraries: stdc++
extra-bundled-libraries:
HSdear-imgui-2.0.0-inplace
include-dirs:
imgui
build-depends: