Andrew Geissler | 26e4bea | 2020-11-30 19:54:03 -0600 | [diff] [blame] | 1 | From 5f4324a0008c2e8e1f511432f98bf85c9fffd35c Mon Sep 17 00:00:00 2001 |
| 2 | From: Trevor Woerner <twoerner@gmail.com> |
| 3 | Date: Fri, 27 Nov 2020 03:18:50 -0500 |
| 4 | Subject: [PATCH] hello_pi: optionally build wayland-specific app |
| 5 | |
| 6 | Only build the wayland-specific hello_pi app when building for wayland. |
| 7 | |
| 8 | Upstream-status: inappropriate [the wayland example is not part of upstream] |
| 9 | Signed-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 | |
| 14 | diff --git a/host_applications/linux/apps/hello_pi/CMakeLists.txt b/host_applications/linux/apps/hello_pi/CMakeLists.txt |
| 15 | index 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) |