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 @@ -159,8 +159,16 @@ library
159
159
imgui/imgui_draw.cpp
160
160
imgui/imgui_tables.cpp
161
161
imgui/imgui_widgets.cpp
162
+ install-includes :
163
+ imgui.h
164
+ imgui_internal.h
165
+ imstb_rectpack.h
166
+ imstb_textedit.h
167
+ imstb_truetype.h
162
168
extra-libraries :
163
169
stdc++
170
+ extra-bundled-libraries :
171
+ HSdear-imgui-2.0.0-inplace
164
172
include-dirs :
165
173
imgui
166
174
build-depends :
You can’t perform that action at this time.
0 commit comments