c/client: Merge have EGL conditional file adding

This commit is contained in:
Jakob Bornecrantz 2022-10-24 11:33:55 +01:00 committed by Ryan Pavlik
parent f9c6c0d016
commit 35b941812a

View file

@ -41,8 +41,9 @@ endif()
if(XRT_HAVE_EGL) if(XRT_HAVE_EGL)
target_sources( target_sources(
comp_client PRIVATE client/comp_gl_eglimage_swapchain.c comp_client
client/comp_gl_eglimage_swapchain.h PRIVATE client/comp_gl_eglimage_swapchain.c client/comp_gl_eglimage_swapchain.h
client/comp_egl_client.c client/comp_egl_client.h
) )
endif() endif()
@ -60,9 +61,6 @@ if(XRT_HAVE_OPENGL AND WIN32)
client/comp_gl_win32_glue.c client/comp_gl_win32_glue.c
) )
endif() endif()
if(XRT_HAVE_EGL)
target_sources(comp_client PRIVATE client/comp_egl_client.c client/comp_egl_client.h)
endif()
if(XRT_HAVE_D3D11 OR XRT_HAVE_D3D12) if(XRT_HAVE_D3D11 OR XRT_HAVE_D3D12)
target_link_libraries(comp_client PRIVATE aux_d3d) target_link_libraries(comp_client PRIVATE aux_d3d)