mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2024-11-22 16:57:00 +00:00
shared lib
This commit is contained in:
parent
7795b3d838
commit
12c7aafaf6
14
Setup.hs
Normal file
14
Setup.hs
Normal 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]
|
@ -170,8 +170,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:
|
||||
|
Loading…
Reference in New Issue
Block a user