blob: e3b093a08270fa40bff530e4d7eb21320e707d63 [file] [log] [blame]
Andrew Geissler26e4bea2020-11-30 19:54:03 -06001From 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
Patrick Williams864cc432023-02-09 14:54:44 -06008Upstream-Status: Inappropriate [the wayland example is not part of upstream]
Andrew Geissler26e4bea2020-11-30 19:54:03 -06009Signed-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)