aboutsummaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-10-08 16:00:33 -0700
committerNicholas Noll <nbnoll@eml.cc>2021-10-08 16:00:45 -0700
commit8b679a2e892310e461c3f5028dfaf60b25eea37f (patch)
treebc19c732b9ca6e552ce37ef3c036529a1f4c981f /vendor
parent61158de7bb2575cd594472584b7c2b90dd8da8a5 (diff)
fix(theme): consistent theme
Diffstat (limited to 'vendor')
-rwxr-xr-xvendor/sync92
1 files changed, 92 insertions, 0 deletions
diff --git a/vendor/sync b/vendor/sync
index 96ae888..2a49a2b 100755
--- a/vendor/sync
+++ b/vendor/sync
@@ -183,6 +183,96 @@ build_wlroots()
}
# ------------------------------------------------------------------------
+# harfbuzz
+
+HARFBUZZ_URL="https://github.com/harfbuzz/harfbuzz.git"
+HARFBUZZ_TAG="3.0.0"
+
+build_harfbuzz()
+{
+ git clone $HARFBUZZ_URL
+ cd harfbuzz && git checkout $HARFBUZZ_TAG
+ meson \
+ --prefix=$ROOT \
+ --includedir=include/vendor \
+ --libdir=lib/vendor \
+ --buildtype=minsize \
+ -Ddefault_library=static\
+ -Dglib=disabled \
+ -Dgobject=disabled \
+ -Ddocs=disabled \
+ -Db_lto="true"\
+ build/ \
+ && ninja -C build/ \
+ && meson install -C build
+
+ mv $ROOT/lib/vendor/pkgconfig/* $ROOT/lib/pkgconfig
+ rm -rf $ROOT/lib/vendor/pkgconfig
+
+ cd $VENDOR
+ echo $HARFBUZZ_TAG > harfbuzz/build.tag
+}
+
+# ------------------------------------------------------------------------
+# freetype2
+
+FREETYPE_URL="git clone https://gitlab.freedesktop.org/freetype/freetype.git"
+FREETYPE_TAG="3.0.0"
+
+build_harfbuzz()
+{
+ git clone $HARFBUZZ_URL
+ cd harfbuzz && git checkout $HARFBUZZ_TAG
+ meson \
+ --prefix=$ROOT \
+ --includedir=include/vendor \
+ --libdir=lib/vendor \
+ --buildtype=minsize \
+ -Ddefault_library=static\
+ -Dglib=disabled \
+ -Dgobject=disabled \
+ -Ddocs=disabled \
+ -Db_lto="true"\
+ build/ \
+ && ninja -C build/ \
+ && meson install -C build
+
+ mv $ROOT/lib/vendor/pkgconfig/* $ROOT/lib/pkgconfig
+ rm -rf $ROOT/lib/vendor/pkgconfig
+
+ cd $VENDOR
+ echo $HARFBUZZ_TAG > harfbuzz/build.tag
+}
+
+# ------------------------------------------------------------------------
+# fontconfig
+
+FONTCONFIG_URL="https://github.com/freedesktop/fontconfig.git"
+FONTCONFIG_TAG="2.3.94"
+
+build_fontconfig()
+{
+ git clone $FONTCONFIG_URL
+ cd fontconfig && git checkout $FONTCONFIG_TAG
+ meson \
+ --prefix=$ROOT \
+ --includedir=include/vendor \
+ --libdir=lib/vendor \
+ -Ddefault_library=static \
+ -Dtools=disabled \
+ -Dtests=disabled \
+ build/ \
+ && ninja -C build/ \
+ && meson install -C build
+
+ mv $ROOT/lib/vendor/pkgconfig/* $ROOT/lib/pkgconfig
+ rm -rf $ROOT/lib/vendor/pkgconfig
+
+ cd $VENDOR
+ echo $FONTCONFIG_TAG > fontconfig/build.tag
+}
+
+# ------------------------------------------------------------------------
# utility functions
update()
@@ -205,4 +295,6 @@ update musl $MUSL_TAG
update blas $BLAS_TAG
update zlib $ZLIB_TAG
update wlroots $WLROOTS_TAG
+update fontconfig $FONTCONFIG_TAG
+# update harfbuzz $HARFBUZZ_TAG
# update glfw $GLFW_TAG