File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ import Distribution.Simple
2
+
3
+ main :: IO ()
4
+ main = defaultMainWithHooks simpleUserHooks
5
+ { postCopy = copyLib
6
+ }
7
+
8
+ copyLib :: :: Args -> CopyFlags -> PackageDescription -> LocalBuildInfo -> IO ()
9
+ copyExtLib _ flags pkg_descr lbi = do
10
+ let libPref = libdir . absoluteInstallDirs pkg_descr lbi
11
+ . fromFlag . copyDest
12
+ $ flags
13
+ let verbosity = fromFlag $ copyVerbosity flags
14
+ rawSystemExit verbosity " cp" [" libHSdear-imgui-2.0.0-inplace-ghc8.10.7.so" , libPref]
Original file line number Diff line number Diff line change @@ -170,8 +170,16 @@ library
170
170
imgui/imgui_draw.cpp
171
171
imgui/imgui_tables.cpp
172
172
imgui/imgui_widgets.cpp
173
+ install-includes :
174
+ imgui.h
175
+ imgui_internal.h
176
+ imstb_rectpack.h
177
+ imstb_textedit.h
178
+ imstb_truetype.h
173
179
extra-libraries :
174
180
stdc++
181
+ extra-bundled-libraries :
182
+ HSdear-imgui-2.0.0-inplace
175
183
include-dirs :
176
184
imgui
177
185
build-depends :
You can’t perform that action at this time.
0 commit comments