Andrew Geissler | 26e4bea | 2020-11-30 19:54:03 -0600 | [diff] [blame] | 1 | From f324e2724973aa76d054c3662d5d0903fd405390 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 6 Feb 2016 13:12:47 -0800 |
Andrew Geissler | 26e4bea | 2020-11-30 19:54:03 -0600 | [diff] [blame] | 4 | Subject: [PATCH] fix cmake dependency race |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 5 | |
| 6 | Fixes errors like |
| 7 | |
| 8 | /a/builder/mnt/build-oe/tmp-glibc/work/raspberrypi2-oe-linux-gnueabi/userland/git-r5/git/interface/vmcs_host/vc_vchi_dispmanx.h:72:66: |
| 9 | fatal error: interface/vmcs_host/wayland-dispmanx-server-protocol.h: No |
| 10 | such file or directory |
| 11 | compilation terminated. |
| 12 | interface/khronos/CMakeFiles/EGL_static.dir/build.make:773: recipe for |
| 13 | target 'interface/khronos/CMakeFiles/EGL_static.dir/ext/egl_wayland.c.o' |
| 14 | failed |
| 15 | make[2]: *** |
| 16 | [interface/khronos/CMakeFiles/EGL_static.dir/ext/egl_wayland.c.o] Error 1 |
| 17 | |
| 18 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 19 | --- |
Patrick Williams | 520786c | 2023-06-25 16:20:36 -0500 | [diff] [blame] | 20 | Upstream-Status: Pending |
| 21 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 22 | interface/vcos/pthreads/CMakeLists.txt | 8 ++++++++ |
| 23 | interface/vmcs_host/CMakeLists.txt | 8 -------- |
| 24 | interface/vmcs_host/vc_vchi_dispmanx.h | 2 +- |
| 25 | 3 files changed, 9 insertions(+), 9 deletions(-) |
| 26 | |
| 27 | diff --git a/interface/vcos/pthreads/CMakeLists.txt b/interface/vcos/pthreads/CMakeLists.txt |
| 28 | index 1d81ca3..d6cd415 100644 |
| 29 | --- a/interface/vcos/pthreads/CMakeLists.txt |
| 30 | +++ b/interface/vcos/pthreads/CMakeLists.txt |
| 31 | @@ -33,6 +33,14 @@ set (SOURCES |
| 32 | ../generic/vcos_generic_blockpool.c |
| 33 | ) |
| 34 | |
| 35 | +if (BUILD_WAYLAND) |
| 36 | +wayland_add_protocol_server( |
| 37 | + SOURCES |
| 38 | + ../../../interface/wayland/dispmanx.xml |
| 39 | + dispmanx |
| 40 | +) |
| 41 | +endif () |
| 42 | + |
| 43 | if (VCOS_PTHREADS_BUILD_SHARED) |
| 44 | add_library (vcos SHARED ${SOURCES}) |
| 45 | target_link_libraries (vcos pthread dl rt) |
| 46 | diff --git a/interface/vmcs_host/CMakeLists.txt b/interface/vmcs_host/CMakeLists.txt |
Andrew Geissler | 26e4bea | 2020-11-30 19:54:03 -0600 | [diff] [blame] | 47 | index 552312a..775742d 100755 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 48 | --- a/interface/vmcs_host/CMakeLists.txt |
| 49 | +++ b/interface/vmcs_host/CMakeLists.txt |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 50 | @@ -15,14 +15,6 @@ set(VCHOSTIF_SOURCE |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 51 | # ${VMCS_TARGET}/vmcs_main.c |
| 52 | # vc_vchi_haud.c |
| 53 | |
| 54 | -if (BUILD_WAYLAND) |
| 55 | -wayland_add_protocol_server( |
| 56 | - VCHOSTIF_SOURCE |
| 57 | - ../../interface/wayland/dispmanx.xml |
| 58 | - dispmanx |
| 59 | -) |
| 60 | -endif () |
| 61 | - |
| 62 | add_library(vchostif ${VCHOSTIF_SOURCE}) |
| 63 | |
| 64 | #add_library(bufman vc_vchi_bufman.c ) |
| 65 | diff --git a/interface/vmcs_host/vc_vchi_dispmanx.h b/interface/vmcs_host/vc_vchi_dispmanx.h |
| 66 | index f0bae30..8c44c58 100644 |
| 67 | --- a/interface/vmcs_host/vc_vchi_dispmanx.h |
| 68 | +++ b/interface/vmcs_host/vc_vchi_dispmanx.h |
| 69 | @@ -69,7 +69,7 @@ typedef struct { |
| 70 | #ifdef BUILD_WAYLAND |
| 71 | /* XXX: This should be in a private header that can be included from EGL and vc_* */ |
| 72 | #include <wayland-server.h> |
| 73 | -#include "interface/vmcs_host/wayland-dispmanx-server-protocol.h" |
| 74 | +#include "interface/vcos/pthreads/wayland-dispmanx-server-protocol.h" |
| 75 | struct wl_dispmanx_server_buffer { |
| 76 | struct wl_resource *resource; |
| 77 | struct wl_dispmanx *dispmanx; |