aboutsummaryrefslogtreecommitdiff
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
parentdac9d40ce5f4f1bee733acb1ed91b301c899c2d6 (diff)
downloadwetterhorn-0b1e24b85f527a36673836ccea68b4db3750cdf9.tar.gz
wetterhorn-0b1e24b85f527a36673836ccea68b4db3750cdf9.tar.bz2
wetterhorn-0b1e24b85f527a36673836ccea68b4db3750cdf9.zip
Add wlroots submodule and add custom build commands to build it.
-rw-r--r--.gitmodules3
-rw-r--r--Setup.hs16
-rw-r--r--package.yaml7
m---------wlroots0
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