0023-hello_pi-optionally-build-wayland-specific-app.patch 1.1 KB

12345678910111213141516171819202122232425262728
  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. Only build the wayland-specific hello_pi app when building for wayland.
  6. Upstream-Status: Inappropriate [the wayland example is not part of upstream]
  7. Signed-off-by: Trevor Woerner <twoerner@gmail.com>
  8. ---
  9. host_applications/linux/apps/hello_pi/CMakeLists.txt | 4 +++-
  10. 1 file changed, 3 insertions(+), 1 deletion(-)
  11. diff --git a/host_applications/linux/apps/hello_pi/CMakeLists.txt b/host_applications/linux/apps/hello_pi/CMakeLists.txt
  12. index 2849fad..7de3265 100644
  13. --- a/host_applications/linux/apps/hello_pi/CMakeLists.txt
  14. +++ b/host_applications/linux/apps/hello_pi/CMakeLists.txt
  15. @@ -25,7 +25,9 @@ add_subdirectory(hello_encode)
  16. add_subdirectory(hello_jpeg)
  17. add_subdirectory(hello_videocube)
  18. add_subdirectory(hello_teapot)
  19. -add_subdirectory(hello_wayland)
  20. +if (BUILD_WAYLAND)
  21. + add_subdirectory(hello_wayland)
  22. +endif()
  23. if(BUILD_FONT)
  24. set(VGFONT_SRCS libs/vgfont/font.c libs/vgfont/vgft.c libs/vgfont/graphics.c)