1From 5f4324a0008c2e8e1f511432f98bf85c9fffd35c Mon Sep 17 00:00:00 2001
2From: Trevor Woerner <twoerner@gmail.com>
3Date: Fri, 27 Nov 2020 03:18:50 -0500
4Subject: [PATCH] hello_pi: optionally build wayland-specific app
5
6Only build the wayland-specific hello_pi app when building for wayland.
7
8Upstream-Status: Inappropriate [the wayland example is not part of upstream]
9Signed-off-by: Trevor Woerner <twoerner@gmail.com>
10---
11 host_applications/linux/apps/hello_pi/CMakeLists.txt | 4 +++-
12 1 file changed, 3 insertions(+), 1 deletion(-)
13
14diff --git a/host_applications/linux/apps/hello_pi/CMakeLists.txt b/host_applications/linux/apps/hello_pi/CMakeLists.txt
15index 2849fad..7de3265 100644
16--- a/host_applications/linux/apps/hello_pi/CMakeLists.txt
17+++ b/host_applications/linux/apps/hello_pi/CMakeLists.txt
18@@ -25,7 +25,9 @@ add_subdirectory(hello_encode)
19 add_subdirectory(hello_jpeg)
20 add_subdirectory(hello_videocube)
21 add_subdirectory(hello_teapot)
22-add_subdirectory(hello_wayland)
23+if (BUILD_WAYLAND)
24+    add_subdirectory(hello_wayland)
25+endif()
26
27 if(BUILD_FONT)
28 set(VGFONT_SRCS libs/vgfont/font.c libs/vgfont/vgft.c libs/vgfont/graphics.c)
29