aboutsummaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-09-28 13:39:24 -0700
committerNicholas Noll <nbnoll@eml.cc>2021-09-28 13:39:24 -0700
commitbc53100f1ef063e09d77e8670e1796bc67017411 (patch)
treee84b23c3afceb88f75088be2749683b407d1cea2 /vendor
parent83cd586ea304d6f6aa190c65ee796baaba1941a7 (diff)
Checkin: various small changes
Diffstat (limited to 'vendor')
-rwxr-xr-xvendor/sync48
1 files changed, 48 insertions, 0 deletions
diff --git a/vendor/sync b/vendor/sync
index 8135180..cd3e040 100755
--- a/vendor/sync
+++ b/vendor/sync
@@ -125,6 +125,53 @@ build_zlib()
}
# ------------------------------------------------------------------------
+# GLFW
+
+GLFW_URL="https://github.com/glfw/glfw.git"
+GLFW_TAG="3.3.4"
+
+build_glfw()
+{
+ git clone $GLFW_URL glfw
+ cd glfw && git checkout $GLFW_TAG && mkdir build && cd build
+
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=$ROOT \
+ -DBUILD_SHARED_LIBS=OFF \
+ -DGLFW_BUILD_EXAMPLES=OFF \
+ -DGLFW_BUILD_TESTS=OFF \
+ -DGLFW_BUILD_DOCS=OFF \
+ -DGLFW_VULKAN_STATIC=OFF \
+ -DCMAKE_BUILD_TYPE=Release \
+ ..
+
+ make -j2
+ make install
+
+ mv $ROOT/include/GLFW $ROOT/include/vendor
+ rm -rf $ROOT/lib/cmake
+ rm -rf $ROOT/lib/pkgconfig
+
+ cd $VENDOR
+ echo $GLFW_TAG > glfw/build.tag
+}
+
+# ------------------------------------------------------------------------
+# wlroot
+
+WLROOTS_URL="https://github.com/swaywm/wlroots.git"
+WLROOTS_TAG="0.14.1"
+
+build_wlroots()
+{
+ git clone $WLROOTS wlroots
+ cd wlroots && git checkout $WLROOTS_TAG
+ meson --prefix=$ROOT build/ && cd ninja -C build/
+
+ echo $WLROOTS_TAG > wlroots/build.tag
+}
+
+# ------------------------------------------------------------------------
# utility functions
update()
@@ -146,3 +193,4 @@ update nlopt $NLOPT_TAG
update musl $MUSL_TAG
update blas $BLAS_TAG
update zlib $ZLIB_TAG
+# update glfw $GLFW_TAG