Skip to content

Commit a78417e

Browse files
imgui: enable Wayland support in GLFW build (#54)
1 parent d14d45a commit a78417e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

imgui/build.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,15 @@ git -C glfw-src checkout --force "$GLFW_COMMIT"
5151
# Install GLFW build dependencies
5252
if [[ "$(uname)" == "Linux" ]]; then
5353
if command -v dnf &>/dev/null; then
54-
dnf install -y libX11-devel libXcursor-devel libXrandr-devel libXinerama-devel libXi-devel mesa-libGL-devel
54+
dnf install -y libX11-devel libXcursor-devel libXrandr-devel libXinerama-devel libXi-devel mesa-libGL-devel \
55+
wayland-devel wayland-protocols-devel libxkbcommon-devel
5556
elif command -v apt-get &>/dev/null; then
5657
if [ "$(id -u)" -eq 0 ]; then
57-
apt-get update && apt-get install -y libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libgl-dev
58+
apt-get update && apt-get install -y libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libgl-dev \
59+
libwayland-dev wayland-protocols libxkbcommon-dev
5860
else
59-
sudo apt-get update && sudo apt-get install -y libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libgl-dev
61+
sudo apt-get update && sudo apt-get install -y libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libgl-dev \
62+
libwayland-dev wayland-protocols libxkbcommon-dev
6063
fi
6164
fi
6265
fi
@@ -67,8 +70,7 @@ cmake -B glfw-src/build -S glfw-src \
6770
-DBUILD_SHARED_LIBS=OFF \
6871
-DGLFW_BUILD_EXAMPLES=OFF \
6972
-DGLFW_BUILD_TESTS=OFF \
70-
-DGLFW_BUILD_DOCS=OFF \
71-
-DGLFW_BUILD_WAYLAND=OFF
73+
-DGLFW_BUILD_DOCS=OFF
7274
cmake --build glfw-src/build --parallel "$NJOBS"
7375

7476
# Install

0 commit comments

Comments
 (0)