diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2024-02-08 21:54:09 -0700 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2024-02-08 21:54:09 -0700 |
| commit | 0b1e24b85f527a36673836ccea68b4db3750cdf9 (patch) | |
| tree | 259a9e5da8aa204cb968a4b7cbb5510632c7e779 /Setup.hs | |
| parent | dac9d40ce5f4f1bee733acb1ed91b301c899c2d6 (diff) | |
| download | montis-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.hs | 16 |
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" + } |