aboutsummaryrefslogtreecommitdiff
path: root/vendor/sync
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sync')
-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