Skip to content

Commit

Permalink
shared lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Drezil committed Jul 19, 2022
1 parent cf87988 commit acf7cd4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Setup.hs
Original file line number Diff line number Diff line change
@@ -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]
8 changes: 8 additions & 0 deletions dear-imgui.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,16 @@ 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
extra-libraries:
stdc++
extra-bundled-libraries:
HSdear-imgui-2.0.0-inplace
include-dirs:
imgui
build-depends:
Expand Down

0 comments on commit acf7cd4

Please sign in to comment.