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 | |
parent | dac9d40ce5f4f1bee733acb1ed91b301c899c2d6 (diff) | |
download | wetterhorn-0b1e24b85f527a36673836ccea68b4db3750cdf9.tar.gz wetterhorn-0b1e24b85f527a36673836ccea68b4db3750cdf9.tar.bz2 wetterhorn-0b1e24b85f527a36673836ccea68b4db3750cdf9.zip |
Add wlroots submodule and add custom build commands to build it.
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | Setup.hs | 16 | ||||
-rw-r--r-- | package.yaml | 7 | ||||
m--------- | wlroots | 0 |
4 files changed, 26 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..97560e8 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "wlroots"] + path = wlroots + url = https://github.com/swaywm/wlroots.git 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" + } diff --git a/package.yaml b/package.yaml index 4f4c6a3..7966291 100644 --- a/package.yaml +++ b/package.yaml @@ -19,6 +19,13 @@ extra-source-files: # common to point users to the README.md file. description: Please see the README on GitHub at <https://github.com/githubuser/wetterhorn#readme> + +custom-setup: + dependencies: + - base + - Cabal + - process + dependencies: - base >= 4.7 && < 5 - mtl diff --git a/wlroots b/wlroots new file mode 160000 +Subproject 0855cdacb2eeeff35849e2e9c4db0aa996d78d1 |