-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try building Pango before testing on Linux and macOS
Things should be tested with same Pango and Cairo Version Try building and installing them.
- Loading branch information
1 parent
f5dcf94
commit 5d38969
Showing
3 changed files
with
89 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#!/usr/bin/env bash | ||
# build and install pango | ||
set -e | ||
|
||
PANGO_VERSION=1.48.3 | ||
GLIB_VERSION=2.67.6 | ||
FRIBIDI_VERSION=1.0.10 | ||
CAIRO_VERSION=1.17.4 | ||
HARFBUZZ_VERSION=2.7.4 | ||
|
||
FILE_PATH=$PWD | ||
PREFIX="$HOME/pangoprefix" | ||
|
||
mkdir pango | ||
cd pango | ||
echo "::group::Downloading Files" | ||
|
||
python -m pip install requests | ||
python $FILE_PATH/packing/download_and_extract.py "http://download.gnome.org/sources/pango/${PANGO_VERSION%.*}/pango-${PANGO_VERSION}.tar.xz" pango | ||
python $FILE_PATH/packing/download_and_extract.py "http://download.gnome.org/sources/glib/${GLIB_VERSION%.*}/glib-${GLIB_VERSION}.tar.xz" glib | ||
python $FILE_PATH/packing/download_and_extract.py "https://github.com/fribidi/fribidi/releases/download/v${FRIBIDI_VERSION}/fribidi-${FRIBIDI_VERSION}.tar.xz" fribidi | ||
python $FILE_PATH/packing/download_and_extract.py "https://gitlab.freedesktop.org/cairo/cairo/-/archive/${CAIRO_VERSION}/cairo-${CAIRO_VERSION}.tar.gz" cairo | ||
python $FILE_PATH/packing/download_and_extract.py "https://github.com/harfbuzz/harfbuzz/releases/download/${HARFBUZZ_VERSION}/harfbuzz-${HARFBUZZ_VERSION}.tar.xz" harfbuzz | ||
|
||
python -m pip uninstall -y requests | ||
|
||
echo "::endgroup::" | ||
|
||
export CMAKE_PREFIX_PATH=$PKG_CONFIG_PATH | ||
LIB_INSTALL_PREFIX=$PREFIX | ||
|
||
echo "::group::Install Meson" | ||
echo "Installing Meson and Ninja" | ||
pip3 install -U meson ninja | ||
echo "::endgroup::" | ||
|
||
echo "::group::Building and Install Glib" | ||
meson setup --prefix=$PREFIX --buildtype=release -Dselinux=disabled -Dlibmount=disabled glib_builddir glib | ||
meson compile -C glib_builddir | ||
meson install -C glib_builddir | ||
echo "::endgroup::" | ||
|
||
echo "::group::Building and Install Fribidi" | ||
meson setup --prefix=$PREFIX --buildtype=release fribidi_builddir fribidi | ||
meson compile -C fribidi_builddir | ||
meson install -C fribidi_builddir | ||
echo "::endgroup::" | ||
|
||
echo "::group::Building and Installing Cairo" | ||
meson setup --prefix=$PREFIX --default-library=shared --buildtype=release -Dfontconfig=enabled -Dfreetype=enabled -Dglib=enabled -Dzlib=enabled -Dtee=enabled cairo_builddir cairo | ||
meson compile -C cairo_builddir | ||
meson install --no-rebuild -C cairo_builddir | ||
echo "::endgroup::" | ||
|
||
echo "::group::Building and Installing Harfbuzz" | ||
meson setup --prefix=$PREFIX --buildtype=release -Dtests=disabled -Ddocs=disabled harfbuzz_builddir harfbuzz | ||
meson compile -C harfbuzz_builddir | ||
meson install -C harfbuzz_builddir | ||
echo "::endgroup::" | ||
|
||
echo "::group::Buildling and Installing Pango" | ||
meson setup --prefix=$PREFIX --buildtype=release -Dintrospection=disabled pango_builddir pango | ||
meson compile -C pango_builddir | ||
meson install -C pango_builddir | ||
echo "::endgroup::" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters