aboutsummaryrefslogtreecommitdiff
path: root/Setup.hs
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2024-02-08 21:54:09 -0700
committerJosh Rahm <joshuarahm@gmail.com>2024-02-08 21:54:09 -0700
commit0b1e24b85f527a36673836ccea68b4db3750cdf9 (patch)
tree259a9e5da8aa204cb968a4b7cbb5510632c7e779 /Setup.hs
parentdac9d40ce5f4f1bee733acb1ed91b301c899c2d6 (diff)
downloadmontis-0b1e24b85f527a36673836ccea68b4db3750cdf9.tar.gz
montis-0b1e24b85f527a36673836ccea68b4db3750cdf9.tar.bz2
montis-0b1e24b85f527a36673836ccea68b4db3750cdf9.zip
Add wlroots submodule and add custom build commands to build it.
Diffstat (limited to 'Setup.hs')
-rw-r--r--Setup.hs16
1 files changed, 16 insertions, 0 deletions
diff --git a/Setup.hs b/Setup.hs
new file mode 100644
index 0000000..8ccd975
--- /dev/null
+++ b/Setup.hs
@@ -0,0 +1,16 @@
+import Distribution.Simple
+import Distribution.Types.HookedBuildInfo
+import System.Environment (getArgs)
+import System.Process
+
+main = do
+ args <- getArgs
+ putStrLn $ "This is an MFing custom build script!!! " ++ show args
+ defaultMainWithHooks $
+ simpleUserHooks
+ { preBuild = \_ _ -> do
+ callCommand "cd wlroots && meson setup build -Dexamples=false --reconfigure && ninja -C build"
+ return emptyHookedBuildInfo,
+ cleanHook = \_ _ _ _ -> do
+ callCommand "cd wlroots && ninja -C build clean"
+ }