Skip to content

Instantly share code, notes, and snippets.

@X547
Last active October 20, 2022 10:52
Show Gist options
  • Save X547/f5e3ecbf6af43dbb5f34fa45961348e6 to your computer and use it in GitHub Desktop.
Save X547/f5e3ecbf6af43dbb5f34fa45961348e6 to your computer and use it in GitHub Desktop.
Haiku Wayland build scripts
#!sh
set -e
git clone --depth=1 -b inproc-haiku https://github.com/X547/wayland.git
git clone --depth=1 -b 1.26 https://github.com/wayland-project/wayland-protocols.git
git clone --depth=1 https://github.com/X547/wayland-server.git
git clone --depth=1 -b xkbcommon-1.4.1 https://github.com/xkbcommon/libxkbcommon.git
git clone --depth=1 -b xkeyboard-config-2.36 https://github.com/freedesktop/xkeyboard-config.git
git clone --depth=1 -b gtk-3-24-haiku https://github.com/X547/gtk.git gtk3
rm -rf install
INSTALL=$PWD/install
rm -rf build
mkdir build
cd build
export PKG_CONFIG_PATH="$INSTALL/lib/pkgconfig:$INSTALL/share/pkgconfig:$PKG_CONFIG_PATH"
export PATH="$INSTALL/bin:$PATH"
build_package() {
NAME=$1; shift
rm -rf $NAME
mkdir $NAME
(cd $NAME ; meson ../../$NAME -Dprefix=$INSTALL "$@" ; ninja install)
}
build_package wayland -Ddocumentation=false -Dtests=false
build_package wayland-protocols
build_package wayland-server
build_package libxkbcommon -Denable-x11=false
build_package xkeyboard-config
build_package gtk3 -Dx11_backend=false -Dintrospection=false -Datk:introspection=false
#!sh
set -e
XDG_RUNTIME_DIR=/tmp LIBRARY_PATH=$PWD/install/lib:$LIBRARY_PATH PATH=$PWD/install/bin:$PATH gtk3-demo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment